Skip to content

ctd-module2

Draft CTD Module 2 summaries (2.4 and 2.6 nonclinical, 2.5 and 2.7 clinical) from study summaries, check ICH M4 numbering, add cross-references to Modules 4 and 5, and produce a gap list. Use for CTD Module 2 drafting or gap checks.

Stage Regulatory
Tier 1 (deterministic tool)
Standards ICH M4, ICH M4S, ICH M4E, ICH M4Q, ICH S6, ICH E3
Minimum pharmaskills 0.3.0
Inputs study report summaries, program facts
Outputs module2 docx, structure report json, gap list csv, ctd map json
Verified by docs check-structure --standard ich-m4, reg ctd-map

Draft for qualified review. Not a validated system.

Install only this skill: pharmaskills skills install --agent claude-code --skill ctd-module2 (see Install).

Purpose

Produce draft Module 2 sections for a regulatory writer: the nonclinical overview (2.4), the clinical overview (2.5), the nonclinical written and tabulated summaries (2.6) and the clinical summary (2.7), numbered according to ICH M4, cross-referenced to the Module 4 and Module 5 reports they summarise, with a gap list of what the source documents do not yet cover. Everything is a draft for qualified review.

When to use / when not to use

Use to draft Module 2 summaries from study report summaries, to check Module 2 numbering against ICH M4, to map content to CTD locations, or to list gaps before filing.

Do not use for: the quality overall summary (2.3, written from Module 3), regional Module 1 content (US FDA specifics change; check the eCTD Module 1 specification), final submission documents without regulatory writer, nonclinical and clinical expert and QA review, or any section whose source studies were not supplied (leave a placeholder).

Inputs

Required: summaries or reports of the nonclinical studies (pharmacology, pharmacokinetics, toxicology) and clinical studies, each with an identifier and, if known, its Module 4 or 5 location. Optional: program facts (product, class, indication, region), earlier Module 2.

Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...] placeholders. State the region assumed (US FDA with ICH M4 unless told otherwise). If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, check pharmaskills --version against min_pharmaskills, and produce the section skeletons and gap list only, marked unverified.

Workflow

  1. Inventory the sources. For each study note the id, type, design, key results and the Module 4 or 5 section it belongs in. Resolve locations with pharmaskills reg ctd-map --content-type <type> --out out/ctd_map_<type>.json (use --list for all types).
  2. Plan the structure. Use references/m4-module2.md: sections 2.4, 2.5, 2.6.1 to 2.6.7 and 2.7.1 to 2.7.6 with the numbering and titles of ICH M4.
  3. Draft each section from templates/module2-section.md. Quote values exactly as stated in the source summary, name the study id, and add the cross-reference ("Module 4, section 4.2.3.2"). Do not compute or extrapolate numbers, and do not draw integrated conclusions that the supplied studies cannot support. Missing source: write [DATA NEEDED: <what>].
  4. Build documents. Write Markdown and build DOCX per section and one combined document (pharmaskills.docs.builders.build_docx; for an existing file pharmaskills docs banner --apply). The combined document ends with a cross-reference index to Modules 3 to 5 so the whole numbering can be checked.
  5. Check numbering. pharmaskills docs check-structure out/module2/module2_combined.docx --standard ich-m4 --out out/structure_report.json. Fix missing and out-of-order sections. Never renumber to pass; the check matches headings by number or title.
  6. Gap list. Write out/gap_list.csv (id, ctd_section, item, status, severity, action, cross_reference) for every placeholder and missing study.
  7. Repair loop (maximum 3 iterations). Fix, rebuild, recheck, then report what remains.
  8. Report using the output contract below.

Output contract

Under out/:

File Content
module2/2.4-*.docx, 2.5-*.docx, 2.6-*.docx, 2.7-*.docx Draft sections with draft banner and provenance
module2/module2_combined.docx All Module 2 sections plus cross-reference index
structure_report.json ICH M4 present, missing, out-of-order sections
ctd_map*.json Module and section for each cross-referenced content type
gap_list.csv Gaps with CTD section, severity, action, location
module2_notes.md Summary, verification, open items (banner and provenance)

State plainly in the answer: sections drafted versus placeholders, structure result, number of gaps by severity, assumptions and what needs a human.

Verification

Run and report pass or fail for each: docs check-structure --standard ich-m4 on the combined document (zero missing required, zero out of order), reg ctd-map for each cross-referenced type, banner present in each document, cross-references to Module 4 and Module 5 present in 2.4 to 2.7, gap list non-empty when any placeholder remains. On failure fix and rerun up to three times, then report what remains. The numbering check does not judge the quality of content.

Guardrails

  • Insert the draft banner in every generated document; never claim the Module 2 is complete, final or submission-ready.
  • Never fabricate studies, results, doses, NOAELs, NCT identifiers, PMIDs or citations. A section without a source is a placeholder and a gap entry.
  • Never renumber or retitle sections to make the checker pass; never delete gap entries.
  • Safety margins and benefit-risk conclusions need expert review; state that they are drafts.
  • Cite ICH M4 sections for numbering claims (see references/). Region assumed is stated.
  • Warn when inputs look like real patient data; recommend de-identification.

References

  • references/m4-module2.md - Module 2 numbering, who writes what, M4S and M4E scope
  • references/cross-references.md - how to cite Module 4 and Module 5 locations
  • Public sources: ICH M4(R4) (organisation of the CTD), M4Q, M4S, M4E. https://www.ich.org/page/ctd

Templates: templates/module2-section.md, templates/gap-list.csv. Script: scripts/check_module2.sh (thin wrapper around pharmaskills docs check-structure).

Examples

Worked example with inputs and outputs: examples/regulatory/ctd-module2/. Synthetic inputs: skills/ctd-module2/evals/fixtures/ (three study summaries and program facts).

Worked example

Committed example with inputs and outputs: examples/regulatory/ctd-module2/.

Inputs (synthetic): skills/ctd-module2/evals/fixtures/summaries/ (pharmacology PH-101, toxicology TOX-201, clinical PSK-001 summaries) and fixtures/program_facts.yaml.

pharmaskills docs check-structure out/module2/module2_combined.docx --standard ich-m4 \
  --out out/structure_report.json
pharmaskills reg ctd-map --list --out out/ctd_map.json
pharmaskills reg ctd-map --content-type csr --out out/ctd_map_csr.json
File in out/ Origin
module2/*.docx (and .md) drafted by the agent, built with build_docx (draft banner, provenance)
structure_report.json, ctd_map*.json tool output
gap_list.csv drafted by the agent from the placeholders and cross-reference index
module2_notes.md drafted review summary with draft banner and provenance
refusal_*.md what a correct agent says for the adversarial cases

The combined document ends with a cross-reference index to Modules 3, 4 and 5 so the whole M4 numbering can be checked; the modules themselves are separate documents. Synthetic data only. Not a validated system; for qualified review (regulatory writer and QA).

Skill source: skills/ctd-module2/SKILL.md