Skip to content

competitive-landscape

Build a competitor program landscape from ClinicalTrials.gov for an indication or mechanism, grouped by sponsor, mechanism, phase and status, with withdrawn trials separated and readout dates. Use for competitor scans and portfolio context.

Stage Discovery
Tier 1 (deterministic tool)
Standards ClinicalTrials.gov API v2, ICMJE trial registration
Minimum pharmaskills 0.3.0
Inputs indication, mechanism or intervention terms, optional mechanism map
Outputs landscape md, programs csv, landscape json
Verified by connectors clinicaltrials search, trials landscape

Draft for qualified review. Not a validated system and not 21 CFR Part 11 compliant.

Install only this skill: pharmaskills skills install --agent claude-code --skill competitive-landscape (see Install).

Purpose

Give a business development, portfolio or clinical strategy reader a defensible view of who is developing what in an indication: programs grouped by sponsor, mechanism, phase and status, with upcoming readout dates and withdrawn trials kept apart. The registry search and the grouping are deterministic pharmaskills calls; you add the mechanism labels, the narrative and the caveats.

When to use / when not to use

Use when asked for a competitor scan, an indication landscape, "who else is running trials with this mechanism", or the competitor context for a target product profile.

Do not use for: efficacy or safety comparisons between programs (use a literature review), market size or forecasts, patent or freedom-to-operate analysis, non-registered programs (the registry shows registered trials only), or recruitment forecasting (use trial-feasibility).

Inputs

Required: an indication (condition term) and, when known, intervention or mechanism terms. Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...] placeholders. Typical gaps: the exact synonyms for the indication, the competitor drug names, the date the user wants readouts measured against (default today).

Optional: a mechanism map (templates/mechanism-map.yaml) from intervention keyword to mechanism label. Without it every program is "Unassigned (needs review)"; fill mechanism labels only from sources you can name, otherwise leave them unassigned.

If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, then produce a template-only landscape.md (from templates/landscape.md) clearly marked unverified, with every number as [DATA NEEDED: ...]. With no network, use a studies JSON the user supplies; the tool reads it offline. Check pharmaskills --version is at least min_pharmaskills.

Workflow

  1. State scope and region. Write the indication, the terms, and the region assumed (the registry is global; default is no regional filter, state it). Read references/ctgov-api.md.
  2. Search. Run one or more searches and save the JSON: pharmaskills connectors clinicaltrials search "<terms>" -p condition=<indication> -n 100 --json > studies.json. Use -p intervention=..., -p phase=2 or -p status=recruiting to narrow. Run a second search with -p status=withdrawn (saved as withdrawn.json) so withdrawn trials are present; the tool accepts --input several times and drops duplicate NCT ids.
  3. Group. pharmaskills trials landscape --input studies.json [--mechanism-map map.yaml] --as-of <YYYY-MM-DD> --out out/landscape.json --csv out/programs.csv. Exit 2 means fewer than 10 trials or invalid ids: broaden the search or state the limitation; never pad the list.
  4. Review mechanisms. Look at by_mechanism. For unassigned programs read the title and intervention names in the JSON; add a map entry only when the mechanism is clear from public sources you can cite, then rerun. Leave coded drug names unassigned.
  5. Write out/landscape.md from templates/landscape.md: scope, headline, tables by phase, status, mechanism and sponsor, upcoming readouts, withdrawn trials (separate section), and limitations. Every NCT id must come from studies.json, linked as https://clinicaltrials.gov/study/NCT########. Every number must come from the tool output.
  6. Banner and provenance. pharmaskills docs banner --apply out/landscape.md, then edit the provenance block to name this skill, the inputs and the verification you ran.
  7. Report the output contract and what needs human input.

Output contract

Under out/:

File Content
landscape.md Narrative with grouping tables, readouts, withdrawn section, limitations
programs.csv One row per trial: NCT id and link, sponsor, mechanism, phase, status, dates
landscape.json Tool report: counts by group, upcoming readouts, withdrawn list, warnings

Phases are normalised (Phase 1/2, Not applicable or not stated). Withdrawn trials appear only in the withdrawn section and the withdrawn list, never in the active counts. State the number of trials, the search date and the registry as the source.

Verification

Run and report each: pharmaskills trials landscape exit code (0 expected); trial count at or above 10 for a common indication; every NCT id in landscape.md appears in studies.json; links match https://clinicaltrials.gov/study/NCT plus 8 digits; withdrawn count in the narrative equals withdrawn_studies; banner present (pharmaskills docs banner text). On failure fix the document or the search and rerun up to three times, then report what remains.

Guardrails

  • Region: ClinicalTrials.gov is US-hosted but global; state the countries and regulators in scope (FDA, EMA, PMDA, MHRA) and say when only one region's registry was searched.
  • Insert the draft banner and a provenance block in landscape.md; never present the output as validated or as competitive intelligence of record.
  • Never fabricate NCT ids, sponsors, phases, dates, counts or readout outcomes. A trial that is not in the tool output does not exist for this document. If asked to "fill in" missing competitors, refuse and add a [DATA NEEDED: ...] placeholder.
  • A completion date is not a results date: do not describe a program's outcome.
  • Mechanism labels are analyst judgement unless the registry or a cited source states them; mark them as assumptions.
  • State the region assumed, the registry searched and the retrieval date. Registry data is sponsor-entered and incomplete; say so.
  • Do not infer commercial strategy, pricing or success probability.

References

  • references/ctgov-api.md - ClinicalTrials.gov API v2 fields, status and phase values
  • references/grouping-method.md - how grouping, phase normalisation and readouts are defined
  • Public sources: ClinicalTrials.gov API v2 (https://clinicaltrials.gov/data-api/api), ICMJE clinical trial registration policy, WHO International Clinical Trials Registry Platform.

Templates: templates/landscape.md and templates/mechanism-map.yaml. Scripts: scripts/run_landscape.sh (thin wrapper around pharmaskills trials landscape).

Examples

Worked example with a real recorded search: examples/discovery/competitive-landscape/. Synthetic study inputs for trying the workflow: skills/competitive-landscape/evals/fixtures/studies.json.

Worked example

Committed example with inputs and outputs: examples/discovery/competitive-landscape/.

Indication: obesity. Programs: incretin-based medicines.

Inputs

  • skills/competitive-landscape/evals/fixtures/studies.json: 39 ClinicalTrials.gov API v2 study records, trimmed to identification, status, sponsor, conditions, design, interventions and location countries. Recorded once on 2026-10-14 from https://clinicaltrials.gov/api/v2/studies with query.cond=obesity, query.intr=semaglutide OR tirzepatide OR retatrutide OR liraglutide (30 active or completed studies), the same terms with filter.overallStatus=WITHDRAWN (4 studies) and a second term set cagrilintide OR survodutide OR orforglipron (8 studies, merged and de-duplicated).
  • skills/competitive-landscape/evals/fixtures/mechanism_map.yaml: analyst-authored keyword map.
  • skills/competitive-landscape/evals/fixtures/studies_small.json: the first three records, for the "too few trials" edge case.

No personal data. Registry records are public.

Outputs (out/)

File How it was made
landscape.json, programs.csv Real output of pharmaskills trials landscape --as-of 2026-10-14
landscape.md Drafted from those outputs following templates/landscape.md
refusal_fabricate_nct.md Sample correct response to a request to invent competitors
landscape_small_note.md Sample correct response when fewer than 10 trials return

Reproduce

F=skills/competitive-landscape/evals/fixtures
pharmaskills trials landscape --input $F/studies.json --mechanism-map $F/mechanism_map.yaml \
  --as-of 2026-10-14 --out examples/discovery/competitive-landscape/out/landscape.json

Skill source: skills/competitive-landscape/SKILL.md