protocol-m11¶
Draft a clinical trial protocol in ICH M11 structure with a five-attribute estimand for every primary endpoint, a schedule of activities and comparable trials, then check structure. Use when starting or restructuring a protocol from a synopsis.
| Stage | Clinical development |
| Tier | 1 (deterministic tool) |
| Standards | ICH M11, ICH E9(R1), ICH E6(R3), ICH E8(R1) |
Minimum pharmaskills |
1.0.0 |
| Inputs | synopsis, objectives, population, design, endpoints, treatment, visit schedule |
| Outputs | protocol docx, soa csv, structure report json, estimand check json, soa check json |
| Verified by | docs check-structure, protocol check-estimands, protocol check-soa, trials feasibility, stats sample-size |
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 protocol-m11 (see Install).
Purpose¶
Turn a study synopsis into a protocol draft that follows the ICH M11 section structure, with an
explicit estimand (population, treatment, variable, intercurrent events, population-level
summary) for each primary endpoint, a schedule of activities with visits and windows, and a
comparable-trials section built from real registry records. Structure, estimand and schedule
checks are deterministic pharmaskills calls; you draft the text and keep every unknown as a
placeholder for the clinical team.
When to use / when not to use¶
Use when a clinical team has a synopsis (objectives, population, design, endpoints, treatment) and needs a first protocol draft, or when an existing protocol should be restructured and checked against M11 and E9(R1).
Do not use for: protocol amendments with tracked changes, device or diagnostic protocols, statistical analysis plans (a separate document), or final protocols for ethics submission without sponsor medical, statistical and regulatory review. Do not invent clinical content the synopsis does not support.
Inputs¶
Required: synopsis with objectives, population, design, endpoints and treatment. Ask once for
anything missing, then proceed with stated assumptions and [DATA NEEDED: ...] placeholders.
Typical gaps: intercurrent events and strategies, visit windows, stopping rules, risk
assessment, sponsor details, sample size inputs.
Optional: a trial-feasibility output (feasibility.json, comparators.csv) for the
comparable-trials section, a sample-size output (sample_size.json) for section 10.11.
If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, then
draft from templates/protocol-skeleton.md and mark all checks as not run (unverified).
Check pharmaskills --version is at least min_pharmaskills.
Workflow¶
- State assumptions. Region (default US FDA with ICH principles; state any other), phase,
design. Read
references/m11-structure.mdandreferences/estimands.md. - Comparables. Run the
trial-feasibilityworkflow (or reuse its outputs) for comparable completed trials; the documented interface isfeasibility.jsonandcomparators.csv. Cite only NCT ids that appear there. - Sample size. For section 10.11 reuse
sample-size(pharmaskills stats sample-size); never compute by hand. - Draft. Fill
templates/protocol-skeleton.md, keeping the numbered M11 headings (0 to 14); every level-1 and level-2 heading stays, with "Not applicable" when it does not apply. For each primary endpoint write an estimand block with the five attributes using the exact labels oftemplates/estimand-block.md. - Schedule of activities. Write
out/soa.csvin the wide layout ofreferences/soa-layout.md, then include it as the table in section 1.3. - Build. Build
out/protocol.docxfrom the Markdown withpharmaskills.docs.builders.build_docx(banner, provenance, heading styles), or write Markdown and runpharmaskills docs banner --apply out/protocol.md. - Check.
pharmaskills docs check-structure out/protocol.docx --standard ich-m11 --out out/structure_report.json;pharmaskills protocol check-estimands out/protocol.docx --out out/estimand_check.json;pharmaskills protocol check-soa out/soa.csv --out out/soa_check.json. Fix gaps in the text, never in the check. - Report what is complete, what is placeholder, and the assumptions.
Output contract¶
Under out/:
| File | Content |
|---|---|
protocol.docx (+ protocol.md) |
Protocol draft with M11 headings, banner, provenance |
soa.csv |
Schedule of activities: visits, nominal days, windows, procedures |
structure_report.json |
docs check-structure result for ICH M11 |
estimand_check.json |
Per primary endpoint: which of the five attributes are present |
soa_check.json |
Visits, procedures, window format, duplicate visit ids |
Verification¶
Report pass or fail: all required M11 sections present (missing_required empty); every primary
endpoint has all five estimand attributes and none is a placeholder (or the placeholder is
reported to the user); schedule of activities has visits, windows and procedures with unique
visit ids and valid window formats; section 10.11 numbers equal sample_size.json; every NCT id
appears in comparators.csv; banner present. Fix and rerun up to three times, then report.
Guardrails¶
- Insert the draft banner and provenance block; the protocol is a draft for sponsor review and is not ready for ethics or regulatory submission.
- Never fabricate clinical content, NCT ids, PMIDs, numbers, dose rationale, risk frequencies or
citations. Anything the synopsis lacks is
[DATA NEEDED: ...]. - Never choose an intercurrent-event strategy silently; propose one with a rationale and mark it for statistician confirmation (ICH E9(R1)).
- Comparable-trial numbers come only from the feasibility output and keep its caveats (lower bound rates, comparator set differences).
- State the region assumed. M11 is a harmonised structure; regional administrative sections are added by the sponsor.
- Do not claim the check-structure result means the content is adequate; it checks headings.
References¶
references/m11-structure.md- section list used by the checker and drafting notesreferences/estimands.md- five attributes, strategies for intercurrent events, wordingreferences/soa-layout.md- CSV layout, window formats and checks- Public sources: ICH M11 (CeSHarP) template and technical specification, ICH E9(R1) estimands addendum, ICH E6(R3), ICH E8(R1).
Templates: templates/protocol-skeleton.md, templates/estimand-block.md,
templates/soa.csv. Scripts: scripts/check_protocol.sh (thin wrapper that runs the three
checks).
Examples¶
Worked example: examples/clinical/protocol-m11/. Synthetic synopsis and comparator inputs:
skills/protocol-m11/evals/fixtures/.
Worked example¶
Committed example with inputs and outputs: examples/clinical/protocol-m11/.
Synthetic study PSK-201-DM2-01 (an invented product in adults with type 2 diabetes).
Inputs¶
All in skills/protocol-m11/evals/fixtures/:
synopsis.md: synthetic synopsis input.feasibility.json,comparators.csv: copied fromexamples/clinical/trial-feasibility/out/(real ClinicalTrials.gov records retrieved 2026-10-14; an obesity comparator set).sample_size.json: copied fromexamples/clinical/sample-size/out/(real tool output).protocol_no_estimand.md,soa_bad.csv,protocol_missing_sections.md: edge-case inputs.
Outputs (out/)¶
| File | How it was made |
|---|---|
protocol.docx, protocol.md |
Drafted, built with pharmaskills.docs.builders.build_docx |
soa.csv |
Schedule of activities, wide layout (see references/soa-layout.md) |
structure_report.json |
Real output of pharmaskills docs check-structure --standard ich-m11 |
estimand_check.json, soa_check.json |
Real output of pharmaskills protocol check-estimands and check-soa |
estimand_gap_note.md |
Sample correct response when estimand attributes are missing |
refusal_invent_comparators.md |
Sample correct response to a request to invent comparators |
The protocol follows the level-1 and level-2 headings of the ICH M11 Step 4 template (19 November 2025); it was restructured from the earlier draft layout on 2026-11-13 (decision D15). Comparable trials are a sponsor appendix, 12.4, added after the template's level-2 appendices.
Reproduce¶
pharmaskills docs check-structure examples/clinical/protocol-m11/out/protocol.docx --standard ich-m11
pharmaskills protocol check-estimands examples/clinical/protocol-m11/out/protocol.docx
pharmaskills protocol check-soa examples/clinical/protocol-m11/out/soa.csv
Skill source: skills/protocol-m11/SKILL.md