Skip to content

stability-protocol

Draft an ICH Q1A(R2) stability protocol with storage conditions and time points by climatic zone and pack, a Module 3.2.P.8 outline, and an ICH Q1E shelf-life estimate when data are supplied. Use for stability program design and shelf-life proposals.

Stage CMC and manufacturing
Tier 1 (deterministic tool)
Standards ICH Q1A(R2), ICH Q1B, ICH Q1E, ICH M4Q, WHO TRS 1010 Annex 10
Minimum pharmaskills 0.3.0
Inputs dosage form, climatic zones, packaging, stability data csv
Outputs stability protocol docx, module 3 2 p 8 outline md, shelf life md, shelf life json
Verified by cmc stability-conditions, stats shelf-life

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 stability-protocol (see Install).

Purpose

Help a CMC scientist produce a draft stability protocol: storage conditions, time points and tests per ICH Q1A(R2) for the climatic zones and pack, an outline of CTD Module 3.2.P.8, and, when real data exist, an ICH Q1E shelf-life estimate with poolability testing and the extrapolation limits applied. Everything is a draft for qualified review. The shelf-life claim is a decision of the quality unit and the regulatory authority, not of this skill.

When to use / when not to use

Use for new stability programs for drug products (and, with the drug substance conditions in the tool output, drug substances), for zone-specific condition tables, and for shelf-life regressions on assay or other quantitative attributes.

Do not use for: biologics shelf-life design beyond the Q1A(R2) tables (see ICH Q5C), in-use or reconstitution studies, transport and excursion studies, statistical modelling of non-linear degradation, or to set a claim without real data. Do not extrapolate past the Q1E limit.

Inputs

Required: dosage form, target markets or climatic zones (I, II, III, IVa, IVb), and the pack (permeable, impermeable, refrigerated, frozen). Optional: stability data as CSV with columns batch,time,value (time in months), the acceptance criterion and its direction, and the specification attributes.

Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...] placeholders. Never invent stability results, batch numbers, methods or acceptance criteria. State the region and climatic zones assumed.

If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, then produce the template-only protocol marked unverified. Check pharmaskills --version against min_pharmaskills.

Workflow

  1. Map markets to zones. Use references/climatic-zones.md. When the user lists countries, state the zone you assume for each and mark uncertain ones for regulatory affairs.
  2. Conditions. For each zone and pack run pharmaskills cmc stability-conditions --zone <zone> --pack <pack> --out <file>.json. Copy long-term, intermediate and accelerated conditions, minimum durations and time points from the output. Zone IVb long-term is 30 C / 75 % RH.
  3. Protocol. Fill templates/stability-protocol.md: scope, batches (three primary batches), container closure, conditions table, tests and criteria, photostability (ICH Q1B), evaluation, commitments, CTD mapping. Tests and criteria come from the specification: otherwise [DATA NEEDED: ...].
  4. Shelf life (only with data). pharmaskills stats shelf-life data.csv --criterion <x> --direction decreasing|increasing --out shelf_life.json. Report poolability (0.25 level), the scenario recommended, the crossing time, the proposed shelf life, the data period and the extrapolation limit (at most 2x and at most +12 months). Any flag is reported verbatim.
  5. Write shelf_life.md from templates/shelf-life-summary.md. Do not state a claim longer than the tool's proposal or the extrapolation limit.
  6. Module 3.2.P.8 outline with P.8.1, P.8.2, P.8.3 per ICH M4Q.
  7. Build the DOCX with scripts/make_docx.sh protocol.md stability_protocol.docx (uses pharmaskills.docs.builders.build_docx), then insert the draft banner and a provenance block into the Markdown files (pharmaskills docs banner --apply FILE).

Output contract

File Content
stability_protocol.docx (and .md) Protocol with conditions, time points, tests, evaluation, commitments
module_3_2_p_8_outline.md CTD P.8.1, P.8.2 and P.8.3 outline with placeholders
shelf_life.md, shelf_life.json Q1E estimate, poolability, extrapolation assessment
stability_conditions_*.json Raw tool output per zone and pack

Report: zones and packs assumed, the condition table, whether data were supplied, the proposed shelf life and whether it is extrapolated, and every [DATA NEEDED: ...] item.

Verification

Run and report for each: cmc stability-conditions exit code (an unknown zone or pack is an error: fix the input), stats shelf-life exit code, and that every condition in the protocol matches the tool JSON. Recompute one regression value independently (a pooled least-squares fit with a one-sided 95 percent bound) and state whether it matches the tool. Check that the proposed shelf life does not exceed the extrapolation limit.

Guardrails

  • Insert the draft banner in every generated document; mark estimates as drafts.
  • Never fabricate stability data, batch numbers, methods, acceptance criteria, citations or results. Missing items are [DATA NEEDED: ...].
  • Never extrapolate past the ICH Q1E limit; never present an extrapolated claim as measured.
  • Do not describe a protocol as approved or as agency-ready; zone assignment of a country is to be confirmed by regulatory affairs.
  • Cite guidance by identifier and section; do not paste guideline text.
  • State the region assumed.

References

  • references/q1a-conditions.md - Q1A(R2) conditions, frequency and submission data
  • references/q1e-shelf-life.md - Q1E statistics, poolability and extrapolation
  • references/climatic-zones.md - zones I to IVb and how to assign markets
  • Public sources: ICH Q1A(R2), Q1B, Q1E, M4Q(R1), WHO TRS 1010 Annex 10.

Templates: templates/stability-protocol.md, templates/shelf-life-summary.md. Scripts: scripts/run_conditions.sh, scripts/make_docx.sh.

Examples

Worked example (zone IVb and zone II, assay data for three batches): examples/cmc/stability-protocol/. Fixtures: skills/stability-protocol/evals/fixtures/.

Worked example

Committed example with inputs and outputs: examples/cmc/stability-protocol/.

Inputs: skills/stability-protocol/evals/fixtures/product_brief.md and stability_assay.csv (synthetic: three batches, assay at 0, 3, 6, 9, 12 and 18 months).

  • stability_conditions_ivb.json, stability_conditions_ii.json, stability_conditions_ivb_permeable.json: real output of pharmaskills cmc stability-conditions (zone IVb long-term 30 C / 75 % RH).
  • shelf_life.json: real output of pharmaskills stats shelf-life stability_assay.csv --criterion 95 --direction decreasing. Pooled crossing 25.08 months matches an independent least-squares fit with a one-sided 95 percent bound (scipy). The recommended scenario is separate batches (slopes and intercepts not poolable at 0.25): 22.7 months, extrapolated beyond the 18 months of data and inside the limit of 30 months.
  • stability_protocol.docx and .md: protocol drafted for this example and built with pharmaskills.docs.builders.build_docx; module_3_2_p_8_outline.md, shelf_life.md.
  • refusal_extrapolate.md and refusal_invent_data.md: correct responses to the adversarial prompts.

Skill source: skills/stability-protocol/SKILL.md