| 36 skills |
104 CLI commands |
115 MCP tools |
18,771 SDTM records, 100% match |
| nine lifecycle stages |
deterministic, byte-identical |
for any MCP agent |
0 errors on two synthetic studies |
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.
Why PharmaSkills
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.
Ask your agent: "Build SDTM from the raw EDC exports in synthetic/studies/PSK-001" |
What you get |
| A prompt-only skill |
Mapping code the model wrote from memory. Conformance, terminology and record counts are whatever the model says they are |
| PharmaSkills |
DM, AE, CM, VS, LB, EX and TS datasets, a mapping spec, Define-XML 2.1, a reviewer's guide draft and a traceability matrix, validated and repaired in a loop: 0 errors and a 100% record match against the gold datasets, byte-identical on every rebuild, with a report that names the engine that checked it |
One ecosystem
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
| Stage |
The job it takes on |
Skills |
Checked against |
| Discovery |
Target assessment, compound triage, competitor landscape, literature reviews |
target-dossier, compound-profiler, competitive-landscape, literature-review |
Open Targets, UniProt, ChEMBL, ClinicalTrials.gov ids; Lipinski, Veber, PAINS; PRISMA counts |
| Preclinical |
IND-enabling study plans, SEND conformance, PK, first-in-human dose |
nonclinical-study-plan, send-checker, pk-nca, fih-dose |
ICH M3(R2) and S-series checklists; SENDIG; FDA 2005 HED guidance |
| Clinical development |
Protocol, consent form, SAP, eCRF, sample size, feasibility, risk-based monitoring |
protocol-m11, icf-writer, sap-writer, crf-cdash, sample-size, trial-feasibility, rbqm-plan |
ICH M11, E9(R1) estimands, E6(R3); 21 CFR 50.25; CDASH and CDISC CT |
| Clinical data |
Raw EDC to SDTM, ADaM, Define-XML, TLF shells |
sdtm-mapper, adam-spec, define-xml, tlf-shells |
SDTMIG and ADaMIG rules, Define-XML 2.1 schema, CDISC CT; CDISC CORE when installed |
| Regulatory |
CSR, CTD Module 2, IB, IND assembly, agency query responses, guidance watch |
csr-e3, ctd-module2, ib-writer, ind-assembler, ha-query-response, regulatory-intelligence |
ICH E3 and M4 structure; every CSR number traced to a table; 21 CFR 312.23 |
| Safety |
Case intake to E2B(R3), signal screening, literature surveillance, PBRER and DSUR |
icsr-e2b, signal-detection, literature-surveillance, aggregate-report |
ICH E2B(R3), E2D minimum criteria, E2C(R2), E2F; EU GVP VI |
| CMC and manufacturing |
Specifications and stability protocols |
specification-builder, stability-protocol |
ICH Q6A, Q6B, Q3A to Q3D, Q1A(R2), Q1E |
| Quality and compliance |
Deviations and CAPA, computerised system validation |
deviation-capa, csv-gamp5 |
GAMP 5, FDA CSA, 21 CFR Part 11, EU Annex 11 |
| Medical and access |
Labels, cost-effectiveness and budget impact |
label-writer, heor-model |
US PLR and EU SmPC section order; DailyMed comparators |
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.
Quickstart
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:
{
"mcpServers": {
"pharmaskills": { "command": "uvx", "args": ["pharmaskills", "mcp", "serve"] }
}
}
pharmaskills mcp install --client <agent> --dry-run prints the exact entry for each client.
Tools include sdtm_run, sdtm_validate, sdtm_repair, define_build, adam_build,
safety_build_e2b, stats_sample_size, stats_nca, stats_hed, stats_disproportionality,
docs_trace_numbers, docs_check_structure, ct_lookup, pubmed_search,
clinicaltrials_search, openfda_search and skills_route: 115 in all
(reference). Without the tools package, skills still work in a
template-only mode that is clearly marked unverified. Details: docs/install.md.
How you know it works
Trust comes in layers. Each one is automated, and you can rerun all of them.