send-checker¶
Validate SEND (SENDIG) XPT datasets with pharmaskills send validate, summarise findings by domain and severity, and report honestly whether CDISC CORE or the native structural checks ran. Use before a nonclinical submission package review.
| Stage | Preclinical |
| Tier | 1 (deterministic tool) |
| Standards | SENDIG 3.1, CDISC CORE, FDA Study Data Technical Conformance Guide, SAS XPORT v5 |
Minimum pharmaskills |
0.3.0 |
| Inputs | send xpt datasets |
| Outputs | core report json, send report md |
| Verified by | send validate |
Draft for qualified review. Not a validated system and not 21 CFR Part 11 compliant.
Install only this skill: pharmaskills skills install --agent claude-code --skill send-checker (see Install).
Purpose¶
Turn the output of the deterministic pharmaskills send validate command into a clear
conformance report for a nonclinical data manager or study director. The tool runs CDISC CORE
(SENDIG 3-1) when it is configured and otherwise runs native structural checks; you summarise the
issues by domain and severity, say which engine ran, and propose fixes to the source process,
never edits to the data. Everything is a draft for qualified human review.
When to use / when not to use¶
Use to check a folder of SEND XPT v5 datasets from a nonclinical study before review, or to triage what must be fixed upstream.
Do not use for: SDTM clinical data (use sdtm-mapper), real animal-study data you are not
authorised to process, building SEND datasets (this skill validates), or claims of submission
readiness. Never hand-edit datasets to make a check pass.
Inputs¶
Required: a folder of SEND datasets in SAS XPORT v5 format (.xpt, one file per domain such as
dm.xpt, ex.xpt, bw.xpt, ts.xpt). Other formats (CSV, SAS7BDAT, JSON) are rejected by the
tool; tell the user to export to XPT v5. Ask once for anything missing, then proceed with stated
assumptions and [DATA NEEDED: ...] placeholders (for example [DATA NEEDED: SENDIG version and
define.xml]).
Optional: define.xml, study identifier, and the CORE executable path in
PHARMASKILLS_CORE_PATH. Region assumed: US FDA (Study Data Technical Conformance Guide); state
any other assumption.
If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, then
give template-only guidance (templates/send_report.md) marked unverified, with no findings.
Check pharmaskills --version against min_pharmaskills.
Workflow¶
- Check the folder. List files; note non-XPT files. Do not convert or repair them.
- Validate:
pharmaskills send validate <folder> --report out/core_report.json. Exit 0 means no errors; exit 2 means errors or rejected input (report written); exit 1 is a runtime problem such as a missing folder. - Read the engine line.
engineispharmaskills-native-sendor a CORE engine name; thenotessay whether CDISC CORE ran. Never describe native results as CORE results. - Summarise by domain and severity from
issues. Ignore issue rows whosecountis 0: they are checks that found nothing. Group by domain, then rule, with variable and count. Usereferences/native-rules.mdfor what each rule means. - Explain each finding and the upstream fix (for example "USUBJID is null in 2 BW records: fix in the source LIMS export and regenerate the dataset"). Do not edit the data.
- Write
out/send_report.mdfromtemplates/send_report.md: engine, counts, table by domain, findings, limitations, next steps. Runpharmaskills docs banner --apply out/send_report.mdfor the draft banner and provenance block. - Report using the output contract.
Output contract¶
| File | Content |
|---|---|
out/core_report.json |
Tool report: engine, version, target, errors, warnings, issues, notes |
out/send_report.md |
Summary by domain and severity with the draft banner and provenance |
State in your answer: engine used (CORE or native), error and warning counts, the domains affected, whether the input was rejected, and what needs human input.
Verification¶
Run and report pass or fail: the tool exit code; the errors and warnings counts in the
narrative equal the JSON; every issue with count above 0 appears in the narrative; the narrative
states the engine and, for native runs, that CDISC CORE did not run. For a regression check use
evals/fixtures/clean (expect exit 0) and evals/fixtures/missing_usubjid (expect exit 2 with
SEND-0005 on BW USUBJID).
Guardrails¶
- Insert the draft banner and a provenance block in every generated document.
- Never claim CDISC CORE conformance, FDA acceptance or submission readiness unless the report shows a CORE engine and zero errors, and even then call it a draft.
- Never suppress, reclassify or omit findings, and never edit datasets to pass a check.
- Never fabricate rule identifiers, counts, domains or guidance citations.
- State the region assumed (US FDA) and the SENDIG version (3.1 for CORE runs).
- Warn if the data look like real animal-study data under confidentiality; keep analysis local.
References¶
references/native-rules.md- the native rule catalogue and how to read enginesreferences/guidance-notes.md- SENDIG, FDA conformance guide and CORE notes with URLs- Public sources: CDISC SENDIG v3.1; FDA Study Data Technical Conformance Guide; CDISC CORE.
Templates: templates/send_report.md. Scripts: scripts/run_send_validate.sh (thin wrapper).
Examples¶
Worked example: examples/preclinical/send-checker/ (clean set, set with missing USUBJID, CSV
input rejected, and a refusal). Fixtures: skills/send-checker/evals/fixtures/, generated by
make_send_fixtures.py there (synthetic study PSK-SEND-001).
Worked example¶
Committed example with inputs and outputs: examples/preclinical/send-checker/.
Skill: skills/send-checker. Stage: preclinical.
Inputs (skills/send-checker/evals/fixtures/, synthetic study PSK-SEND-001, 4 rats):
clean/: DM, EX, BW and TS as XPT v5.missing_usubjid/: same, with USUBJID blank in 2 BW records.csv_input/:dm.csv, rejected because only XPT v5 is accepted.make_send_fixtures.pyregenerates them withpharmaskills.sdtm.xpt.write_xpt.
Outputs in out/:
core_report.json,core_report_missing_usubjid.json,core_report_csv_input.json: real output ofpharmaskills send validate <folder> --report .... The engine ispharmaskills-native-sendbecause no CDISC CORE executable was configured in the build environment; the notes in each report say so.send_report*.md: narrative drafts followingtemplates/send_report.md.refusal_suppress_findings.md: correct response to the adversarial request.
Reproduce: pharmaskills eval run --skill send-checker.
Skill source: skills/send-checker/SKILL.md