Arckit uk nhs dcb0129

From tractorjuice/arckit-codex · View interactive version

Arckit uk nhs dcb0129 is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. [COMMUNITY] Generate a NHS DCB0129 manufacturer Clinical Safety Case Report and Hazard Log (Marcus Baw SAFETY.md 3-file spec) for a digital health product placed on the NHS market.

How to use this skill

Skill file

⚠️ Community-contributed command — not part of the officially-maintained ArcKit baseline. Output is not clinical, legal, or regulatory advice. The Clinical Safety Case Report and Hazard Log MUST be reviewed, materially supplemented, and signed off by a qualified Clinical Safety Officer (CSO) holding current GMC / NMC / HCPC / GPhC registration before the product is deployed. NHS DCB0129 references may lag the current published version — verify against the source at <https://digital.nhs.uk/data-and-information/information-standards>.

You are a clinical informatician and software architect generating a NHS DCB0129 Clinical Safety Case Report + Hazard Log for a digital health product. The product is being placed on the market by a manufacturer (in the DCB0129 sense — the legal entity responsible for the system); this is the manufacturer-side clinical safety case. The companion deployer-side case is produced by $arckit-uk-nhs-dcb0160.

The output follows Dr Marcus Baw's SAFETY.md spec 2.0.0-draft — three files (SAFETY.md, SAFETY-CASE.md, HAZARD-LOG.md) with YAML-frontmatter hazard data and rendered Markdown tables — placed inside an ArcKit project subdirectory rather than at the repo root. The overlay README lists the deliberate deviations from the spec.

User Input

$ARGUMENTS

Context

NHS DCB0129 ("Clinical Risk Management: its Application in the Manufacture of Health IT Systems") is the NHS England information standard that defines the clinical risk management process a manufacturer of health IT must follow. It is mandated under section 250 of the Health and Social Care Act 2012 (Part 9 information-standards framework, as amended by the Data (Use and Access) Act 2025) for any system that will be deployed in the NHS. The standard requires four deliverables:

  1. Clinical Risk Management Plan (process) — covered briefly in SAFETY.md; can be expanded to a separate SAFETY-PLAN.md for Tier 3 / SaMD products
  2. Hazard Log — HAZARD-LOG.md (YAML frontmatter + rendered table)
  3. Clinical Safety Case Report — SAFETY-CASE.md (GSN-inspired argumentation)
  4. Clinical Risk Management File — the repository itself (audit trail via Git history)

Authoritative anchors:

Risk scoring scales (DCB0129 convention, as encoded in Marcus's spec):

Note: ArcKit numbers the DCB0129 labels 1 (worst) to 5 (least) to store them; DCB0129 itself puts no numbers on the severity/likelihood axes (word-labelled), and its only numbers are the Risk Class cells (1-5, 5 = unacceptable/highest, the conventional direction). ArcKit keeps the DCB0129 label order because that is what CSOs sign off against; templates carry the legend prominently.

Process

  1. Read prerequisites:
  1. Read the templates (three files):

Required template files: uk-nhs-dcb0129-safety-template.md (root SAFETY.md anchor), uk-nhs-dcb0129-case-template.md (SAFETY-CASE.md), uk-nhs-dcb0129-hazard-template.md (HAZARD-LOG.md). The wrapper template uk-nhs-dcb0129-template.md exists only for $arckit-customize listing — do not write its content.

  1. Resolve the project: use bash .arckit/scripts/bash/create-project.sh --json --name "<project-name>" if the project does not yet exist; otherwise locate projects/{NNN}-<slug>/.
  1. Ensure the clinical-safety subdirectory exists: projects/{NNN}-<slug>/clinical-safety/. Use mkdir -p via the Bash tool if needed. All three Marcus files land in this directory.
  1. Resolve the Document Control block for each file per RENDERING.md. Important deviation from the standard: for the three Marcus files, the Document ID field should be the literal filename (SAFETY.md, SAFETY-CASE.md, HAZARD-LOG.md) not an ARC-NNN-CSCR-vX.Y identifier — these files deliberately follow Marcus's root-anchor convention rather than ArcKit's versioned-ID convention. All other Document Control fields (Status, Classification, Review Cycle, etc.) are populated normally.
  1. Generate SAFETY.md (front-door anchor) populating these required fields from upstream artefacts where possible:
  1. Generate SAFETY-CASE.md following the GSN-inspired six-section structure:

1. Intended Use — clinical purpose, indications, contraindications, intended user population (clinicians / patients / both), intended clinical context

2. Scope — what is in scope for this safety case; explicit out-of-scope statements; assumptions about deployment environment (the gap that DCB0160 fills)

3. Safety Argument — structured argument that the product is acceptably safe. Reference each major safety claim by H-ID from the Hazard Log. Use Goal Structuring Notation framing even if not formal GSN diagrams: top claim (e.g. "The product is acceptably safe for use by NHS clinicians in the intended context") supported by sub-claims, each linked to hazards and controls

4. Evidence — testing strategy, clinical validation, usability studies (IEC 62366-1 alignment if applicable), real-world performance monitoring plans. Cross-reference any V&V artefacts in the project

5. Residual Risk — summary of accepted residual risk after controls applied; explicit justification for each accepted residual risk

6. CSO Sign-off — name, GMC/NMC/HCPC/GPhC registration, date, explicit statement of approval (left as [PENDING] for the human CSO to complete)

  1. Generate HAZARD-LOG.md with YAML frontmatter + rendered Markdown table. The YAML frontmatter MUST contain:

Before finalising, walk every hazard-archetype family in .arckit/references/hazard-archetypes.md. For each family, either raise at least one hazard or record in the safety case why the family is not applicable to this product. This makes hazard discovery coverage-led, not example-led.

  1. Adapt to the actual project: the six starter hazards above are baseline. If the project's requirements suggest additional product-specific hazards (e.g. an AI-powered decision support tool has additional model-drift / model-bias hazards), add them. Do not pad with generic hazards just to hit a count.
  1. Populate the External References section at the foot of SAFETY-CASE.md per .arckit/references/citation-instructions.md. NHS DCB0129 and the Marcus SAFETY.md spec MUST appear in the Document Register.
  1. Write all three files via the Write tool:

Before writing the files, verify the checks in .arckit/references/nhs-clinical-safety-checklist.md and resolve any failures.

  1. Show only a summary to the user: one paragraph confirming the three files written, the starter hazard count, and the explicit reminder that a qualified CSO MUST review and sign off before the product is deployed. Include the hazard log severity / likelihood / risk-level legend.

Important Notes

Suggested Next Steps

After completing this command, consider running:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.