Skip to main content Switch to mobile version pharmaskills 1.0.0 Pharma skills for AI agents: 36 drug development skills, deterministic tools (SDTM, Define-XML, ADaM, E2B) and an MCP server, with every output checked against its standard.
pip install pharmaskills==1.0.0 Copy PIP instructions
The tested engine for AI agents in pharma.
Skills, an MCP server, live data connectors and checkers on one deterministic engine. Raw EDC to validated SDTM in seconds, then protocols, CSRs, E2B(R3) safety cases and CMC, from target to label. The agent drafts. The tools compute and check. You review.
Works with Claude Code · Codex · Cursor · Gemini CLI · OpenCode · any MCP client
English · 简体中文 · 日本語 · 한국어 · Español · Português (Brasil) · Deutsch · Français
One engine, every stage. The recording below is six real runs on synthetic data, one per lifecycle stage: SDTM built from raw EDC exports, a compound profile, a first-in-human dose, a trial sample size, a safety signal screen and ICH Q3A impurity limits. Every number comes from tested code, not from the model.
Measured proof behind the SDTM scene: raw EDC to SDTM with 0 validation errors on two synthetic studies (PSK-001 and PSK-002), measured 2026-11-13. 100% record match against the gold datasets (18,771 records), byte-identical rebuild, 0.75 s or less per study, validated by the pharmaskills-native 1.0.0 checks (CDISC CORE was not run in this build environment). Details and caveats: Benchmarks.
uvx pharmaskills setup # installs the tools, 36 skills and the MCP server into every agent it finds Everything PharmaSkills produces is a draft for qualified review. It is not validated GxP software. See Trust and guardrails.
Most AI skills for pharma are prompts. The model reads an instruction, then maps the SDTM variables, picks the controlled terms, computes the sample size and grades its own work. Nothing checks it, and the same request can give a different answer tomorrow.
What you can do with it
Turn raw EDC into a study data package. pharmaskills sdtm run profiles the exports, proposes and validates a mapping spec, builds the domains, writes Define-XML 2.1 and a reviewer's guide draft, then validates and repairs in a bounded loop. adam build derives ADSL and ADAE with unit-tested derivations, and define build covers the datasets you add.
Write protocols and plans whose numbers add up. stats sample-size covers means, proportions, log-rank, non-inferiority and equivalence and matches published reference values. protocol check-estimands checks the five ICH E9(R1) attributes; protocol-m11 drafts in ICH M11 structure with a schedule of activities.
Ship reports with every number traced. docs trace-numbers ties each number in a CSR section to its source table. docs check-structure checks ICH E3, M4, M11, IB, PBRER and DSUR section order and names what is missing.
Take a safety case to E2B(R3). safety minimum-criteria, seriousness and expectedness, then safety build-e2b and validate-e2b. stats disproportionality gives PRR, ROR and IC with intervals from openFDA FAERS counts.
Get discovery and preclinical numbers from code. chem profile (RDKit descriptors, Lipinski, Veber, PAINS, QED), stats nca (AUC, Cmax, half-life, clearance) and stats hed (human equivalent dose and MRSD from animal NOAELs).
Set CMC limits from the ICH tables. cmc impurity-thresholds, solvent-limits, elemental and stability-conditions, and stats shelf-life for an ICH Q1E estimate.
Back every claim with a source. Connectors return records with ids, and docs check-citations flags links outside the official regulator domains.
Where it helps in the drug lifecycle
Not sure where to start? Ask lifecycle-navigator where your program is. It lists the next milestones and routes every step to a skill in the pack.
Workflows that chain skills
Study data package: raw EDC exports, then sdtm-mapper (datasets, spec, reviewer's guide, traceability), define-xml, adam-spec (ADSL, ADAE), tlf-shells, then csr-e3 with every number traced back to its table.
Protocol to first patient: trial-feasibility and sample-size, then protocol-m11 with estimands and a schedule of activities, then icf-writer, crf-cdash, sap-writer and rbqm-plan.
Target to IND: target-dossier and compound-profiler, then nonclinical-study-plan, pk-nca and fih-dose, then ib-writer, ctd-module2 and ind-assembler with a gap list.
Safety case to submission file: an email or literature article goes to icsr-e2b (minimum criteria, seriousness, expectedness, validated E2B(R3) XML), while literature-surveillance and signal-detection feed aggregate-report.
Status: 1.0. Install from PyPI, npm or the Docker image ghcr.io/aiagentpro/pharmaskills. Outputs are drafts for qualified review, not validated GxP software; open verification items are listed in docs/PROGRESS.md. Changes: CHANGELOG.md.
One command (needs uv). It installs the tool, the skills and the MCP server for every agent it finds, then runs doctor:
uvx pharmaskills setup # every agent found on this machine uvx pharmaskills setup --agent claude-code # or name one (repeatable) uvx pharmaskills setup --dry-run # show what would change Run it again after an upgrade to refresh the skills. Then, in a clone of this repository (git clone https://github.com/aiagentpro/pharmaskills, where the synthetic studies live), ask your agent:
Map the raw EDC exports in synthetic/studies/PSK-001/raw to SDTM and show me the mappings that need review.
Draft CSR section 12 from the TLFs in synthetic/studies/PSK-001/tlf and trace every number.
A patient on drug X had a seizure after the second dose. Here is the email. Build the ICSR.
A working skill calls the tools, shows a check report naming the engine that ran, and writes [DATA NEEDED: ...] instead of inventing anything it was not given.
Prefer to see it without an agent? Clone the repository and run the pipeline yourself:
git clone https://github.com/aiagentpro/pharmaskills && cd pharmaskills uv sync --extra dev uv run pharmaskills doctor # environment, CORE, terminology cache, agents uv run pharmaskills sdtm run synthetic/studies/PSK-001 \ --spec synthetic/studies/PSK-001/gold/spec.yaml \ --ct-file tests/fixtures/ct/sdtm_terminology_subset.txt --no-model # raw EDC to validated SDTM and Define-XML in about a second uv run pharmaskills eval run # 197/197 skill eval cases uv run pharmaskills bench safety # 26/26 safety and honesty tests Connect your agent
pharmaskills setup does everything below for you. It adds only the pharmaskills entries and keeps your other skills and servers. To install piece by piece:
uv tool install pharmaskills # or: pipx install pharmaskills pharmaskills skills install --agent claude-code # one skill: add --skill sdtm-mapper pharmaskills mcp install --client claude-code # --dry-run prints the exact entry Claude Code
uvx pharmaskills setup --agent claude-code Or by hand: skills go to .claude/skills (project) or ~/.claude/skills (user), and the server is one line:
claude mcp add pharmaskills -- uvx pharmaskills mcp serve Codex
uvx pharmaskills setup --agent codex Skills go to .agents/skills or ~/.agents/skills. The server, in ~/.codex/config.toml:
[mcp_servers.pharmaskills] command = "uvx" args = ["pharmaskills", "mcp", "serve"] Cursor, Gemini CLI, OpenCode and any MCP client
uvx pharmaskills setup --agent cursor # or gemini-cli, opencode Gemini CLI can also install this repository as an extension (gemini-extension.json brings the lifecycle context and a pinned MCP server). Most MCP clients take this shape:
How you know it works
Trust comes in layers. Each one is automated, and you can rerun all of them.
What the tests do not prove. The data is synthetic. CDISC CORE runs only where you install it. Deterministic evals replay recorded answers, so they test the checkers and not the model's writing. Some ICH and E2B(R3) citations are flagged for expert verification. Before any output enters a regulated process, a qualified person must review it and you must validate the tool for your intended use. The csv-gamp5 skill shows how.
Published numbers are read from bench/results/ by a script. A number with no result file is not published.
The SDTM benchmark runs the deterministic engine on a committed gold specification of two synthetic studies. It shows the engine reproduces the gold datasets exactly. It does not measure a model drafting a spec, and it is not a result on real data.
Validation used the native engine (pharmaskills-native). CDISC CORE was not run in the build environment, so no CORE conformance is claimed. Reports always name the engine.
Skill evals are a deterministic replay of recorded answers, not a model measurement.
Methodology and per-domain tables: docs/benchmarks.md.
36 skills: 24 Tier 1 (backed by a deterministic tool or validator) and 12 Tier 2 (templates, references and a scored rubric). One page per skill is on the docs site.
Trust and guardrails
Deterministic: the same inputs give byte-identical outputs on every operating system.
No fabrication: missing inputs become [DATA NEEDED: ...], never invented values.
Audit trail: every report gets a manifest with the command, tool version and SHA-256 hashes.
Local and private: no telemetry. The tools run locally; connectors only query public sources, and you can point your agent at a local model when data must stay on your machine.
No licensed content: MedDRA, WHODrug, SNOMED CT and UMLS are not included. Bring your own licensed files.
Safety outputs (icsr-e2b, signal-detection) do not replace your reporting obligations.
Honest limits: some rules rest on instruction text only. See docs/guardrails-validation.md and DISCLAIMER.md.
Every skill has a synthetic, committed example (inputs, real tool outputs, refusal samples) under examples/. Commands and headline outputs: docs/examples-gallery.md.
Planned for v1.x: ADaM beyond ADSL and ADAE; SDTM domains beyond the six core (plus TS); eCTD XML backbone; MedDRA and WHODrug auto-coding (user-licensed); RWE study design; medical information letters; promotional review; pediatric plans; orphan designation; device and combination products.
PharmaSkills grows with the people who use it. Good places to start:
Propose a skill with the new skill form. A skill is a skills/
Report a standards change when ICH, CDISC or a regulator updates a guideline.
Pick up a good first issue or ask in Discussions.
Translate the README (translation guide).
Read the contributing guide and the code of conduct. Contributors sign the CLA. Use synthetic data only: never put real patient data, confidential documents or licensed dictionary content in issues or fixtures. Report security problems privately (SECURITY.md). If you use PharmaSkills in research, please cite it (CITATION.cff).
Docs site · Quickstart · Install · SDTM mapper guide · Lifecycle · CLI reference · MCP tools · Benchmarks · Guardrails · Extension points · FAQ · Decisions · Changelog
PharmaSkills is published only from these places. A package, fork or site that uses the name anywhere else is not the official project and is not reviewed by its maintainers.
Python package: https://pypi.org/project/pharmaskills/
Documentation: https://aiagentpro.github.io/pharmaskills/
npm launcher: https://www.npmjs.com/package/pharmaskills
Container image: ghcr.io/aiagentpro/pharmaskills
Code: Apache-2.0 (LICENSE, NOTICE). Examples and synthetic data: CC BY 4.0. PharmaSkills™ and the PharmaSkills logo are trademarks of the project owner and are not licensed under Apache-2.0 (TRADEMARKS.md).
Released: Nov 29, 2026
Author: The PharmaSkills Authors
Apache Software License (Apache-2.0)
Python <3.15, >=3.11
adam agent-skills ai-agents biostatistics cdisc claude-code claude-skills clinical-trials define-xml drug-development e2b mcp mcp-server pharma pharmacokinetics pharmacovigilance regulatory sdtm
Development Status 4 - Beta
Intended Audience Healthcare Industry
License OSI Approved :: Apache Software License
Operating System OS Independent
Programming Language Python :: 3.11
Topic Scientific/Engineering
Scientific/Engineering :: Bio-Informatics
Scientific/Engineering :: Medical Science Apps.
Release files for pharmaskills 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.7 MB
Release files / pharmaskills-1.0.0.tar.gz
Release files / pharmaskills-1.0.0-py3-none-any.whl
Security for pharmaskills 1.0.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files Full provenance
Nov 29, 2026 2 release files No provenance
Oct 16, 2026 2 release files No provenance
Oct 14, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











