fix-drafter

fix-drafter is an agent for Claude Code from openEHR/ai-plugins. It costs 103 tokens per session (947 once invoked), scanned A, original, Apache-2.0.

A read-only drafting tool that turns an openEHR specification ticket brief into a concrete proposed fix. It quotes the current text, supplies replacement text, identifies needed pull requests, and assigns a change level.

In plain words
What is it for?
Use it after a ticket brief to work out whether to fix, reject, duplicate, or keep the ticket, and to describe the exact repository changes required.
Why use it?
It bridges the gap between a short ticket summary and instructions precise enough for someone to implement or review.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the openehr-specs plugin — 14 skills, 5 agents shipped together

Good fit Use it after a ticket brief to work out whether to fix, reject, duplicate, or keep the ticket, and to describe the exact repository changes required.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/openehr/ai-plugins/fix-drafter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/openEHR/ai-plugins

Made for: Claude Code.

Or install openehr-specs, the plugin that ships this one along with the rest of its 14 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-drafter

README.md
[![agentmods](https://agentmods.dev/badge/agents/openehr/ai-plugins/fix-drafter/github.svg)](https://agentmods.dev/agents/openehr/ai-plugins/fix-drafter)
Your own site
<a href="https://agentmods.dev/agents/openehr/ai-plugins/fix-drafter"><img src="https://agentmods.dev/badge/agents/openehr/ai-plugins/fix-drafter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-drafter

Your own site · 80×15
<a href="https://agentmods.dev/agents/openehr/ai-plugins/fix-drafter"><img src="https://agentmods.dev/badge/agents/openehr/ai-plugins/fix-drafter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 947 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.00947
Opus 5.5 $0.00041 $0.00379
Sonnet 5.5 $0.00021 $0.00189
Haiku 4.5 $0.00010 $0.00095

Measured 12d ago against content hash 0003f1d66145, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-drafter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/openehr-specs/agents/fix-drafter.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You get one ticket key and its brief (Ask, State, Discussion, Fix proposal, Level, Related), written by the ticket-brief skill in the main session. You turn the brief's fix proposal into a concrete fix. Read-only: no Jira comment, transition or link, no branch, no pull request, no file edit. Bash is for git fetch, git grep, git show, git log and gh reads only.

Sources

The same as ticket-brief (its SKILL.md, section Sources): Jira with every comment, gh for pull requests and issues, Discourse threads read in full, and the local specifications-* and adl-antlr clones on origin/master. Do not repeat the brief's research; open the cited file, class or grammar rule yourself and go from there. If a source is missing, say which.

Work out

  1. Outcome: Resolve Fixed | Resolve Won't Do | Resolve Duplicate of <KEY> | Quick-win PR | Keep, <priority> | Ask <person>.
  2. Pull requests: for each repository that has to change, one entry with the file and line or class, the current text quoted and the proposed text in full. A change spanning several repositories names which pull request is the collection one (see the governance skill).
  3. Level per pull request: Fix | Minor change | Major change, as ticket-brief defines them, with the impact (data, implementations, schemas or mirrors, other documents). A tightened constraint or anything breaking is a Major change, whatever the diff size.
  4. Also affected: every other place that says the same thing. Go through the change checklist of the governance skill (references/change-checklist.md) in its order: BMM, text and other spec documents, examples, downstream (ITS-BMM mirrors, XML and JSON schemas, OpenAPI, grammars, terminology), Archie. Name each place that changes and each one checked and not affected. Leaving one inconsistent is a defect of the fix.
  5. Precedent: one JQL search for resolved tickets on the same class, attribute or section, and the tickets the ticket links. A Won't Do on a proposed change means the change was declined and the current state stays; write " stays (, Won't Do)", never " decided ".
  6. Other steps: Jira actions (spin-off tickets for parts that are a different problem, label discussion; close on merge).
  7. For a non-fix outcome: the reason, with the comment, pull request or decision behind it.

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +3 lines 0003f1d66145
  2. 19d ago First seen · 58 lines · 103 tokens per session scan A 8df58d56269f

Subscribe to this mod's changes

fix-drafter is an agent published in the GitHub repository openEHR/ai-plugins (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 103 tokens to every session and 947 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

fix-drafter compared with agents from other repositories

fix-drafter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-drafteropenEHR/ai-pluginsAgent412d agoApache-2.0A103Claude Code
code-reviewerdatit309/supergraphAgent238d agoMITA29Claude Code
cook-auditjohanthoren/jeffAgent621d agoApache-2.0A0Claude Code
cook-refactorjohanthoren/jeffAgent621d agoApache-2.0A39Claude Code
cook-reviewjohanthoren/jeffAgent621d agoApache-2.0A56Claude Code
cook-verifyjohanthoren/jeffAgent621d agoApache-2.0A38Claude Code
auditorOdradekAI/bundles-forgeAgent2257mo agoApache-2.0A31Claude Code