$npx -y skills add QSong-github/DrugClaw --skill fda_orange_bookQuery or inspect the FDA Orange Book - FDA-Approved Drug Products Listing resource for drug-centric tasks with emphasis on drug knowledgebase Use whenever Codex needs the calling pattern, downloadable entrypoint, or example query flow from this skill example script.
| 1 | # FDA Orange Book - FDA-Approved Drug Products Listing |
| 2 | |
| 3 | Use this file as the compact operator guide for the paired `skillexamples` script. |
| 4 | Prefer reading the Python example itself for exact request parameters, field names, |
| 5 | and response handling. |
| 6 | |
| 7 | ## Paired Example |
| 8 | |
| 9 | - Script: `65_FDA_Orange_Book.py` |
| 10 | - Category: `Drug-centric` |
| 11 | - Type: `DB` |
| 12 | - Subcategory: `Drug Knowledgebase` |
| 13 | |
| 14 | ## API Surface |
| 15 | |
| 16 | | Function | Purpose | |
| 17 | |---|---| |
| 18 | | `download_orange_book()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. | |
| 19 | | `search_approved_drugs()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. | |
| 20 | | `get_drug_approval_info()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. | |
| 21 | | `preview_products_file()` | See `65_FDA_Orange_Book.py` for exact input/output behavior. | |
| 22 | |
| 23 | ## Usage |
| 24 | |
| 25 | Read `65_FDA_Orange_Book.py` and copy its call pattern when writing Code Agent query code. |
| 26 | Keep network timeouts short and preserve the script's native access method |
| 27 | (REST, direct download, local file scan, or HTML scraping). |
| 28 | |
| 29 | ## Validation |
| 30 | |
| 31 | - Validation script: `maintainers/smoke/65_FDA_Orange_Book_smoke_test.py` |
| 32 | - Run: `python maintainers/smoke/65_FDA_Orange_Book_smoke_test.py` |
| 33 | |
| 34 | ## Notes |
| 35 | |
| 36 | - Review `if __name__ == "__main__"` in `65_FDA_Orange_Book.py` first when generating runnable query code. |
| 37 | - Primary link from the example: <https://www.accessdata.fda.gov/scripts/cder/ob/> |
| 38 | - The repository does not keep monthly Orange Book snapshots under version control; on network failure the example writes a tiny built-in offline fixture for smoke testing. |
| 39 | - Inspect the validation script directly for its current assertions and sample entities. |
| 40 | |
| 41 | ## Data Source |
| 42 | |
| 43 | - <https://www.accessdata.fda.gov/scripts/cder/ob/> |
| 44 | - <https://api.fda.gov/drug/ndc.json> |