Examples gallery¶
One committed, synthetic worked example per lifecycle stage. Every output shown below is read
from the committed files under examples/ (all inputs are synthetic). Outputs are drafts for
qualified review. The folder of each example holds the full inputs, outputs and refusal samples.
Paths are relative to the repository root. See the skill catalogue for the other 28 skills, each with its own example.
1. Discovery: compound-profiler¶
Folder: examples/discovery/compound-profiler
pharmaskills chem profile --file skills/compound-profiler/evals/fixtures/compounds.smi
Headline output (out/profile.json): 3 molecules, 0 invalid. Aspirin MW 180.159, cLogP 1.31,
0 Lipinski violations, one Brenk alert (phenol ester). The benzylidene rhodanine is flagged
PAINS_A, as designed. The output states "Screening flags for expert review; not a statement of
safety."
2. Preclinical: fih-dose¶
Folder: examples/preclinical/fih-dose
pharmaskills stats hed --noael rat=50
Headline output (out/hed.json): rat NOAEL 50 mg/kg gives HED 8.11 mg/kg (Km method, FDA 2005
Table 1), MRSD 0.81 mg/kg with safety factor 10, which is 48.6 mg for a 60 kg human. The
recommendation notes when MABEL should be considered instead.
3. Clinical development: sample-size¶
Folder: examples/clinical/sample-size
pharmaskills stats sample-size --design two-means --delta 0.5 --sd 1 --power 0.9 --alpha 0.05
Headline output (out/sample_size.json): 86 per group, 172 in total, achieved power 0.903,
with the formula and assumptions recorded. With --dropout 0.15 the committed run enrols 102
per group.
4. Clinical data: sdtm-mapper¶
Folder: examples/clinical-data/sdtm-mapper
pharmaskills sdtm run <study> --spec spec.yaml --ct-file ct_subset.txt --no-model
Headline output (out/validation_report.json): engine pharmaskills-native, 0 errors,
2 warnings, passed. The report notes that these are native checks, not CDISC CORE. The folder
also holds the datasets (XPT and Dataset-JSON), Define-XML 2.1, the cSDRG draft, the
traceability matrix and the run manifest. See the benchmarks for the two
full synthetic studies.
5. Regulatory: csr-e3¶
Folder: examples/regulatory/csr-e3
pharmaskills docs trace-numbers out/csr_sections.docx --tlf fixtures/tlf --out out/trace_report.json
pharmaskills docs check-structure out/csr_sections.docx --standard ich-e3 --out out/structure_report.json
Headline output: 64 numbers checked, all traced to a TLF cell, 0 untraceable, 0 inconsistent
percentages (4 tables indexed). The structure check finds 77 headings and no missing required
ICH E3 section. Sections without a supplied source stay [DATA NEEDED: ...] placeholders.
6. Safety: signal-detection¶
Folder: examples/safety/signal-detection
pharmaskills stats disproportionality --a 19399 --b 419766 --c 12273 --d 20241252
Headline output (out/disproportionality.json, counts recorded from openFDA FAERS for
metformin and lactic acidosis): PRR 72.90, ROR 76.22, IC 4.85. These are screening flags for
clinical review, never evidence of causality or incidence. A hand check on a small synthetic
table (a=20, b=80, c=100, d=9800) gives PRR 19.800 and ROR 24.500, which the tool reproduces.
7. CMC: stability-protocol¶
Folder: examples/cmc/stability-protocol
pharmaskills stats shelf-life stability_assay.csv --criterion 95 --direction decreasing
Headline output (out/shelf_life.json): batches are not poolable at the 0.25 level, so the
recommended scenario is separate batches with a shelf life of 22.7 months, flagged as
extrapolated beyond the 18 months of data but inside the stated limit.
8. Quality: csv-gamp5¶
Folder: examples/quality/csv-gamp5
pharmaskills quality part11-checklist --system-type ai-agent --gxp-impact medium --out out/part11_checklist.csv
Headline output (out/checklist_check.json): 34 checklist rows, 28 open gaps, 0 errors. The
gaps are shown on purpose: the pack is a plan and no test has been executed. The example also
holds a document explaining how to validate PharmaSkills for your own use.
9. Medical and access: heor-model¶
Folder: examples/medical-commercial/heor-model
pharmaskills stats icer --strategy "Standard care:12000:2.10" --strategy "Drug A:30000:2.60" --wtp 50000
Headline output (out/icer_two_strategies.json): Drug A against standard care, incremental
cost 18,000 and incremental effect 0.5 QALY give an ICER of 36,000 (north-east quadrant), with
a one-way sensitivity analysis. With three strategies, Drug C is flagged as dominated.
Across all stages¶
examples/all/lifecycle-navigator shows the routing skill producing a stage-by-stage plan for a synthetic program.