rbqm-plan¶
Draft a risk-based quality management plan and risk register from a protocol under ICH E6(R3) and E8(R1), covering critical-to-quality factors, key risk indicators, quality tolerance limits and a monitoring strategy, then check the register for completeness.
| Stage | Clinical development |
| Tier | 2 (template and rubric) |
| Standards | ICH E6(R3), ICH E8(R1), ICH E9(R1) |
Minimum pharmaskills |
0.4.0 |
| Inputs | protocol, estimands, visit schedule |
| Outputs | rbqm plan md, risk register csv, risk register check json |
| Verified by | protocol check-risk-register, protocol check-estimands |
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 rbqm-plan (see Install).
Purpose¶
Produce a first-draft risk-based quality management plan and a machine-checkable risk register that a clinical operations lead, statistician and quality reviewer can refine: what is critical to the trial, what can go wrong, how it will be detected, what limits trigger action and how monitoring is proportionate to the risk.
When to use / when not to use¶
Use after the protocol draft exists, before the monitoring plan and site selection, or to re-baseline risks after a protocol amendment.
Do not use for: a final validated risk management system, device or diagnostic risk management
(ISO 14971), safety signal management (use signal-detection), or to lower monitoring effort
without a documented rationale. Never rate risks to reach a desired monitoring level.
Inputs¶
Required: the protocol (primary endpoint and estimand, eligibility, randomisation and
blinding, safety assessments, visit schedule) and the sample size dropout assumption. Ask
once, in a single message, for missing items, then proceed with stated assumptions and
[DATA NEEDED: ...] placeholders (owners, site numbers, system names, thresholds not
traceable to the protocol). State the region assumed (default US, ICH E6(R3) principles; EU CTR
536/2014 and local rules add requirements).
If pharmaskills is not installed, say so (uv tool install pharmaskills), draft from
templates/rbqm_plan.md and references/register-format.md, and mark the register check as
not run. Check pharmaskills --version is at least min_pharmaskills.
Workflow¶
- Read the protocol and run
pharmaskills protocol check-estimands PROTOCOLso the primary endpoint data requirement is known. Readreferences/rbqm-concepts.md. - List CtQ factors from the protocol: primary endpoint data, eligibility, randomisation and blinding, treatment adherence and rescue handling, consent, safety reporting, data integrity. Each cites a protocol section.
- Assess risks into
out/risk_register.csv(columns inreferences/register-format.md): at least one risk per CtQ factor, with likelihood, impact, detectability, mitigation, KRI and QTL where relevant; flagprimary_endpoint=yeson risks to primary endpoint data. - Define KRIs and QTLs. KRI: source, frequency, threshold. QTL: parameter, limit, basis
(trace to a protocol assumption, such as the dropout rate behind the sample size, or
[DATA NEEDED: threshold agreed by the study team]), action when crossed. - Monitoring strategy. Central monitoring of KRIs; targeted on-site visits triggered by KRI breaches or QTL signals; source data review focused on the CtQ factors. Explain proportionality.
- Write
out/rbqm_plan.mdfromtemplates/rbqm_plan.md. - Verify.
pharmaskills protocol check-risk-register out/risk_register.csv --out out/risk_register_check.jsonmust exit 0. Exit 2 lists the gaps: fix the register, never weaken a rating to pass. - Banner and provenance.
pharmaskills docs banner --apply out/rbqm_plan.md. - Report the top risks, the QTLs and the open decisions.
Output contract¶
Under out/:
| File | Content |
|---|---|
rbqm_plan.md |
CtQ factors, risk summary, controls, KRIs, QTLs, monitoring strategy |
risk_register.csv |
One row per risk (columns in references/register-format.md) |
risk_register_check.json |
Report of protocol check-risk-register |
Verification¶
Report pass or fail: register check exit 0; each risk has likelihood, impact, detectability and
mitigation; at least one risk flagged primary_endpoint=yes and every such risk has a QTL; the
register is not empty; each QTL threshold traces to a protocol assumption or a placeholder;
each CtQ factor has at least one risk; the draft banner is present. Whether the ratings are
reasonable is a documented review item for the study team.
Guardrails¶
- Never fabricate data, numbers, citations or identifiers; unknowns are placeholders.
- Insert the draft banner and a provenance block; the plan requires study team review.
- Never rate risks to justify less monitoring, never set a QTL that cannot trigger, never claim
ICH E6(R3) removes monitoring. Unknown thresholds are
[DATA NEEDED: ...]. - Do not invent site names, performance data, vendor names or regulatory citations; cite ICH E6(R3) and ICH E8(R1) by identifier and flag section numbers to verify.
- State the region assumed and that local requirements are not covered.
References¶
references/rbqm-concepts.md- CtQ, KRI, QTL, monitoring definitions and rulesreferences/register-format.md- risk register columns and checks- Public sources: ICH E6(R3) Good Clinical Practice (quality management and monitoring), ICH E8(R1) General considerations for clinical studies (quality by design), ICH E9(R1).
Templates: templates/rbqm_plan.md. Scripts: scripts/check_risk_register.sh.
Examples¶
Worked example: examples/clinical/rbqm-plan/. Cases: skills/rbqm-plan/evals/cases/.
Worked example¶
Committed example with inputs and outputs: examples/clinical/rbqm-plan/.
RBQM plan and risk register for the synthetic protocol PSK-201-DM2-01.
Inputs¶
skills/rbqm-plan/evals/fixtures/protocol.md (copy of the protocol-m11 worked example) and three
small registers used for the check cases (incomplete, no QTL, header only).
Outputs (out/)¶
| File | How it was made |
|---|---|
rbqm_plan.md |
Drafted from the protocol following templates/rbqm_plan.md |
risk_register.csv |
10 risks, 3 on primary endpoint data each with a QTL; Q1 (15 percent) traces to protocol section 9.4, Q2 and Q3 are labelled proposals |
risk_register_check.json |
Real output of pharmaskills protocol check-risk-register out/risk_register.csv |
empty_register_note.md, refusal_suppress_risks.md |
Sample correct responses |
Reproduce¶
pharmaskills protocol check-risk-register out/risk_register.csv --out risk_register_check.json
Skill source: skills/rbqm-plan/SKILL.md