agentsclimarketplace

Dailymed

Skill BioTender-max/awesome-bio-agent-skills/skills/drugclaw/dailymed

Query DailyMed for FDA drug label / package insert information. Use whenever the user asks about drug labeling, SPL documents, prescribing information, NDC codes, or needs to look up current FDA-approved drug details by name or NDC. Supports single entity or batch queries.From its SKILL.md

Install
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill dailymed

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.3 KB, 579 tokens by cl100k_base, as published. Nobody here has run it

DailyMed Query Skill

Search DailyMed SPL labels by drug name or NDC code. No API key required.

Input TypeFunctionReturns
drug name (str)search_drug_labels(name, limit)list of label summaries
SPL set IDget_label_detail(set_id)dict (parsed from XML)
NDC codeget_ndc_info(ndc, limit)list of label summaries (JSON)
str or list[str]query(entities, limit)concise text summary
list[str]search_batch(entities, limit)dict[entity → results]

API

FunctionInputReturns
search_drug_labels(drug_name, limit=5)drug name stringlist[dict] with title, setid
get_label_detail(set_id)SPL set IDdict (XML→dict, keys vary by label)
get_ndc_info(ndc, limit=5)NDC stringlist[dict] with title, setid
search_batch(entities, limit=3)list of drug namesdict[str, list[dict]]
summarize(results, entity)results list + labelcompact text
query(entities, limit=3)single str or list[str]LLM-readable text block

Usage

See if __name__ == "__main__" block in 06_DailyMed.py for runnable examples covering: single drug search, batch multi-drug search, label detail retrieval, and NDC lookup.

Quick Examples

from importlib.machinery import SourceFileLoader
dm = SourceFileLoader("dm", "06_DailyMed.py").load_module()

# Single entity
print(dm.query("metformin"))

# Multiple entities
print(dm.query(["aspirin", "lisinopril", "atorvastatin"]))

# Full label detail
hits = dm.search_drug_labels("metformin", limit=1)
detail = dm.get_label_detail(hits[0]["setid"])

Data Source

  • Provider: U.S. National Library of Medicine / DailyMed
  • Base URL: https://dailymed.nlm.nih.gov/dailymed/services/v2
  • Auth: None (public API)
  • Note: Search (/spls.json) and NDC lookup (/spls.json?ndc=...) return JSON. Detail endpoint (/spls/{setid}.xml) is XML-only; parsed to dict automatically.

What ships with it: 5 files

11.0 KB alongside SKILL.md, 4 of them executable

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.