alterlab-fda — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited alterlab-fda (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Access comprehensive FDA regulatory data through openFDA, the FDA's initiative to provide open APIs for public datasets. Query information about drugs, medical devices, foods, animal/veterinary products, and substances using Python with standardized interfaces.
Key capabilities:
This skill should be used when working with:
# Run from the skill's scripts/ dir, or add it to sys.path first.
from fda_query import FDAQuery
# API key is optional (works keyless); pass it or set FDA_API_KEY.
fda = FDAQuery(api_key="YOUR_API_KEY")
# Query drug adverse events
events = fda.query_drug_events("aspirin", limit=100)
# Get drug labeling
label = fda.query_drug_label("Lipitor", brand=True)
# Search device recalls
recalls = fda.query("device", "enforcement",
search="classification:Class+I",
limit=50)While the API works without a key, registering provides higher rate limits:
Register at: https://open.fda.gov/apis/authentication/
Set as environment variable:
export FDA_API_KEY="your_key_here"# Run comprehensive examples
python scripts/fda_examples.py
# This demonstrates:
# - Drug safety profiles
# - Device surveillance
# - Food recall monitoring
# - Substance lookup
# - Comparative drug analysis
# - Veterinary drug analysisAccess 6 drug-related endpoints covering the full drug lifecycle from approval to post-market surveillance.
Endpoints:
Common use cases:
# Safety signal detection
fda.count_by_field("drug", "event",
search="patient.drug.medicinalproduct:metformin",
field="patient.reaction.reactionmeddrapt")
# Get prescribing information
label = fda.query_drug_label("Keytruda", brand=True)
# Check for recalls
recalls = fda.query_drug_recalls(drug_name="metformin")
# Monitor shortages (endpoint is drug/shortages; status values:
# "Current", "To Be Discontinued", "Resolved")
shortages = fda.query("drug", "shortages",
search="status:Current")Reference: See references/drugs.md for detailed documentation
Access 9 device-related endpoints covering medical device safety, approvals, and registrations.
Endpoints:
Common use cases:
# Monitor device safety
events = fda.query_device_events("pacemaker", limit=100)
# Look up device classification
classification = fda.query_device_classification("DQY")
# Find 510(k) clearances
clearances = fda.query_device_510k(applicant="Medtronic")
# Search by UDI
device_info = fda.query("device", "udi",
search="identifiers.id:00884838003019")Reference: See references/devices.md for detailed documentation
Access 2 food-related endpoints for safety monitoring and recalls.
Endpoints:
Common use cases:
# Monitor allergen recalls
recalls = fda.query_food_recalls(reason="undeclared peanut")
# Track dietary supplement events
events = fda.query_food_events(
industry="Dietary Supplements")
# Find contamination recalls
listeria = fda.query_food_recalls(
reason="listeria",
classification="I")Reference: See references/foods.md for detailed documentation
Access veterinary drug adverse event data with species-specific information.
Endpoint:
Common use cases:
# Species-specific events
dog_events = fda.query_animal_events(
species="Dog",
drug_name="flea collar")
# Breed predisposition analysis
breed_query = fda.query("animalandveterinary", "event",
search="reaction.veddra_term_name:*seizure*+AND+"
"animal.breed.breed_component:*Labrador*")Reference: See references/animal_veterinary.md for detailed documentation
Access molecular-level substance data with UNII codes, chemical structures, and relationships.
Endpoints:
Common use cases:
# UNII to CAS mapping
substance = fda.query_substance_by_unii("R16CO5Y76E")
# Search by name
results = fda.query_substance_by_name("acetaminophen")
# Get chemical structure
structure = fda.query("other", "substance",
search="names.name:ibuprofen+AND+substanceClass:chemical")Reference: See references/other.md for detailed documentation
Reusable FDAQuery patterns (safety profiles, temporal trends, comparative and cross-database lookups), the response structure, error handling, pagination, and best practices live in references/query_patterns.md.
Essentials to keep in mind:
patient.drug.medicinalproduct:aspirin), notbare wildcards.
FDAQuery handles rate limiting (240/min, 120,000/day with key) and cachingautomatically.
exact=True on count_by_field to count exact phrases (adds .exact).{meta: {results: {total, ...}}, results: [...]} shape;always check for error and empty results.
For detailed information about:
references/api_basics.mdreferences/query_patterns.mdreferences/drugs.mdreferences/devices.mdreferences/foods.mdreferences/animal_veterinary.mdreferences/other.mdscripts/fda_query.pyMain query module with FDAQuery class providing:
scripts/fda_examples.pyComprehensive examples demonstrating:
Run examples:
python scripts/fda_examples.pyIssue: Rate limit exceeded
Issue: No results found
Issue: Invalid query syntax
references/api_basics.mdIssue: Missing fields in results
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.