CLI reference¶
Every command of the pharmaskills CLI. Add --help to any command for the same text in the terminal and --json where listed for machine-readable output.
Command groups¶
| Group | Purpose |
|---|---|
adam |
ADaM derivation build and test |
bench |
Benchmarks and tool accuracy suite |
cdash |
CDASH eCRF mapping and checks |
chem |
Chemistry profile and structural alerts (RDKit) |
cmc |
CMC: impurity thresholds, solvent limits, stability |
connectors |
Public data connectors |
ct |
CDISC controlled terminology: sync, lookup, codelist |
define |
Define-XML 2.1: build, validate, render |
docs |
Document checks: structure, numbers, ICF, PII |
doctor |
Check Python, CORE, CT cache, network and installed agents. |
eval |
Run skill evaluations (PRD s14). |
lit |
Literature review checks: PRISMA counts, screening log |
mcp |
MCP server: serve and install |
protocol |
Protocol checks: estimands, schedule of activities |
pubmed |
PubMed helpers (alias of connectors pubmed) |
qa |
Repository quality guards. |
quality |
Quality checks: CAPA fields, Part 11 and Annex 11 checklist |
reg |
Regulatory: IND checklist, CTD map |
safety |
Safety: E2B(R3) build and validate, criteria |
sdtm |
SDTM mapper: profile, propose, build, validate, repair |
send |
SEND conformance validation via CDISC CORE |
setup |
One command: install the tool, the skills and the MCP server, then run doctor. |
skills |
Skill registry and lint. |
stats |
Calculators: sample size, NCA, HED, PRR, shelf life |
trials |
Trial landscape and feasibility from ClinicalTrials.gov |
pharmaskills adam¶
ADaM derivation build and test
Subcommands: build, test
pharmaskills adam build¶
Derive ADSL and ADAE (XPT, Dataset-JSON), the spec workbook and derivation programs.
pharmaskills adam build [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder or folder of SDTM XPT files. | |
--spec |
path | yes | ADaM spec YAML (adam_spec.yaml). | |
--out |
path | out/adam |
Output directory. | |
--no-code |
flag | Skip adsl.py and adae.py. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills adam test¶
Run derivation unit checks; exit 2 when any check fails.
pharmaskills adam test [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder or folder of SDTM XPT files. | |
--spec |
path | yes | ADaM spec YAML (adam_spec.yaml). | |
--expected |
path | Expected-values YAML. | ||
--out |
path | out/adam/adam_test_report.json |
Test report JSON. | |
--json |
flag | Emit machine-readable JSON. |
pharmaskills bench¶
Benchmarks and tool accuracy suite
Subcommands: compare, evals, safety, sdtm, tools
pharmaskills bench compare¶
Regression guard: fail when a quality metric drops or an error count rises.
pharmaskills bench compare [OPTIONS] PREVIOUS CURRENT
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
PREVIOUS |
path | yes | Previous result JSON. | |
CURRENT |
path | yes | Current result JSON. | |
--tolerance |
float | Allowed drop. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills bench evals¶
Skill eval pass rates by lifecycle stage and overall (deterministic replay).
pharmaskills bench evals [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--out |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills bench safety¶
Run the adversarial safety and honesty suite and record the measured result.
pharmaskills bench safety [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--out |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills bench sdtm¶
Measure CORE or native errors, spec accuracy, record match and run time.
pharmaskills bench sdtm [OPTIONS] [STUDIES]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDIES |
str | PSK-001 PSK-002 | ||
--spec |
path | Candidate spec (default gold). | ||
--ct-file |
path | |||
--out |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills bench tools¶
Tool accuracy suite: percent of reference calculations matched.
pharmaskills bench tools [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--out |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills cdash¶
CDASH eCRF mapping and checks
Subcommands: build-spec, map
pharmaskills cdash build-spec¶
Derive forms per visit from the SoA, map fields to CDASH and CT, write crf_spec.xlsx.
pharmaskills cdash build-spec [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--soa |
path | yes | Schedule of activities CSV (wide layout). | |
--fields |
str | yes | FORM=fields.csv, repeatable (forms AE CM DM VS LB EX). | |
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--xlsx |
path | crf_spec.xlsx path. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills cdash map¶
Map collected field labels to CDASH variables; flag unknown fields, resolve CT values.
pharmaskills cdash map [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--form |
str | yes | AE | CM | DM | EX | LB | VS | |
--fields |
path | yes | CSV: label[,values] per field. | |
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--csv |
path | Flat mapping CSV path. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills chem¶
Chemistry profile and structural alerts (RDKit)
Subcommands: alerts, profile
pharmaskills chem alerts¶
Structural alerts only (PAINS A/B/C and Brenk).
pharmaskills chem alerts [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--smiles |
str | One SMILES string. | ||
--file |
path | A .smi or .sdf file. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills chem profile¶
Descriptors, Lipinski, Veber, PAINS/Brenk alerts and QED (screening flags only).
pharmaskills chem profile [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--smiles |
str | One SMILES string. | ||
--file |
path | A .smi or .sdf file. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills cmc¶
CMC: impurity thresholds, solvent limits, stability
Subcommands: elemental, impurity-thresholds, solvent-limits, stability-conditions
pharmaskills cmc elemental¶
ICH Q3D(R2) PDEs and concentration limits implied by the daily dose.
pharmaskills cmc elemental [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--dose-g-per-day |
float | yes | Maximum daily dose in g/day. | |
--route |
str | oral |
oral, parenteral or inhalation. | |
--elements |
str | Element symbols (repeatable). | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills cmc impurity-thresholds¶
ICH Q3A(R2)/Q3B(R2) reporting, identification and qualification thresholds.
pharmaskills cmc impurity-thresholds [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--dose-g-per-day |
float | yes | Maximum daily dose in g/day. | |
--kind |
str | substance |
substance (Q3A) or product (Q3B). | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills cmc solvent-limits¶
ICH Q3C(R8) residual solvent class, PDE and concentration limits.
pharmaskills cmc solvent-limits [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--solvent |
str | yes | Solvent name, e.g. toluene. | |
--dose-g-per-day |
float | Daily dose for option 2. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills cmc stability-conditions¶
ICH Q1A(R2) storage conditions and minimum time points.
pharmaskills cmc stability-conditions [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--zone |
str | yes | I, II, III, IVa or IVb. | |
--pack |
str | impermeable |
permeable, impermeable, refrigerated or frozen. | |
--storage |
str | general |
general, refrigerator or freezer. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors¶
Public data connectors
Subcommands: cdisc-library, chembl, clinicaltrials, ct, dailymed, list, openfda, opentargets, pubmed, uniprot
pharmaskills connectors cdisc-library¶
CDISC Library API (needs CDISC_LIBRARY_API_KEY).
Subcommands: fetch, search
pharmaskills connectors cdisc-library fetch¶
Fetch one cdisc_library record by identifier (CDISC Library API (needs CDISC_LIBRARY_API_KEY)).
pharmaskills connectors cdisc-library fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors cdisc-library search¶
Search cdisc_library: CDISC Library API (needs CDISC_LIBRARY_API_KEY). Returns records with citations.
pharmaskills connectors cdisc-library search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors chembl¶
ChEMBL: molecule search, molecule records and bioactivities.
Subcommands: fetch, search
pharmaskills connectors chembl fetch¶
Fetch one chembl record by identifier (ChEMBL: molecule search, molecule records and bioactivities).
pharmaskills connectors chembl fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors chembl search¶
Search chembl: ChEMBL: molecule search, molecule records and bioactivities. Returns records with citations.
pharmaskills connectors chembl search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors clinicaltrials¶
ClinicalTrials.gov API v2: search studies, fetch by NCT id.
Subcommands: fetch, search
pharmaskills connectors clinicaltrials fetch¶
Fetch one clinicaltrials record by identifier (ClinicalTrials.gov API v2: search studies, fetch by NCT id).
pharmaskills connectors clinicaltrials fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors clinicaltrials search¶
Search clinicaltrials: ClinicalTrials.gov API v2: search studies, fetch by NCT id. Returns records with citations.
pharmaskills connectors clinicaltrials search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors ct¶
CDISC controlled terminology from the local cache (run pharmaskills ct sync).
Subcommands: fetch, search
pharmaskills connectors ct fetch¶
Fetch one ct record by identifier (CDISC controlled terminology from the local cache (run pharmaskills ct sync)).
pharmaskills connectors ct fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors ct search¶
Search ct: CDISC controlled terminology from the local cache (run pharmaskills ct sync). Returns records with citations.
pharmaskills connectors ct search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors dailymed¶
DailyMed SPL labels: search by drug name, fetch by set id.
Subcommands: fetch, search
pharmaskills connectors dailymed fetch¶
Fetch one dailymed record by identifier (DailyMed SPL labels: search by drug name, fetch by set id).
pharmaskills connectors dailymed fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors dailymed search¶
Search dailymed: DailyMed SPL labels: search by drug name, fetch by set id. Returns records with citations.
pharmaskills connectors dailymed search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors list¶
List available connectors and whether each is configured.
pharmaskills connectors list [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors openfda¶
openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports.
Subcommands: fetch, search
pharmaskills connectors openfda fetch¶
Fetch one openfda record by identifier (openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports).
pharmaskills connectors openfda fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors openfda search¶
Search openfda: openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports. Returns records with citations.
pharmaskills connectors openfda search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors opentargets¶
Open Targets Platform: target search, associations, tractability.
Subcommands: fetch, search
pharmaskills connectors opentargets fetch¶
Fetch one opentargets record by identifier (Open Targets Platform: target search, associations, tractability).
pharmaskills connectors opentargets fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors opentargets search¶
Search opentargets: Open Targets Platform: target search, associations, tractability. Returns records with citations.
pharmaskills connectors opentargets search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors pubmed¶
PubMed via NCBI E-utilities: search and fetch records by PMID.
Subcommands: build-query, fetch, search
pharmaskills connectors pubmed build-query¶
Build a PubMed query string with field tags (no network access).
pharmaskills connectors pubmed build-query [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--term, -t |
str | Question term (repeatable). | ||
--mesh, -m |
str | MeSH term (repeatable). | ||
--date-range |
str | Publication range, e.g. 2020:2024. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors pubmed fetch¶
Fetch one pubmed record by identifier (PubMed via NCBI E-utilities: search and fetch records by PMID).
pharmaskills connectors pubmed fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors pubmed search¶
Search pubmed: PubMed via NCBI E-utilities: search and fetch records by PMID. Returns records with citations.
pharmaskills connectors pubmed search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors uniprot¶
UniProtKB: protein search and entries.
Subcommands: fetch, search
pharmaskills connectors uniprot fetch¶
Fetch one uniprot record by identifier (UniProtKB: protein search and entries).
pharmaskills connectors uniprot fetch [OPTIONS] IDENTIFIER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
IDENTIFIER |
str | yes | Record identifier. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills connectors uniprot search¶
Search uniprot: UniProtKB: protein search and entries. Returns records with citations.
pharmaskills connectors uniprot search [OPTIONS] QUERY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
QUERY |
str | yes | Search text or connector-specific query. | |
--limit, -n |
int range | 20 |
Maximum records to return. | |
--param, -p |
str | Connector parameter as key=value (repeatable). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills ct¶
CDISC controlled terminology: sync, lookup, codelist
Subcommands: codelist, lookup, sync, validate-values
pharmaskills ct codelist¶
Show a codelist and its terms.
pharmaskills ct codelist [OPTIONS] CODELIST
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
CODELIST |
str | yes | C-code or submission name, e.g. C66769. | |
--version |
str | CT release date YYYY-MM-DD. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills ct lookup¶
Resolve a term to its CDISC submission value and codelist.
pharmaskills ct lookup [OPTIONS] TERM
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
TERM |
str | yes | Value or synonym to resolve. | |
--codelist |
str | C-code or name. | ||
--version |
str | CT release date YYYY-MM-DD. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills ct sync¶
Download a CT package from NCI EVS into the local cache.
pharmaskills ct sync [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--version |
str | CT release date YYYY-MM-DD. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills ct validate-values¶
Check values against a codelist; exit 2 if any are not valid submission values.
pharmaskills ct validate-values [OPTIONS] CODELIST [VALUES]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
CODELIST |
str | yes | Codelist C-code or name. | |
VALUES |
str | Values to check. | ||
--file |
path | CSV file to read values from. | ||
--column |
str | Column in --file. | ||
--report |
path | Write JSON report. | ||
--version |
str | CT release date YYYY-MM-DD. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills define¶
Define-XML 2.1: build, validate, render
Subcommands: build, render, validate
pharmaskills define build¶
Build define.xml and define.html for a study.
pharmaskills define build [OPTIONS] STUDY_DIR
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY_DIR |
path | yes | Study folder (study.yaml, raw/). | |
--spec |
path | Mapping spec YAML. | ||
--out |
path | Output directory. | ||
--ct-file |
path | CT package file instead of the cache. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills define render¶
Render a Define-XML file to a self-contained HTML page.
pharmaskills define render [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | define.xml to render. | |
--out |
path | HTML output file. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills define validate¶
Structurally validate a Define-XML file; exit 2 on failure.
pharmaskills define validate [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | define.xml to validate. | |
--xsd |
path | Official Define-XML XSD. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs¶
Document checks: structure, numbers, ICF, PII
Subcommands: banner, build, check-citations, check-icf, check-structure, detect-pii, official-host, readability, trace-numbers
pharmaskills docs banner¶
Print the draft banner, or insert banner and provenance into a file (idempotent).
pharmaskills docs banner [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--apply |
path | Markdown or DOCX file to receive the banner. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs build¶
Build a DOCX from Markdown: real heading styles, draft banner, provenance, header rows.
pharmaskills docs build [OPTIONS] SOURCE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
SOURCE |
path | yes | Markdown file to convert. | |
--out |
path | DOCX path (default: next to source). | ||
--title |
str | Draft document |
Document title. | |
--skill |
str | pharmaskills |
Skill name for the provenance block. | |
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs check-citations¶
Check each assertion paragraph carries a resolvable citation; exit 2 when not.
pharmaskills docs check-citations [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | Narrative document (DOCX, Markdown, text). | |
--source |
path | Supplied source file a [Source: ...] marker may cite. | ||
--require-commitments |
flag | Commitments must be in their own section. | ||
--require-official-links |
flag | Links must be on official domains. | ||
--require-effective-date |
flag | Effective date stated or marked unknown. | ||
--domains-file |
path | Custom official domains YAML. | ||
--out |
path | Write the full JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs check-icf¶
Check the 21 CFR 50.25 elements of informed consent by wording evidence.
pharmaskills docs check-icf [OPTIONS] DOC
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
DOC |
path | yes | Informed consent form (DOCX, Markdown, text). | |
--elements-file |
path | Custom evidence rules YAML. | ||
--out |
path | Write the full JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs check-structure¶
Check a document's headings against a standard's section list.
pharmaskills docs check-structure [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | DOCX, Markdown or text file. | |
--standard |
str | yes | Standard id, e.g. ich-e3. | |
--out |
path | Write the full JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs detect-pii¶
Find personal identifiers (types, files, lines only); exit 2 when any are found.
pharmaskills docs detect-pii [OPTIONS] PATH
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
PATH |
path | yes | File or folder to scan. | |
--out |
path | Write the full JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs official-host¶
Exit 0 when the URL's host is on the official domain list, 2 otherwise.
pharmaskills docs official-host [OPTIONS] URL
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
URL |
str | yes | URL to check against the official domain list. | |
--domains-file |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs readability¶
Flesch-Kincaid grade and Flesch reading ease; exit 2 when above the target grade.
pharmaskills docs readability [OPTIONS] DOC
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
DOC |
path | yes | Document to score. | |
--target-grade |
float | 8.0 |
Maximum acceptable grade level. | |
--out |
path | Write the full JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills docs trace-numbers¶
Verify every number in DOC appears in the TLF outputs; exit 2 if any does not.
pharmaskills docs trace-numbers [OPTIONS] DOC
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
DOC |
path | yes | Document to trace (DOCX, Markdown, text). | |
--tlf |
path | yes | TLF file or folder (CSV, DOCX, RTF, text, PDF). | |
--out |
path | Write the full JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills doctor¶
Check Python, CORE, CT cache, network and installed agents.
pharmaskills doctor [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--json |
flag | Emit machine-readable JSON. | ||
--no-network |
flag | Skip network probe. |
pharmaskills eval¶
Run skill evaluations (PRD s14).
Subcommands: run
pharmaskills eval run¶
Run eval cases and write results under bench/results/
pharmaskills eval run [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--skill |
str | Only this skill id. | ||
--mode |
str | deterministic |
deterministic (replay) or model (headless agent). | |
--model |
str | `` | Model name recorded and passed. | |
--results-dir |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills lit¶
Literature review checks: PRISMA counts, screening log
Subcommands: check-prisma, check-screening-log
pharmaskills lit check-prisma¶
Verify PRISMA flow counts reconcile; exit 2 with a report when they do not.
pharmaskills lit check-prisma [OPTIONS] PRISMA
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
PRISMA |
path | yes | prisma.json with PRISMA 2020 flow counts. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills lit check-screening-log¶
Every record needs a PMID, a decision (include or exclude) and a reason.
pharmaskills lit check-screening-log [OPTIONS] LOG
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
LOG |
path | yes | screening_log.csv (pmid, decision, reason). | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills mcp¶
MCP server: serve and install
Subcommands: install, serve, tools
pharmaskills mcp install¶
Write or print the MCP client entry for the pharmaskills stdio server.
pharmaskills mcp install [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--client |
str | yes | claude-code, codex, cursor, gemini-cli or opencode. | |
--scope |
str | project or user (default: project; codex: user). | ||
--dry-run |
flag | Print the change only. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills mcp serve¶
Run the MCP server (stdio by default; stdout carries protocol messages only).
pharmaskills mcp serve [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--transport |
str | stdio |
stdio (default) or http (streamable HTTP). | |
--host |
str | 127.0.0.1 |
HTTP bind address (loopback only). | |
--port |
int range | 8765 |
HTTP port. | |
--project-dir |
path | Directory tool paths are confined to. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills mcp tools¶
List the MCP tool names and descriptions this server would expose.
pharmaskills mcp tools [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--json |
flag | Emit machine-readable JSON. |
pharmaskills protocol¶
Protocol checks: estimands, schedule of activities
Subcommands: check-estimands, check-risk-register, check-soa, check-tlf-shells
pharmaskills protocol check-estimands¶
Every primary endpoint needs an estimand with the five ICH E9(R1) attributes.
pharmaskills protocol check-estimands [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | Protocol as Markdown, DOCX or YAML. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills protocol check-risk-register¶
Every risk has likelihood, impact, detectability, mitigation; QTLs for primary data.
pharmaskills protocol check-risk-register [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | Risk register CSV. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills protocol check-soa¶
Visits, windows and procedure rows present; window format; unique visit ids.
pharmaskills protocol check-soa [OPTIONS] FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FILE |
path | yes | Schedule of activities CSV (wide layout). | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills protocol check-tlf-shells¶
Numbering unique; every SAP analysis has a shell; AE shells carry SOC and PT.
pharmaskills protocol check-tlf-shells [OPTIONS] INDEX
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
INDEX |
path | yes | TLF index CSV (table_id,title,...). | |
--sap |
path | yes | SAP as Markdown, DOCX or text. | |
--shells |
path | Shell document to cross-check (optional). | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills pubmed¶
PubMed helpers (alias of connectors pubmed)
Subcommands: build-query
pharmaskills pubmed build-query¶
Build a PubMed query string with field tags (no network access).
pharmaskills pubmed build-query [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--term, -t |
str | Question term (repeatable). | ||
--mesh, -m |
str | MeSH term (repeatable). | ||
--date-range |
str | Publication range, e.g. 2020:2024. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills qa¶
Repository quality guards.
Subcommands: dash-check, license-guard
pharmaskills qa dash-check¶
Fail if any em dash or en dash appears in repository text.
pharmaskills qa dash-check [OPTIONS] [PATH]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
PATH |
path | . |
Directory to scan. | |
--json |
flag | Emit machine-readable JSON. |
pharmaskills qa license-guard¶
Fail on dictionary-like files without the PSK-DICT header (and optionally bad licences).
pharmaskills qa license-guard [OPTIONS] [PATH]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
PATH |
path | . |
Directory to scan. | |
--deps |
flag | Also check dependency licences. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills quality¶
Quality checks: CAPA fields, Part 11 and Annex 11 checklist
Subcommands: check-capa, part11-checklist
pharmaskills quality check-capa¶
Check root-cause method, product impact, timeline and CAPA fields; exit 2 on gaps.
pharmaskills quality check-capa [OPTIONS] INVESTIGATION CAPA
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
INVESTIGATION |
path | yes | investigation.md | |
CAPA |
path | yes | capa.csv | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills quality part11-checklist¶
Generate the Part 11 and Annex 11 checklist, or check a completed one (exit 2 on gaps).
pharmaskills quality part11-checklist [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--system-type |
str | standalone | saas | ai-agent | ||
--gxp-impact |
str | high | medium | low | none | ||
--check |
path | Verify a completed checklist CSV. | ||
--out |
path | Checklist CSV (generate) or JSON report (check). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills reg¶
Regulatory: IND checklist, CTD map
Subcommands: ctd-map, ind-checklist, required-studies
pharmaskills reg ctd-map¶
Map a content type to its ICH M4 module and section number.
pharmaskills reg ctd-map [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--content-type |
str | Content type, e.g. 'csr'. | ||
--list |
flag | List known content types. | ||
--out |
path | Write the JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills reg ind-checklist¶
Map documents to 21 CFR 312.23(a) items, forms, eCTD placement and gaps.
pharmaskills reg ind-checklist [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--docs |
path | yes | Folder or file of available documents. | |
--facts |
path | facts.yaml with program and form fields. | ||
--out |
path | ind-checklist.json |
Full JSON report path. | |
--gaps |
path | Gap list CSV (default next to --out). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills reg required-studies¶
Required nonclinical studies for a modality and stage (ICH M3(R2) and companions).
pharmaskills reg required-studies [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--modality |
str | yes | small-molecule, biologic or oncology. | |
--stage |
str | yes | first-in-human, phase2, phase3 or marketing. | |
--duration-weeks |
float | Planned clinical dosing duration in weeks. | ||
--out |
path | Write the JSON report here. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills safety¶
Safety: E2B(R3) build and validate, criteria
Subcommands: build-e2b, expectedness, minimum-criteria, seriousness, validate-e2b
pharmaskills safety build-e2b¶
Build an ICH E2B(R3) ICSR; exit 2 if the case or the built file fails validation.
pharmaskills safety build-e2b [OPTIONS] CASE_FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
CASE_FILE |
path | yes | Path to case.json. | |
--out |
path | yes | Output ICSR XML path. | |
--message-date |
str | ISO datetime for creationTime (default: now, UTC). | ||
--sender-id |
str | SENDER-UNSPECIFIED |
||
--receiver-id |
str | RECEIVER-UNSPECIFIED |
||
--json |
flag | Emit machine-readable JSON. |
pharmaskills safety expectedness¶
Classify events as listed, not listed or cannot determine against a label.
pharmaskills safety expectedness [OPTIONS] CASE_FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
CASE_FILE |
path | yes | Path to case.json. | |
--label |
path | Label text file or JSON list of reactions. | ||
--out |
path | Where to write the full report. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills safety minimum-criteria¶
Check the four ICH E2D minimum criteria; exit 2 when the case is not valid.
pharmaskills safety minimum-criteria [OPTIONS] CASE_FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
CASE_FILE |
path | yes | Path to case.json. | |
--out |
path | Where to write the full report. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills safety seriousness¶
Assess ICH E2A seriousness criteria per event and for the case.
pharmaskills safety seriousness [OPTIONS] CASE_FILE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
CASE_FILE |
path | yes | Path to case.json. | |
--out |
path | Where to write the full report. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills safety validate-e2b¶
Validate an ICSR; exit 2 on any error (report written).
pharmaskills safety validate-e2b [OPTIONS] ICSR
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
ICSR |
path | yes | ICSR XML file. | |
--xsd |
path | User-supplied ICH XSD. | ||
--out |
path | Where to write the full report. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm¶
SDTM mapper: profile, propose, build, validate, repair
Subcommands: build, document, explain, init, profile, propose, repair, review, run, validate, validate-spec
pharmaskills sdtm build¶
Deterministically execute the spec and write XPT v5 and Dataset-JSON.
pharmaskills sdtm build [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--spec |
path | Mapping spec (default spec.yaml). | ||
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm document¶
Write Define-XML, the cSDRG draft and the traceability matrix.
pharmaskills sdtm document [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--spec |
path | Mapping spec (default spec.yaml). | ||
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm explain¶
Show the SDTMIG definition, core status and codelist of a variable.
pharmaskills sdtm explain [OPTIONS] VARIABLE
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
VARIABLE |
str | yes | DOMAIN.VARIABLE, for example AE.AESEV. | |
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm init¶
Draft study.yaml from the protocol and raw files; the user must confirm it.
pharmaskills sdtm init [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--protocol |
path | Protocol DOCX. | ||
--studyid |
str | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm profile¶
Profile every raw file (types, null rates, value samples, date formats).
pharmaskills sdtm profile [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--out |
path | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm propose¶
Propose a mapping spec (deterministic skeleton, refined by the configured model).
pharmaskills sdtm propose [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--no-model |
flag | Skeleton only. | ||
--out |
path | Spec output path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm repair¶
Run the bounded build, validate and repair loop (spec changes only).
pharmaskills sdtm repair [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--max-iter |
int | 5 |
||
--spec |
path | Mapping spec (default spec.yaml). | ||
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--no-model |
flag | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm review¶
Write the review queue, or apply reviewer decisions (or auto-approval) to the spec.
pharmaskills sdtm review [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--apply |
path | Decisions xlsx to apply. | ||
--auto-approve-above |
float | |||
--spec |
path | Mapping spec (default spec.yaml). | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm run¶
Run every step end to end.
pharmaskills sdtm run [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--spec |
path | Mapping spec (default spec.yaml). | ||
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--auto-approve-above |
float | |||
--max-iter |
int | |||
--engine |
str | auto |
auto, core or native. | |
--no-model |
flag | |||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm validate¶
Validate built datasets with CDISC CORE (when configured) or the native checks.
pharmaskills sdtm validate [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--engine |
str | auto |
auto, core or native. | |
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills sdtm validate-spec¶
Validate the mapping spec against SDTMIG, CT and the raw columns.
pharmaskills sdtm validate-spec [OPTIONS] STUDY
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
STUDY |
path | yes | Study folder (study.yaml and raw/). | |
--spec |
path | Mapping spec (default spec.yaml). | ||
--ct-file |
path | CDISC CT package file instead of the cache. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills send¶
SEND conformance validation via CDISC CORE
Subcommands: validate
pharmaskills send validate¶
Validate SEND datasets; exit 2 when errors are found (report written).
pharmaskills send validate [OPTIONS] FOLDER
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
FOLDER |
path | yes | Folder of SEND XPT v5 datasets. | |
--report |
path | send-validation.json |
Full JSON report path. | |
--json |
flag | Emit machine-readable JSON. |
pharmaskills setup¶
One command: install the tool, the skills and the MCP server, then run doctor.
pharmaskills setup [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--agent |
str | claude-code, codex, cursor, gemini-cli or opencode (repeatable). Default: every agent found on this machine. | ||
--scope |
str | user |
user (default, all projects) or project. | |
--no-tool |
flag | Do not install the CLI as a persistent tool. | ||
--no-mcp |
flag | Do not register the MCP server. | ||
--dry-run |
flag | Show what would change. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills skills¶
Skill registry and lint.
Subcommands: check-version, install, lint, list, route, uninstall
pharmaskills skills check-version¶
Compare a skill's min_pharmaskills with the installed version (exit 2 when too old).
pharmaskills skills check-version [OPTIONS] SKILL_ID
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
SKILL_ID |
str | yes | Skill id. | |
--json |
flag | Emit machine-readable JSON. |
pharmaskills skills install¶
Copy skills (no evals) into an agent's skills folder. Idempotent.
pharmaskills skills install [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--agent |
str | yes | claude-code, codex, cursor, gemini-cli or opencode. | |
--skill |
str | Skill id (repeatable); default all. | ||
--dest |
path | Skills folder; overrides the agent table. | ||
--scope |
str | project |
project or user. | |
--dry-run |
flag | Show what would change. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills skills lint¶
Lint skills against the authoring contract (PRD s8).
pharmaskills skills lint [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--skill |
str | Lint one skill id. | ||
--json |
flag | Emit machine-readable JSON. | ||
--report |
path | Write JSON report. |
pharmaskills skills list¶
List skills from SKILL.md frontmatter.
pharmaskills skills list [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--json |
flag | Emit machine-readable JSON. |
pharmaskills skills route¶
Verify every skill:
pharmaskills skills route [OPTIONS] PLAN
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
PLAN |
path | yes | Plan file (Markdown or text) with skill: |
|
--json |
flag | Emit machine-readable JSON. |
pharmaskills skills uninstall¶
Remove installed skills (those named, or all recorded in the install marker).
pharmaskills skills uninstall [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--agent |
str | yes | claude-code, codex, cursor, gemini-cli or opencode. | |
--skill |
str | Skill id (repeatable); default all. | ||
--dest |
path | Skills folder; overrides the agent table. | ||
--scope |
str | project |
project or user. | |
--dry-run |
flag | Show what would change. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats¶
Calculators: sample size, NCA, HED, PRR, shelf life
Subcommands: accuracy, budget-impact, disproportionality, hed, icer, nca, sample-size, shelf-life
pharmaskills stats accuracy¶
Recompute the reference suite and report the tool accuracy percentage.
pharmaskills stats accuracy [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats budget-impact¶
Budget impact by year and cumulative, with a tornado-style sensitivity table.
pharmaskills stats budget-impact [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--population |
str | yes | Eligible population per year, comma list. | |
--uptake |
str | yes | Uptake fraction per year, comma list. | |
--cost-intervention |
float | yes | ||
--cost-comparator |
float | yes | ||
--vary-pct |
float | 20.0 |
Sensitivity +/- percent. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats disproportionality¶
PRR, ROR and IC (BCPNN) from a 2x2 table; statistical flags only, never causality.
pharmaskills stats disproportionality [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--a |
int | yes | Event with drug. | |
--b |
int | yes | No event with drug. | |
--c |
int | yes | Event without drug. | |
--d |
int | yes | No event without drug. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats hed¶
HED, most sensitive species and MRSD (FDA 2005); MABEL for high-risk biologics.
pharmaskills stats hed [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--noael |
str | yes | species=NOAEL mg/kg, repeatable. | |
--weight |
str | species=body weight kg, repeatable. | ||
--relevant |
str | Relevant species, repeatable. | ||
--safety-factor |
float | 10.0 |
||
--human-weight |
float | 60.0 |
kg. | |
--mechanism |
str | standard |
standard | agonist | immune-activating | novel | |
--mabel-dose |
float | MABEL-derived total dose, mg. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats icer¶
ICER with dominance logic and a one-way sensitivity (tornado) table.
pharmaskills stats icer [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--strategy |
str | yes | NAME:COST:EFFECT, repeat; comparator first. | |
--wtp |
float | Willingness-to-pay threshold. | ||
--vary-pct |
float | 20.0 |
Sensitivity +/- percent. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats nca¶
Non-compartmental analysis; writes nca_results.csv next to the JSON report.
pharmaskills stats nca [OPTIONS] INPUT_CSV
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
INPUT_CSV |
path | yes | CSV: subject,time,conc,dose,route. | |
--blq-rule |
str | default |
default | zero | drop | half-lloq | |
--lloq |
float | Lower limit of quantification. | ||
--min-points |
int | 3 |
Min terminal points. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats sample-size¶
Sample size with formula, inputs, result and assumptions.
pharmaskills stats sample-size [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--design |
str | yes | two-means | two-proportions | logrank | noninf-means | noninf-proportions | equiv-means | equiv-proportions | |
--delta |
float | Mean difference (means designs). | ||
--sd |
float | Common standard deviation. | ||
--p1 |
float | Proportion, group 1 (new). | ||
--p2 |
float | Proportion, group 2 (control). | ||
--hr |
float | Hazard ratio (logrank). | ||
--event-prob |
float | Overall event probability (logrank). | ||
--margin |
float | Non-inferiority/equivalence margin. | ||
--power |
float | 0.8 |
Power, in (0, 1). | |
--alpha |
float | 0.05 |
Significance level, in (0, 1). | |
--sides |
int | 2 |
1 or 2 (superiority designs). | |
--ratio |
float | 1.0 |
Allocation ratio n2/n1. | |
--dropout |
float | Dropout fraction, in [0, 1). | ||
--sensitivity, --no-sensitivity |
flag | Include sensitivity table. | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills stats shelf-life¶
ICH Q1E shelf-life estimate with poolability and extrapolation limits.
pharmaskills stats shelf-life [OPTIONS] INPUT_CSV
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
INPUT_CSV |
path | yes | CSV: batch,time,value. | |
--criterion |
float | yes | Acceptance criterion. | |
--direction |
str | decreasing |
decreasing | increasing | |
--confidence |
float | 0.95 |
One-sided confidence. | |
--pool-alpha |
float | 0.25 |
Poolability level. | |
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills trials¶
Trial landscape and feasibility from ClinicalTrials.gov
Subcommands: feasibility, landscape
pharmaskills trials feasibility¶
Enrolment per site-month where inputs exist, country footprint, common exclusions.
pharmaskills trials feasibility [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--input |
path | yes | Studies JSON (repeatable): connector output, {'studies': [...]} or raw API v2. | |
--themes |
path | YAML: exclusion theme to keyword list. | ||
--any-status |
flag | Do not require COMPLETED status. | ||
--csv |
path | comparators.csv path (default beside --out). | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |
pharmaskills trials landscape¶
Group trials by sponsor, mechanism, phase and status; separate withdrawn trials.
pharmaskills trials landscape [OPTIONS]
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--input |
path | yes | Studies JSON (repeatable): connector output, {'studies': [...]} or raw API v2. | |
--mechanism-map |
path | YAML: intervention keyword to mechanism label. | ||
--as-of |
str | Date for upcoming-readout flags, YYYY-MM-DD. | ||
--min-trials |
int | 10 |
Expected minimum. | |
--csv |
path | programs.csv path (default beside --out). | ||
--out |
path | JSON report path. | ||
--json |
flag | Emit machine-readable JSON. |