Drug-patent landscape workflow guide for searching US patents via the PatentsView API, classifying pharmaceutical claim types (NCE, formulation, method-of-use, polymorph, combination, biologic, process), grouping by patent family and assignee, estimating expiry timelines, and cross-referencing the FDA Orange Book for marketed-drug exclusivity windows. Use when the user asks about patent coverage, IP white-space, patent cliffs, or competitive filing activity around a drug, target, or compound class without asking for legal counsel.
Use this skill for research-grade patent intelligence around drugs, targets, or mechanisms, not legal freedom-to-operate opinions.
Typical triggers:
which python3 || true
python3 - <<'PY'
mods = ["requests"]
for name in mods:
try:
__import__(name)
print(f"{name}: ok")
except Exception as exc:
print(f"{name}: missing ({exc})")
PY
If network access is unavailable, say so before claiming patent data was retrieved.
templates/patent_landscape.pyUse templates/patent_landscape.py for:
Quick start:
python3 templates/patent_landscape.py \
--query "KRAS G12C inhibitor" \
--cpc-filter A61K \
--max-results 200 \
--output patents/kras_g12c_landscape.csv \
--summary patents/kras_g12c_summary.json \
--brief patents/kras_g12c_brief.md
Broad landscape with date range:
python3 templates/patent_landscape.py \
--query "PD-1 antibody" \
--cpc-filter A61K39 \
--date-from 2015-01-01 \
--max-results 500 \
--output patents/pd1_ab_landscape.csv \
--summary patents/pd1_ab_summary.json
Deliverables:
Use templates/patent_landscape.py --mode expiry-timeline for:
python3 templates/patent_landscape.py \
--query "semaglutide" \
--mode expiry-timeline \
--output patents/semaglutide_expiry.csv \
--summary patents/semaglutide_expiry.json
Deliverables:
Use --orange-book-query to add FDA Orange Book data for a marketed drug:
python3 templates/patent_landscape.py \
--query "semaglutide" \
--mode expiry-timeline \
--orange-book-query "semaglutide" \
--output patents/semaglutide_expiry.csv \
--summary patents/semaglutide_expiry.json
Orange Book entries include: brand name, generic name, NDA number, dosage form, route, and marketing status.
| CPC | Scope |
|---|---|
| A61K | Pharmaceutical compositions (broadest drug filter) |
| A61K31 | Small-molecule active ingredients |
| A61K39 | Antibodies, vaccines, antigens |
| A61K47 | Excipients, carriers, formulation technology |
| A61P | Therapeutic activity by indication |
| C07D | Heterocyclic compounds (core scaffolds) |
| C07K | Peptides and proteins |
The template matches title + abstract keywords to assign one of:
NCE / composition-of-matter — compound, molecule, chemical entity, active ingredientformulation — dosage form, tablet, capsule, nanoparticle, sustained releasemethod-of-use — method of treating, therapeutic use, for the treatmentpolymorph / salt form — polymorph, crystal form, salt, co-crystal, hydratecombination — combination, co-administration, synergisticbiologic — antibody, recombinant, fusion protein, monoclonaldiagnostic — biomarker, companion diagnostic, imaging agentdevice / delivery — device, inhaler, auto-injector, applicatorprocess / manufacturing — synthesis, preparation, method of makingFirst match wins. Unmatched patents are labeled unclassified. This is not claim analysis.
Good answers should mention:
For compound and regulatory lookups from ChEMBL, openFDA, ClinicalTrials.gov, activate pharma-db-tools.
For target-level intelligence dossiers, activate target-intelligence-tools.
For clinical-pipeline competitive analysis, activate competitive-intelligence-tools.
For drug repurposing hypothesis generation, activate drug-repurposing-tools.
This skill queries the following public APIs:
https://api.patentsview.org/patents/query — US granted-patent search with CPC, date, and full-text filters (patentsview.org/apis)https://api.fda.gov/drug/drugsfda.json — Orange Book product listings including brand/generic names, NDA numbers, dosage forms, and marketing status (open.fda.gov/apis/drug/drugsfda)