fda-database
Skill by davila7
Queries the openFDA API for FDA data on drugs, devices, foods, veterinary products and substances. Built for regulatory analysis, pharmacovigilance and safety research.
Install fda-database
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/fda-database ~/.claude/skills/fda-databaseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/fda-database ~/.gemini/antigravity-cli/skills/fda-databaseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The fda-database skill gives an AI assistant access to openFDA, the FDA's open interface to public regulatory datasets. It covers drugs, medical devices, foods, animal and veterinary products, and substances. Requests are made in Python through an FDAQuery class. The source says this class handles rate limiting and includes built-in caching that is on by default.
The skill is organized by category. Drug endpoints include adverse events, product labeling, the NDC directory, enforcement reports, Drugs@FDA approvals and drug shortages. Device endpoints include adverse events, 510(k) clearances, PMA data, classifications, recalls and UDI records. Reference documents and example code cover safety profiles, trend analysis and drug comparisons.
It is aimed at drug researchers, device surveillance teams, food safety analysts, veterinary researchers, and pharmacovigilance or regulatory staff who need FDA data for analysis and safety research.
Written from the project's SKILL.md and checked against it.
What it can do
- Drug dataQueries adverse events, labeling, NDC directory, recalls, approvals and drug shortages.
- Device dataQueries device adverse events, 510(k) clearances, PMA data, classifications, recalls and UDI records.
- Food safety dataQueries food and dietary supplement adverse events and food product recalls.
- Veterinary dataQueries animal drug adverse events by species, breed and product.
- Substance lookupLooks up UNII codes, CAS mapping, chemical structures and substance relationships.
- Pagination and cachingPages through large result sets and caches frequently accessed data by default.
What you need
- Python
- Optional openFDA API key
Try asking
- Summarize adverse event reports for metformin using the FDA database skill
- Find Class I device recalls from openFDA and list the products
- Look up the UNII code for acetaminophen and its CAS number
Good to know
- Without an API key the limit is 1,000 requests per day.
- With an API key the limit is 120,000 requests per day.
- Rate limit is 240 requests per minute with or without a key.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/scientific/fda-database/SKILL.md, cli-tool/components/skills/scientific/fda-database/scripts/fda_examples.py, cli-tool/components/skills/scientific/fda-database/scripts/fda_query.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB -
references/animal_veterinary.md12 KB -
references/api_basics.md16 KB -
references/devices.md18 KB -
references/drugs.md14 KB
Show all 9 files
-
references/foods.md11 KB -
references/other.md13 KB -
scripts/fda_examples.py11 KB -
scripts/fda_query.py15 KB
Alternatives to fda-database
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
fda-database: common questions
Does the FDA database skill need an API key?
The source says the API works without a key, but registering gives a higher daily request limit. The key can be set through the FDA_API_KEY environment variable.
What FDA data can this skill query?
It queries data on drugs, medical devices, foods, animal and veterinary products, and substances. This includes 510(k) and PMA submissions and UNII substance codes.
Does the skill cache results?
Yes. The source says the FDAQuery class includes built-in caching, enabled by default, with a configurable time to live.
How do I install fda-database?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fda-database free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is fda-database safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fda-database?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
