Skip to content

SAFETY.md

SAFETY.md is a convention for clinical safety documentation in software repositories. Like README.md, LICENSE and SECURITY.md, a root SAFETY.md puts the information reviewers, Clinical Safety Officers and tools need where they will find it: next to the code, issues, pull requests and releases that affect patient safety. The project publishes the specification, starter templates, crosswalks to NHS DCB0129 and DCB0160, and user-invoked agent skills that draft the files with an AI coding agent.

Read the specification Source

Safety documentation that stays with the code

NHS DCB0129 and DCB0160 require a Clinical Risk Management Plan, a Hazard Log and a Clinical Safety Case for health IT. Too often these live in Word documents and spreadsheets that drift away from the software they describe, take more effort to format than to think through, and are written once for procurement and never opened again.

SAFETY.md keeps that material as Markdown in the repository, so Git history is the audit trail and a code change and its safety review sit in the same pull request. Small projects can start with one file and add more as the clinical risk grows. The aim is to cut the time spent on documentation so that more goes on finding hazards, designing controls and checking residual risk.

Using SAFETY.md does not make a product compliant or safe. The standards still apply, and a Clinical Safety Officer still reviews and signs off the work.

In action

The installer embeds the skills and a reference bundle into an existing project. These are the last lines of its output:

$ sh scripts/embed-in-project.sh --project /tmp/my-health-app
...
Embedded SAFETY.md into:
  /tmp/my-health-app

Next step:
  Open the project in your LLM tool and invoke safety-md-router.

If the tool does not support skills, ask it to read:
  .safety-md/START-HERE.md

Key facts

Lifecycle status Foundation Project, Incubating
Current version Specification 2.0.0-draft.2, a draft not yet externally reviewed
Intended use A convention, templates and agent skills for writing and maintaining clinical safety documentation in software repositories. Not a substitute for a Clinical Safety Officer or for the DCB0129 and DCB0160 process.
Licence Specification, templates, skills and documentation: CC BY-SA 4.0. Scripts: MIT. Upstream NHS material and legislation keep their own terms.
Maintainer Marcus Baw
Clinical Safety Officer Not applicable. The project records that it is documentation and tooling, not a Health IT System; each project that uses SAFETY.md names its own CSO.
Medical device No assessment recorded. SAFETY.md is a documentation convention and tooling, not software with a medical purpose.
Clinical safety documentation None for the project itself, for the same reason. An example SAFETY.md shows the convention in use.
Standards NHS DCB0129 and DCB0160. Crosswalks to ISO 14971 and the Data (Use and Access) Act 2025, and evidence for DTAC section C1.
Source github.com/ohtf/SAFETY.md

Why is all this public? See why we publish so much.

Core team

The people who look after this project day to day:

Get involved

Proposed changes to the specification start as an issue, and changes to required fields or tiering are discussed with the clinical safety community before they are adopted. Feedback from Clinical Safety Officers who try it on a real project is especially welcome.