MCP tools¶
The MCP server (pharmaskills mcp serve) exposes 115 tools, one per deterministic CLI command plus connector aliases. Install it into an agent with pharmaskills mcp install --client claude-code. Tools never send study data to a remote service; connectors only query public sources.
| Tool | CLI command | Description |
|---|---|---|
adam_build |
pharmaskills adam build |
Derive ADSL and ADAE (XPT, Dataset-JSON), the spec workbook and derivation programs. (pharmaskills adam build) |
adam_test |
pharmaskills adam test |
Run derivation unit checks; exit 2 when any check fails. (pharmaskills adam test) |
bench_compare |
pharmaskills bench compare |
Regression guard: fail when a quality metric drops or an error count rises. (pharmaskills bench compare) |
bench_evals |
pharmaskills bench evals |
Skill eval pass rates by lifecycle stage and overall (deterministic replay). (pharmaskills bench evals) |
bench_safety |
pharmaskills bench safety |
Run the adversarial safety and honesty suite and record the measured result. (pharmaskills bench safety) |
bench_sdtm |
pharmaskills bench sdtm |
Measure CORE or native errors, spec accuracy, record match and run time. (pharmaskills bench sdtm) |
bench_tools |
pharmaskills bench tools |
Tool accuracy suite: percent of reference calculations matched. (pharmaskills bench tools) |
cdash_build_spec |
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) |
cdash_map |
pharmaskills cdash map |
Map collected field labels to CDASH variables; flag unknown fields, resolve CT values. (pharmaskills cdash map) |
cdisc_library_fetch |
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) |
cdisc_library_search |
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) |
chem_alerts |
pharmaskills chem alerts |
Structural alerts only (PAINS A/B/C and Brenk). (pharmaskills chem alerts) |
chem_profile |
pharmaskills chem profile |
Descriptors, Lipinski, Veber, PAINS/Brenk alerts and QED (screening flags only). (pharmaskills chem profile) |
chembl_fetch |
pharmaskills connectors chembl fetch |
Fetch one chembl record by identifier (ChEMBL: molecule search, molecule records and bioactivities). (pharmaskills connectors chembl fetch) |
chembl_search |
pharmaskills connectors chembl search |
Search chembl: ChEMBL: molecule search, molecule records and bioactivities. Returns records with citations. (pharmaskills connectors chembl search) |
clinicaltrials_fetch |
pharmaskills connectors clinicaltrials fetch |
Fetch one clinicaltrials record by identifier (ClinicalTrials.gov API v2: search studies, fetch by NCT id). (pharmaskills connectors clinicaltrials fetch) |
clinicaltrials_search |
pharmaskills connectors clinicaltrials search |
Search clinicaltrials: ClinicalTrials.gov API v2: search studies, fetch by NCT id. Returns records with citations. (pharmaskills connectors clinicaltrials search) |
cmc_elemental |
pharmaskills cmc elemental |
ICH Q3D(R2) PDEs and concentration limits implied by the daily dose. (pharmaskills cmc elemental) |
cmc_impurity_thresholds |
pharmaskills cmc impurity-thresholds |
ICH Q3A(R2)/Q3B(R2) reporting, identification and qualification thresholds. (pharmaskills cmc impurity-thresholds) |
cmc_solvent_limits |
pharmaskills cmc solvent-limits |
ICH Q3C(R8) residual solvent class, PDE and concentration limits. (pharmaskills cmc solvent-limits) |
cmc_stability_conditions |
pharmaskills cmc stability-conditions |
ICH Q1A(R2) storage conditions and minimum time points. (pharmaskills cmc stability-conditions) |
connectors_cdisc_library_fetch |
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) |
connectors_cdisc_library_search |
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) |
connectors_chembl_fetch |
pharmaskills connectors chembl fetch |
Fetch one chembl record by identifier (ChEMBL: molecule search, molecule records and bioactivities). (pharmaskills connectors chembl fetch) |
connectors_chembl_search |
pharmaskills connectors chembl search |
Search chembl: ChEMBL: molecule search, molecule records and bioactivities. Returns records with citations. (pharmaskills connectors chembl search) |
connectors_clinicaltrials_fetch |
pharmaskills connectors clinicaltrials fetch |
Fetch one clinicaltrials record by identifier (ClinicalTrials.gov API v2: search studies, fetch by NCT id). (pharmaskills connectors clinicaltrials fetch) |
connectors_clinicaltrials_search |
pharmaskills connectors clinicaltrials search |
Search clinicaltrials: ClinicalTrials.gov API v2: search studies, fetch by NCT id. Returns records with citations. (pharmaskills connectors clinicaltrials search) |
connectors_ct_fetch |
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) |
connectors_ct_search |
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) |
connectors_dailymed_fetch |
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) |
connectors_dailymed_search |
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) |
connectors_list |
pharmaskills connectors list |
List available connectors and whether each is configured. (pharmaskills connectors list) |
connectors_openfda_fetch |
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) |
connectors_openfda_search |
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) |
connectors_opentargets_fetch |
pharmaskills connectors opentargets fetch |
Fetch one opentargets record by identifier (Open Targets Platform: target search, associations, tractability). (pharmaskills connectors opentargets fetch) |
connectors_opentargets_search |
pharmaskills connectors opentargets search |
Search opentargets: Open Targets Platform: target search, associations, tractability. Returns records with citations. (pharmaskills connectors opentargets search) |
connectors_pubmed_build_query |
pharmaskills connectors pubmed build-query |
Build a PubMed query string with field tags (no network access). (pharmaskills connectors pubmed build-query) |
connectors_pubmed_fetch |
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) |
connectors_pubmed_search |
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) |
connectors_uniprot_fetch |
pharmaskills connectors uniprot fetch |
Fetch one uniprot record by identifier (UniProtKB: protein search and entries). (pharmaskills connectors uniprot fetch) |
connectors_uniprot_search |
pharmaskills connectors uniprot search |
Search uniprot: UniProtKB: protein search and entries. Returns records with citations. (pharmaskills connectors uniprot search) |
ct_codelist |
pharmaskills ct codelist |
Show a codelist and its terms. (pharmaskills ct codelist) |
ct_lookup |
pharmaskills ct lookup |
Resolve a term to its CDISC submission value and codelist. (pharmaskills ct lookup) |
ct_sync |
pharmaskills ct sync |
Download a CT package from NCI EVS into the local cache. (pharmaskills ct sync) |
ct_validate_values |
pharmaskills ct validate-values |
Check values against a codelist; exit 2 if any are not valid submission values. (pharmaskills ct validate-values) |
dailymed_fetch |
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) |
dailymed_search |
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) |
define_build |
pharmaskills define build |
Build define.xml and define.html for a study. (pharmaskills define build) |
define_render |
pharmaskills define render |
Render a Define-XML file to a self-contained HTML page. (pharmaskills define render) |
define_validate |
pharmaskills define validate |
Structurally validate a Define-XML file; exit 2 on failure. (pharmaskills define validate) |
docs_banner |
pharmaskills docs banner |
Print the draft banner, or insert banner and provenance into a file (idempotent). (pharmaskills docs banner) |
docs_build |
pharmaskills docs build |
Build a DOCX from Markdown: real heading styles, draft banner, provenance, header rows. (pharmaskills docs build) |
docs_check_citations |
pharmaskills docs check-citations |
Check each assertion paragraph carries a resolvable citation; exit 2 when not. (pharmaskills docs check-citations) |
docs_check_icf |
pharmaskills docs check-icf |
Check the 21 CFR 50.25 elements of informed consent by wording evidence. (pharmaskills docs check-icf) |
docs_check_structure |
pharmaskills docs check-structure |
Check a document's headings against a standard's section list. (pharmaskills docs check-structure) |
docs_detect_pii |
pharmaskills docs detect-pii |
Find personal identifiers (types, files, lines only); exit 2 when any are found. (pharmaskills docs detect-pii) |
docs_official_host |
pharmaskills docs official-host |
Exit 0 when the URL's host is on the official domain list, 2 otherwise. (pharmaskills docs official-host) |
docs_readability |
pharmaskills docs readability |
Flesch-Kincaid grade and Flesch reading ease; exit 2 when above the target grade. (pharmaskills docs readability) |
docs_trace_numbers |
pharmaskills docs trace-numbers |
Verify every number in DOC appears in the TLF outputs; exit 2 if any does not. (pharmaskills docs trace-numbers) |
doctor |
pharmaskills doctor |
Check Python, CORE, CT cache, network and installed agents. (pharmaskills doctor) |
lit_check_prisma |
pharmaskills lit check-prisma |
Verify PRISMA flow counts reconcile; exit 2 with a report when they do not. (pharmaskills lit check-prisma) |
lit_check_screening_log |
pharmaskills lit check-screening-log |
Every record needs a PMID, a decision (include or exclude) and a reason. (pharmaskills lit check-screening-log) |
openfda_fetch |
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) |
openfda_search |
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) |
opentargets_fetch |
pharmaskills connectors opentargets fetch |
Fetch one opentargets record by identifier (Open Targets Platform: target search, associations, tractability). (pharmaskills connectors opentargets fetch) |
opentargets_search |
pharmaskills connectors opentargets search |
Search opentargets: Open Targets Platform: target search, associations, tractability. Returns records with citations. (pharmaskills connectors opentargets search) |
protocol_check_estimands |
pharmaskills protocol check-estimands |
Every primary endpoint needs an estimand with the five ICH E9(R1) attributes. (pharmaskills protocol check-estimands) |
protocol_check_risk_register |
pharmaskills protocol check-risk-register |
Every risk has likelihood, impact, detectability, mitigation; QTLs for primary data. (pharmaskills protocol check-risk-register) |
protocol_check_soa |
pharmaskills protocol check-soa |
Visits, windows and procedure rows present; window format; unique visit ids. (pharmaskills protocol check-soa) |
protocol_check_tlf_shells |
pharmaskills protocol check-tlf-shells |
Numbering unique; every SAP analysis has a shell; AE shells carry SOC and PT. (pharmaskills protocol check-tlf-shells) |
pubmed_build_query |
pharmaskills pubmed build-query |
Build a PubMed query string with field tags (no network access). (pharmaskills pubmed build-query) |
pubmed_fetch |
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) |
pubmed_search |
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) |
qa_dash_check |
pharmaskills qa dash-check |
Fail if any em dash or en dash appears in repository text. (pharmaskills qa dash-check) |
qa_license_guard |
pharmaskills qa license-guard |
Fail on dictionary-like files without the PSK-DICT header (and optionally bad licences). (pharmaskills qa license-guard) |
quality_check_capa |
pharmaskills quality check-capa |
Check root-cause method, product impact, timeline and CAPA fields; exit 2 on gaps. (pharmaskills quality check-capa) |
quality_part11_checklist |
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) |
reg_ctd_map |
pharmaskills reg ctd-map |
Map a content type to its ICH M4 module and section number. (pharmaskills reg ctd-map) |
reg_ind_checklist |
pharmaskills reg ind-checklist |
Map documents to 21 CFR 312.23(a) items, forms, eCTD placement and gaps. (pharmaskills reg ind-checklist) |
reg_required_studies |
pharmaskills reg required-studies |
Required nonclinical studies for a modality and stage (ICH M3(R2) and companions). (pharmaskills reg required-studies) |
safety_build_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) |
safety_expectedness |
pharmaskills safety expectedness |
Classify events as listed, not listed or cannot determine against a label. (pharmaskills safety expectedness) |
safety_minimum_criteria |
pharmaskills safety minimum-criteria |
Check the four ICH E2D minimum criteria; exit 2 when the case is not valid. (pharmaskills safety minimum-criteria) |
safety_seriousness |
pharmaskills safety seriousness |
Assess ICH E2A seriousness criteria per event and for the case. (pharmaskills safety seriousness) |
safety_validate_e2b |
pharmaskills safety validate-e2b |
Validate an ICSR; exit 2 on any error (report written). (pharmaskills safety validate-e2b) |
sdtm_build |
pharmaskills sdtm build |
Deterministically execute the spec and write XPT v5 and Dataset-JSON. (pharmaskills sdtm build) |
sdtm_document |
pharmaskills sdtm document |
Write Define-XML, the cSDRG draft and the traceability matrix. (pharmaskills sdtm document) |
sdtm_explain |
pharmaskills sdtm explain |
Show the SDTMIG definition, core status and codelist of a variable. (pharmaskills sdtm explain) |
sdtm_init |
pharmaskills sdtm init |
Draft study.yaml from the protocol and raw files; the user must confirm it. (pharmaskills sdtm init) |
sdtm_profile |
pharmaskills sdtm profile |
Profile every raw file (types, null rates, value samples, date formats). (pharmaskills sdtm profile) |
sdtm_propose |
pharmaskills sdtm propose |
Propose a mapping spec (deterministic skeleton, refined by the configured model). (pharmaskills sdtm propose) |
sdtm_repair |
pharmaskills sdtm repair |
Run the bounded build, validate and repair loop (spec changes only). (pharmaskills sdtm repair) |
sdtm_review |
pharmaskills sdtm review |
Write the review queue, or apply reviewer decisions (or auto-approval) to the spec. (pharmaskills sdtm review) |
sdtm_run |
pharmaskills sdtm run |
Run every step end to end. (pharmaskills sdtm run) |
sdtm_validate |
pharmaskills sdtm validate |
Validate built datasets with CDISC CORE (when configured) or the native checks. (pharmaskills sdtm validate) |
sdtm_validate_spec |
pharmaskills sdtm validate-spec |
Validate the mapping spec against SDTMIG, CT and the raw columns. (pharmaskills sdtm validate-spec) |
send_validate |
pharmaskills send validate |
Validate SEND datasets; exit 2 when errors are found (report written). (pharmaskills send validate) |
skills_check_version |
pharmaskills skills check-version |
Compare a skill's min_pharmaskills with the installed version (exit 2 when too old). (pharmaskills skills check-version) |
skills_install |
pharmaskills skills install |
Copy skills (no evals) into an agent's skills folder. Idempotent. (pharmaskills skills install) |
skills_lint |
pharmaskills skills lint |
Lint skills against the authoring contract (PRD s8). (pharmaskills skills lint) |
skills_list |
pharmaskills skills list |
List skills from SKILL.md frontmatter. (pharmaskills skills list) |
skills_route |
pharmaskills skills route |
Verify every skill: |
skills_uninstall |
pharmaskills skills uninstall |
Remove installed skills (those named, or all recorded in the install marker). (pharmaskills skills uninstall) |
stats_accuracy |
pharmaskills stats accuracy |
Recompute the reference suite and report the tool accuracy percentage. (pharmaskills stats accuracy) |
stats_budget_impact |
pharmaskills stats budget-impact |
Budget impact by year and cumulative, with a tornado-style sensitivity table. (pharmaskills stats budget-impact) |
stats_disproportionality |
pharmaskills stats disproportionality |
PRR, ROR and IC (BCPNN) from a 2x2 table; statistical flags only, never causality. (pharmaskills stats disproportionality) |
stats_hed |
pharmaskills stats hed |
HED, most sensitive species and MRSD (FDA 2005); MABEL for high-risk biologics. (pharmaskills stats hed) |
stats_icer |
pharmaskills stats icer |
ICER with dominance logic and a one-way sensitivity (tornado) table. (pharmaskills stats icer) |
stats_nca |
pharmaskills stats nca |
Non-compartmental analysis; writes nca_results.csv next to the JSON report. (pharmaskills stats nca) |
stats_sample_size |
pharmaskills stats sample-size |
Sample size with formula, inputs, result and assumptions. (pharmaskills stats sample-size) |
stats_shelf_life |
pharmaskills stats shelf-life |
ICH Q1E shelf-life estimate with poolability and extrapolation limits. (pharmaskills stats shelf-life) |
trials_feasibility |
pharmaskills trials feasibility |
Enrolment per site-month where inputs exist, country footprint, common exclusions. (pharmaskills trials feasibility) |
trials_landscape |
pharmaskills trials landscape |
Group trials by sponsor, mechanism, phase and status; separate withdrawn trials. (pharmaskills trials landscape) |
uniprot_fetch |
pharmaskills connectors uniprot fetch |
Fetch one uniprot record by identifier (UniProtKB: protein search and entries). (pharmaskills connectors uniprot fetch) |
uniprot_search |
pharmaskills connectors uniprot search |
Search uniprot: UniProtKB: protein search and entries. Returns records with citations. (pharmaskills connectors uniprot search) |
Parameters¶
adam_build¶
Derive ADSL and ADAE (XPT, Dataset-JSON), the spec workbook and derivation programs. (pharmaskills adam build)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
no_code |
boolean | Skip adsl.py and adae.py. | ||
out |
string | out/adam |
Output directory. | |
spec |
string | yes | ADaM spec YAML (adam_spec.yaml). | |
study |
string | yes | Study folder or folder of SDTM XPT files. |
adam_test¶
Run derivation unit checks; exit 2 when any check fails. (pharmaskills adam test)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
expected |
string | Expected-values YAML. | ||
out |
string | out/adam/adam_test_report.json |
Test report JSON. | |
spec |
string | yes | ADaM spec YAML (adam_spec.yaml). | |
study |
string | yes | Study folder or folder of SDTM XPT files. |
bench_compare¶
Regression guard: fail when a quality metric drops or an error count rises. (pharmaskills bench compare)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
current |
string | yes | Current result JSON. | |
previous |
string | yes | Previous result JSON. | |
tolerance |
number | 0.0 |
Allowed drop. |
bench_evals¶
Skill eval pass rates by lifecycle stage and overall (deterministic replay). (pharmaskills bench evals)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | Path inside the project directory. |
bench_safety¶
Run the adversarial safety and honesty suite and record the measured result. (pharmaskills bench safety)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | Path inside the project directory. |
bench_sdtm¶
Measure CORE or native errors, spec accuracy, record match and run time. (pharmaskills bench sdtm)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | Path inside the project directory. | ||
out |
string | Path inside the project directory. | ||
spec |
string | Candidate spec (default gold). | ||
studies |
array | PSK-001 PSK-002 |
bench_tools¶
Tool accuracy suite: percent of reference calculations matched. (pharmaskills bench tools)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | Path inside the project directory. |
cdash_build_spec¶
Derive forms per visit from the SoA, map fields to CDASH and CT, write crf_spec.xlsx. (pharmaskills cdash build-spec)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
fields |
array | yes | FORM=fields.csv, repeatable (forms AE CM DM VS LB EX). | |
out |
string | JSON report path. | ||
soa |
string | yes | Schedule of activities CSV (wide layout). | |
xlsx |
string | crf_spec.xlsx path. |
cdash_map¶
Map collected field labels to CDASH variables; flag unknown fields, resolve CT values. (pharmaskills cdash map)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
csv_out |
string | Flat mapping CSV path. | ||
ct_file |
string | CDISC CT package file instead of the cache. | ||
fields |
string | yes | CSV: label[,values] per field. | |
form |
string | yes | AE | CM | DM | EX | LB | VS | |
out |
string | JSON report path. |
cdisc_library_fetch¶
Fetch one cdisc_library record by identifier (CDISC Library API (needs CDISC_LIBRARY_API_KEY)). (pharmaskills connectors cdisc-library fetch)
Alias of connectors_cdisc_library_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
cdisc_library_search¶
Search cdisc_library: CDISC Library API (needs CDISC_LIBRARY_API_KEY). Returns records with citations. (pharmaskills connectors cdisc-library search)
Alias of connectors_cdisc_library_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
chem_alerts¶
Structural alerts only (PAINS A/B/C and Brenk). (pharmaskills chem alerts)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | A .smi or .sdf file. | ||
out |
string | JSON report path. | ||
smiles |
string | One SMILES string. |
chem_profile¶
Descriptors, Lipinski, Veber, PAINS/Brenk alerts and QED (screening flags only). (pharmaskills chem profile)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | A .smi or .sdf file. | ||
out |
string | JSON report path. | ||
smiles |
string | One SMILES string. |
chembl_fetch¶
Fetch one chembl record by identifier (ChEMBL: molecule search, molecule records and bioactivities). (pharmaskills connectors chembl fetch)
Alias of connectors_chembl_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
chembl_search¶
Search chembl: ChEMBL: molecule search, molecule records and bioactivities. Returns records with citations. (pharmaskills connectors chembl search)
Alias of connectors_chembl_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
clinicaltrials_fetch¶
Fetch one clinicaltrials record by identifier (ClinicalTrials.gov API v2: search studies, fetch by NCT id). (pharmaskills connectors clinicaltrials fetch)
Alias of connectors_clinicaltrials_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
clinicaltrials_search¶
Search clinicaltrials: ClinicalTrials.gov API v2: search studies, fetch by NCT id. Returns records with citations. (pharmaskills connectors clinicaltrials search)
Alias of connectors_clinicaltrials_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
cmc_elemental¶
ICH Q3D(R2) PDEs and concentration limits implied by the daily dose. (pharmaskills cmc elemental)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dose_g_per_day |
number | yes | Maximum daily dose in g/day. | |
elements |
array | Element symbols (repeatable). | ||
out |
string | JSON report path. | ||
route |
string | oral |
oral, parenteral or inhalation. |
cmc_impurity_thresholds¶
ICH Q3A(R2)/Q3B(R2) reporting, identification and qualification thresholds. (pharmaskills cmc impurity-thresholds)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dose_g_per_day |
number | yes | Maximum daily dose in g/day. | |
kind |
string | substance |
substance (Q3A) or product (Q3B). | |
out |
string | JSON report path. |
cmc_solvent_limits¶
ICH Q3C(R8) residual solvent class, PDE and concentration limits. (pharmaskills cmc solvent-limits)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dose_g_per_day |
number | Daily dose for option 2. | ||
out |
string | JSON report path. | ||
solvent |
string | yes | Solvent name, e.g. toluene. |
cmc_stability_conditions¶
ICH Q1A(R2) storage conditions and minimum time points. (pharmaskills cmc stability-conditions)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | JSON report path. | ||
pack |
string | impermeable |
permeable, impermeable, refrigerated or frozen. | |
storage |
string | general |
general, refrigerator or freezer. | |
zone |
string | yes | I, II, III, IVa or IVb. |
connectors_cdisc_library_fetch¶
Fetch one cdisc_library record by identifier (CDISC Library API (needs CDISC_LIBRARY_API_KEY)). (pharmaskills connectors cdisc-library fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_cdisc_library_search¶
Search cdisc_library: CDISC Library API (needs CDISC_LIBRARY_API_KEY). Returns records with citations. (pharmaskills connectors cdisc-library search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_chembl_fetch¶
Fetch one chembl record by identifier (ChEMBL: molecule search, molecule records and bioactivities). (pharmaskills connectors chembl fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_chembl_search¶
Search chembl: ChEMBL: molecule search, molecule records and bioactivities. Returns records with citations. (pharmaskills connectors chembl search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_clinicaltrials_fetch¶
Fetch one clinicaltrials record by identifier (ClinicalTrials.gov API v2: search studies, fetch by NCT id). (pharmaskills connectors clinicaltrials fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_clinicaltrials_search¶
Search clinicaltrials: ClinicalTrials.gov API v2: search studies, fetch by NCT id. Returns records with citations. (pharmaskills connectors clinicaltrials search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_ct_fetch¶
Fetch one ct record by identifier (CDISC controlled terminology from the local cache (run pharmaskills ct sync)). (pharmaskills connectors ct fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_ct_search¶
Search ct: CDISC controlled terminology from the local cache (run pharmaskills ct sync). Returns records with citations. (pharmaskills connectors ct search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_dailymed_fetch¶
Fetch one dailymed record by identifier (DailyMed SPL labels: search by drug name, fetch by set id). (pharmaskills connectors dailymed fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_dailymed_search¶
Search dailymed: DailyMed SPL labels: search by drug name, fetch by set id. Returns records with citations. (pharmaskills connectors dailymed search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_list¶
List available connectors and whether each is configured. (pharmaskills connectors list)
No parameters.
connectors_openfda_fetch¶
Fetch one openfda record by identifier (openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports). (pharmaskills connectors openfda fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_openfda_search¶
Search openfda: openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports. Returns records with citations. (pharmaskills connectors openfda search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_opentargets_fetch¶
Fetch one opentargets record by identifier (Open Targets Platform: target search, associations, tractability). (pharmaskills connectors opentargets fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_opentargets_search¶
Search opentargets: Open Targets Platform: target search, associations, tractability. Returns records with citations. (pharmaskills connectors opentargets search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_pubmed_build_query¶
Build a PubMed query string with field tags (no network access). (pharmaskills connectors pubmed build-query)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
date_range |
string | Publication range, e.g. 2020:2024. | ||
mesh |
array | MeSH term (repeatable). | ||
term |
array | Question term (repeatable). |
connectors_pubmed_fetch¶
Fetch one pubmed record by identifier (PubMed via NCBI E-utilities: search and fetch records by PMID). (pharmaskills connectors pubmed fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_pubmed_search¶
Search pubmed: PubMed via NCBI E-utilities: search and fetch records by PMID. Returns records with citations. (pharmaskills connectors pubmed search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
connectors_uniprot_fetch¶
Fetch one uniprot record by identifier (UniProtKB: protein search and entries). (pharmaskills connectors uniprot fetch)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
connectors_uniprot_search¶
Search uniprot: UniProtKB: protein search and entries. Returns records with citations. (pharmaskills connectors uniprot search)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
ct_codelist¶
Show a codelist and its terms. (pharmaskills ct codelist)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
codelist |
string | yes | C-code or submission name, e.g. C66769. | |
version |
string | CT release date YYYY-MM-DD. |
ct_lookup¶
Resolve a term to its CDISC submission value and codelist. (pharmaskills ct lookup)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
codelist |
string | C-code or name. | ||
term |
string | yes | Value or synonym to resolve. | |
version |
string | CT release date YYYY-MM-DD. |
ct_sync¶
Download a CT package from NCI EVS into the local cache. (pharmaskills ct sync)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
version |
string | CT release date YYYY-MM-DD. |
ct_validate_values¶
Check values against a codelist; exit 2 if any are not valid submission values. (pharmaskills ct validate-values)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
codelist |
string | yes | Codelist C-code or name. | |
column |
string | Column in --file. | ||
file |
string | CSV file to read values from. | ||
report |
string | Write JSON report. | ||
values |
array | Values to check. | ||
version |
string | CT release date YYYY-MM-DD. |
dailymed_fetch¶
Fetch one dailymed record by identifier (DailyMed SPL labels: search by drug name, fetch by set id). (pharmaskills connectors dailymed fetch)
Alias of connectors_dailymed_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
dailymed_search¶
Search dailymed: DailyMed SPL labels: search by drug name, fetch by set id. Returns records with citations. (pharmaskills connectors dailymed search)
Alias of connectors_dailymed_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
define_build¶
Build define.xml and define.html for a study. (pharmaskills define build)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CT package file instead of the cache. | ||
out |
string | Output directory. | ||
spec |
string | Mapping spec YAML. | ||
study_dir |
string | yes | Study folder (study.yaml, raw/). |
define_render¶
Render a Define-XML file to a self-contained HTML page. (pharmaskills define render)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | yes | define.xml to render. | |
out |
string | HTML output file. |
define_validate¶
Structurally validate a Define-XML file; exit 2 on failure. (pharmaskills define validate)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | yes | define.xml to validate. | |
xsd |
string | Official Define-XML XSD. |
docs_banner¶
Print the draft banner, or insert banner and provenance into a file (idempotent). (pharmaskills docs banner)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
apply |
string | Markdown or DOCX file to receive the banner. |
docs_build¶
Build a DOCX from Markdown: real heading styles, draft banner, provenance, header rows. (pharmaskills docs build)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | DOCX path (default: next to source). | ||
skill |
string | pharmaskills |
Skill name for the provenance block. | |
source |
string | yes | Markdown file to convert. | |
title |
string | Draft document |
Document title. |
docs_check_citations¶
Check each assertion paragraph carries a resolvable citation; exit 2 when not. (pharmaskills docs check-citations)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
domains_file |
string | Custom official domains YAML. | ||
file |
string | yes | Narrative document (DOCX, Markdown, text). | |
out |
string | Write the full JSON report here. | ||
require_commitments |
boolean | Commitments must be in their own section. | ||
require_effective_date |
boolean | Effective date stated or marked unknown. | ||
require_official_links |
boolean | Links must be on official domains. | ||
source |
array | Supplied source file a [Source: ...] marker may cite. |
docs_check_icf¶
Check the 21 CFR 50.25 elements of informed consent by wording evidence. (pharmaskills docs check-icf)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
doc |
string | yes | Informed consent form (DOCX, Markdown, text). | |
elements_file |
string | Custom evidence rules YAML. | ||
out |
string | Write the full JSON report here. |
docs_check_structure¶
Check a document's headings against a standard's section list. (pharmaskills docs check-structure)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | yes | DOCX, Markdown or text file. | |
out |
string | Write the full JSON report here. | ||
standard |
string | yes | Standard id, e.g. ich-e3. |
docs_detect_pii¶
Find personal identifiers (types, files, lines only); exit 2 when any are found. (pharmaskills docs detect-pii)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | Write the full JSON report here. | ||
path |
string | yes | File or folder to scan. |
docs_official_host¶
Exit 0 when the URL's host is on the official domain list, 2 otherwise. (pharmaskills docs official-host)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
domains_file |
string | Path inside the project directory. | ||
url |
string | yes | URL to check against the official domain list. |
docs_readability¶
Flesch-Kincaid grade and Flesch reading ease; exit 2 when above the target grade. (pharmaskills docs readability)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
doc |
string | yes | Document to score. | |
out |
string | Write the full JSON report here. | ||
target_grade |
number | 8.0 |
Maximum acceptable grade level. |
docs_trace_numbers¶
Verify every number in DOC appears in the TLF outputs; exit 2 if any does not. (pharmaskills docs trace-numbers)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
doc |
string | yes | Document to trace (DOCX, Markdown, text). | |
out |
string | Write the full JSON report here. | ||
tlf |
array | yes | TLF file or folder (CSV, DOCX, RTF, text, PDF). |
doctor¶
Check Python, CORE, CT cache, network and installed agents. (pharmaskills doctor)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
no_network |
boolean | Skip network probe. |
lit_check_prisma¶
Verify PRISMA flow counts reconcile; exit 2 with a report when they do not. (pharmaskills lit check-prisma)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | JSON report path. | ||
prisma |
string | yes | prisma.json with PRISMA 2020 flow counts. |
lit_check_screening_log¶
Every record needs a PMID, a decision (include or exclude) and a reason. (pharmaskills lit check-screening-log)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
log |
string | yes | screening_log.csv (pmid, decision, reason). | |
out |
string | JSON report path. |
openfda_fetch¶
Fetch one openfda record by identifier (openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports). (pharmaskills connectors openfda fetch)
Alias of connectors_openfda_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
openfda_search¶
Search openfda: openFDA: FAERS event counts and 2x2 tables, drug labels, enforcement reports. Returns records with citations. (pharmaskills connectors openfda search)
Alias of connectors_openfda_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
opentargets_fetch¶
Fetch one opentargets record by identifier (Open Targets Platform: target search, associations, tractability). (pharmaskills connectors opentargets fetch)
Alias of connectors_opentargets_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
opentargets_search¶
Search opentargets: Open Targets Platform: target search, associations, tractability. Returns records with citations. (pharmaskills connectors opentargets search)
Alias of connectors_opentargets_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
protocol_check_estimands¶
Every primary endpoint needs an estimand with the five ICH E9(R1) attributes. (pharmaskills protocol check-estimands)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | yes | Protocol as Markdown, DOCX or YAML. | |
out |
string | JSON report path. |
protocol_check_risk_register¶
Every risk has likelihood, impact, detectability, mitigation; QTLs for primary data. (pharmaskills protocol check-risk-register)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | yes | Risk register CSV. | |
out |
string | JSON report path. |
protocol_check_soa¶
Visits, windows and procedure rows present; window format; unique visit ids. (pharmaskills protocol check-soa)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file |
string | yes | Schedule of activities CSV (wide layout). | |
out |
string | JSON report path. |
protocol_check_tlf_shells¶
Numbering unique; every SAP analysis has a shell; AE shells carry SOC and PT. (pharmaskills protocol check-tlf-shells)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
index |
string | yes | TLF index CSV (table_id,title,...). | |
out |
string | JSON report path. | ||
sap |
string | yes | SAP as Markdown, DOCX or text. | |
shells |
string | Shell document to cross-check (optional). |
pubmed_build_query¶
Build a PubMed query string with field tags (no network access). (pharmaskills pubmed build-query)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
date_range |
string | Publication range, e.g. 2020:2024. | ||
mesh |
array | MeSH term (repeatable). | ||
term |
array | Question term (repeatable). |
pubmed_fetch¶
Fetch one pubmed record by identifier (PubMed via NCBI E-utilities: search and fetch records by PMID). (pharmaskills connectors pubmed fetch)
Alias of connectors_pubmed_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
pubmed_search¶
Search pubmed: PubMed via NCBI E-utilities: search and fetch records by PMID. Returns records with citations. (pharmaskills connectors pubmed search)
Alias of connectors_pubmed_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |
qa_dash_check¶
Fail if any em dash or en dash appears in repository text. (pharmaskills qa dash-check)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
path |
string | . |
Directory to scan. |
qa_license_guard¶
Fail on dictionary-like files without the PSK-DICT header (and optionally bad licences). (pharmaskills qa license-guard)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
deps |
boolean | Also check dependency licences. | ||
path |
string | . |
Directory to scan. |
quality_check_capa¶
Check root-cause method, product impact, timeline and CAPA fields; exit 2 on gaps. (pharmaskills quality check-capa)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
capa |
string | yes | capa.csv | |
investigation |
string | yes | investigation.md | |
out |
string | JSON report path. |
quality_part11_checklist¶
Generate the Part 11 and Annex 11 checklist, or check a completed one (exit 2 on gaps). (pharmaskills quality part11-checklist)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
check |
string | Verify a completed checklist CSV. | ||
gxp_impact |
string | high | medium | low | none | ||
out |
string | Checklist CSV (generate) or JSON report (check). | ||
system_type |
string | standalone | saas | ai-agent |
reg_ctd_map¶
Map a content type to its ICH M4 module and section number. (pharmaskills reg ctd-map)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
content_type |
string | Content type, e.g. 'csr'. | ||
list_all |
boolean | List known content types. | ||
out |
string | Write the JSON report here. |
reg_ind_checklist¶
Map documents to 21 CFR 312.23(a) items, forms, eCTD placement and gaps. (pharmaskills reg ind-checklist)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
docs |
string | yes | Folder or file of available documents. | |
facts |
string | facts.yaml with program and form fields. | ||
gaps |
string | Gap list CSV (default next to --out). | ||
out |
string | ind-checklist.json |
Full JSON report path. |
reg_required_studies¶
Required nonclinical studies for a modality and stage (ICH M3(R2) and companions). (pharmaskills reg required-studies)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
duration_weeks |
number | Planned clinical dosing duration in weeks. | ||
modality |
string | yes | small-molecule, biologic or oncology. | |
out |
string | Write the JSON report here. | ||
stage |
string | yes | first-in-human, phase2, phase3 or marketing. |
safety_build_e2b¶
Build an ICH E2B(R3) ICSR; exit 2 if the case or the built file fails validation. (pharmaskills safety build-e2b)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
case_file |
string | yes | Path to case.json. | |
message_date |
string | ISO datetime for creationTime (default: now, UTC). | ||
out |
string | yes | Output ICSR XML path. | |
receiver_id |
string | RECEIVER-UNSPECIFIED |
||
sender_id |
string | SENDER-UNSPECIFIED |
safety_expectedness¶
Classify events as listed, not listed or cannot determine against a label. (pharmaskills safety expectedness)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
case_file |
string | yes | Path to case.json. | |
label |
string | Label text file or JSON list of reactions. | ||
out |
string | Where to write the full report. |
safety_minimum_criteria¶
Check the four ICH E2D minimum criteria; exit 2 when the case is not valid. (pharmaskills safety minimum-criteria)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
case_file |
string | yes | Path to case.json. | |
out |
string | Where to write the full report. |
safety_seriousness¶
Assess ICH E2A seriousness criteria per event and for the case. (pharmaskills safety seriousness)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
case_file |
string | yes | Path to case.json. | |
out |
string | Where to write the full report. |
safety_validate_e2b¶
Validate an ICSR; exit 2 on any error (report written). (pharmaskills safety validate-e2b)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
icsr |
string | yes | ICSR XML file. | |
out |
string | Where to write the full report. | ||
xsd |
string | User-supplied ICH XSD. |
sdtm_build¶
Deterministically execute the spec and write XPT v5 and Dataset-JSON. (pharmaskills sdtm build)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
spec |
string | Mapping spec (default spec.yaml). | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_document¶
Write Define-XML, the cSDRG draft and the traceability matrix. (pharmaskills sdtm document)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
spec |
string | Mapping spec (default spec.yaml). | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_explain¶
Show the SDTMIG definition, core status and codelist of a variable. (pharmaskills sdtm explain)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
variable |
string | yes | DOMAIN.VARIABLE, for example AE.AESEV. |
sdtm_init¶
Draft study.yaml from the protocol and raw files; the user must confirm it. (pharmaskills sdtm init)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
protocol |
string | Protocol DOCX. | ||
study |
string | yes | Study folder (study.yaml and raw/). | |
studyid |
string |
sdtm_profile¶
Profile every raw file (types, null rates, value samples, date formats). (pharmaskills sdtm profile)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | Path inside the project directory. | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_propose¶
Propose a mapping spec (deterministic skeleton, refined by the configured model). (pharmaskills sdtm propose)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
no_model |
boolean | Skeleton only. | ||
out |
string | Spec output path. | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_repair¶
Run the bounded build, validate and repair loop (spec changes only). (pharmaskills sdtm repair)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
max_iter |
integer | 5 |
||
no_model |
boolean | |||
spec |
string | Mapping spec (default spec.yaml). | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_review¶
Write the review queue, or apply reviewer decisions (or auto-approval) to the spec. (pharmaskills sdtm review)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
apply |
string | Decisions xlsx to apply. | ||
auto_approve_above |
number | |||
spec |
string | Mapping spec (default spec.yaml). | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_run¶
Run every step end to end. (pharmaskills sdtm run)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
auto_approve_above |
number | |||
ct_file |
string | CDISC CT package file instead of the cache. | ||
engine |
string | auto |
auto, core or native. | |
max_iter |
integer | |||
no_model |
boolean | |||
spec |
string | Mapping spec (default spec.yaml). | ||
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_validate¶
Validate built datasets with CDISC CORE (when configured) or the native checks. (pharmaskills sdtm validate)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
engine |
string | auto |
auto, core or native. | |
study |
string | yes | Study folder (study.yaml and raw/). |
sdtm_validate_spec¶
Validate the mapping spec against SDTMIG, CT and the raw columns. (pharmaskills sdtm validate-spec)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ct_file |
string | CDISC CT package file instead of the cache. | ||
spec |
string | Mapping spec (default spec.yaml). | ||
study |
string | yes | Study folder (study.yaml and raw/). |
send_validate¶
Validate SEND datasets; exit 2 when errors are found (report written). (pharmaskills send validate)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
folder |
string | yes | Folder of SEND XPT v5 datasets. | |
report |
string | send-validation.json |
Full JSON report path. |
skills_check_version¶
Compare a skill's min_pharmaskills with the installed version (exit 2 when too old). (pharmaskills skills check-version)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
skill_id |
string | yes | Skill id. |
skills_install¶
Copy skills (no evals) into an agent's skills folder. Idempotent. (pharmaskills skills install)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
agent |
string | yes | claude-code, codex, cursor, gemini-cli or opencode. | |
dest |
string | Skills folder; overrides the agent table. | ||
dry_run |
boolean | Show what would change. | ||
scope |
string | project |
project or user. | |
skill |
array | Skill id (repeatable); default all. |
skills_lint¶
Lint skills against the authoring contract (PRD s8). (pharmaskills skills lint)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
report |
string | Write JSON report. | ||
skill |
string | Lint one skill id. |
skills_list¶
List skills from SKILL.md frontmatter. (pharmaskills skills list)
No parameters.
skills_route¶
Verify every skill:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
plan |
string | yes | Plan file (Markdown or text) with skill: |
skills_uninstall¶
Remove installed skills (those named, or all recorded in the install marker). (pharmaskills skills uninstall)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
agent |
string | yes | claude-code, codex, cursor, gemini-cli or opencode. | |
dest |
string | Skills folder; overrides the agent table. | ||
dry_run |
boolean | Show what would change. | ||
scope |
string | project |
project or user. | |
skill |
array | Skill id (repeatable); default all. |
stats_accuracy¶
Recompute the reference suite and report the tool accuracy percentage. (pharmaskills stats accuracy)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | JSON report path. |
stats_budget_impact¶
Budget impact by year and cumulative, with a tornado-style sensitivity table. (pharmaskills stats budget-impact)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
cost_comparator |
number | yes | ||
cost_intervention |
number | yes | ||
out |
string | JSON report path. | ||
population |
string | yes | Eligible population per year, comma list. | |
uptake |
string | yes | Uptake fraction per year, comma list. | |
vary_pct |
number | 20.0 |
Sensitivity +/- percent. |
stats_disproportionality¶
PRR, ROR and IC (BCPNN) from a 2x2 table; statistical flags only, never causality. (pharmaskills stats disproportionality)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
a |
integer | yes | Event with drug. | |
b |
integer | yes | No event with drug. | |
c |
integer | yes | Event without drug. | |
d |
integer | yes | No event without drug. | |
out |
string | JSON report path. |
stats_hed¶
HED, most sensitive species and MRSD (FDA 2005); MABEL for high-risk biologics. (pharmaskills stats hed)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
human_weight |
number | 60.0 |
kg. | |
mabel_dose |
number | MABEL-derived total dose, mg. | ||
mechanism |
string | standard |
standard | agonist | immune-activating | novel | |
noael |
array | yes | species=NOAEL mg/kg, repeatable. | |
out |
string | JSON report path. | ||
relevant |
array | Relevant species, repeatable. | ||
safety_factor |
number | 10.0 |
||
weight |
array | species=body weight kg, repeatable. |
stats_icer¶
ICER with dominance logic and a one-way sensitivity (tornado) table. (pharmaskills stats icer)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
out |
string | JSON report path. | ||
strategy |
array | yes | NAME:COST:EFFECT, repeat; comparator first. | |
vary_pct |
number | 20.0 |
Sensitivity +/- percent. | |
wtp |
number | Willingness-to-pay threshold. |
stats_nca¶
Non-compartmental analysis; writes nca_results.csv next to the JSON report. (pharmaskills stats nca)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
blq_rule |
string | default |
default | zero | drop | half-lloq | |
input_csv |
string | yes | CSV: subject,time,conc,dose,route. | |
lloq |
number | Lower limit of quantification. | ||
min_points |
integer | 3 |
Min terminal points. | |
out |
string | JSON report path. |
stats_sample_size¶
Sample size with formula, inputs, result and assumptions. (pharmaskills stats sample-size)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
alpha |
number | 0.05 |
Significance level, in (0, 1). | |
delta |
number | Mean difference (means designs). | ||
design |
string | yes | two-means | two-proportions | logrank | noninf-means | noninf-proportions | equiv-means | equiv-proportions | |
dropout |
number | 0.0 |
Dropout fraction, in [0, 1). | |
event_prob |
number | Overall event probability (logrank). | ||
hr |
number | Hazard ratio (logrank). | ||
margin |
number | Non-inferiority/equivalence margin. | ||
out |
string | JSON report path. | ||
p1 |
number | Proportion, group 1 (new). | ||
p2 |
number | Proportion, group 2 (control). | ||
power |
number | 0.8 |
Power, in (0, 1). | |
ratio |
number | 1.0 |
Allocation ratio n2/n1. | |
sd |
number | Common standard deviation. | ||
sensitivity |
boolean | True |
Include sensitivity table. | |
sides |
integer | 2 |
1 or 2 (superiority designs). |
stats_shelf_life¶
ICH Q1E shelf-life estimate with poolability and extrapolation limits. (pharmaskills stats shelf-life)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
confidence |
number | 0.95 |
One-sided confidence. | |
criterion |
number | yes | Acceptance criterion. | |
direction |
string | decreasing |
decreasing | increasing | |
input_csv |
string | yes | CSV: batch,time,value. | |
out |
string | JSON report path. | ||
pool_alpha |
number | 0.25 |
Poolability level. |
trials_feasibility¶
Enrolment per site-month where inputs exist, country footprint, common exclusions. (pharmaskills trials feasibility)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
any_status |
boolean | Do not require COMPLETED status. | ||
csv_out |
string | comparators.csv path (default beside --out). | ||
input_json |
array | yes | Studies JSON (repeatable): connector output, {'studies': [...]} or raw API v2. | |
out |
string | JSON report path. | ||
themes |
string | YAML: exclusion theme to keyword list. |
trials_landscape¶
Group trials by sponsor, mechanism, phase and status; separate withdrawn trials. (pharmaskills trials landscape)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
as_of |
string | Date for upcoming-readout flags, YYYY-MM-DD. | ||
csv_out |
string | programs.csv path (default beside --out). | ||
input_json |
array | yes | Studies JSON (repeatable): connector output, {'studies': [...]} or raw API v2. | |
mechanism_map |
string | YAML: intervention keyword to mechanism label. | ||
min_trials |
integer | 10 |
Expected minimum. | |
out |
string | JSON report path. |
uniprot_fetch¶
Fetch one uniprot record by identifier (UniProtKB: protein search and entries). (pharmaskills connectors uniprot fetch)
Alias of connectors_uniprot_fetch.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
identifier |
string | yes | Record identifier. | |
param |
array | Connector parameter as key=value (repeatable). |
uniprot_search¶
Search uniprot: UniProtKB: protein search and entries. Returns records with citations. (pharmaskills connectors uniprot search)
Alias of connectors_uniprot_search.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit |
integer | 20 |
Maximum records to return. | |
param |
array | Connector parameter as key=value (repeatable). | ||
query |
string | yes | Search text or connector-specific query. |