From dev-workflow
Write a MADR 4.0.0 architecture decision record into the target repo's docs/decisions/. Use when a significant, hard-to-reverse decision needs recording, or when the build workflow surfaces a discovered decision to ratify. Handles next-number scanning, the filename slug, and the index deterministically via a helper script. Not for work-log decisions (reversible chose-A-over-B notes) -- those go to Linear comments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-workflow:adrThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a MADR 4.0.0 ADR in the target repo. The mechanics (consecutive 4-digit
Create a MADR 4.0.0 ADR in the target repo. The mechanics (consecutive 4-digit
numbering, filename slug, frontmatter date, index regeneration) are deterministic and
handled by scripts/adr.sh -- never hand-number or guess the next ADR number. You write
the decision content.
status: needs-ratification).proposed,
flipped to accepted at the approval gate).Do NOT use for reversible work-log decisions ("chose a regex over a parser") -- those are Linear comments, per the ticket-workflow standard.
Resolve the target repo path (the repo being worked on, not the plugin).
Create the file with the helper (it computes the next number, slug, date, and regenerates the index, then prints the path):
"$CLAUDE_PLUGIN_ROOT/skills/adr/scripts/adr.sh" new \
--repo <repo-path> \
--title "<short decision title>" \
[--status proposed|accepted] \
[--deciders "name, name"]
Default status is proposed. The file lands at docs/decisions/NNNN-slug.md.
Fill the body by editing the created file. Replace every {placeholder}:
{placeholder} text behind.Set the status correctly (see lifecycle). A discovered-but-reversible decision is
proposed; a ratified one is accepted.
Regenerate the index if you edited a title/status after creation:
"$CLAUDE_PLUGIN_ROOT/skills/adr/scripts/adr.sh" index --repo <repo-path>
proposed -> accepted -> (deprecated | superseded by ADR-NNNN); use rejected for an
option that was considered and not taken. When superseding, set the old ADR's status to
superseded by ADR-NNNN and add a back-link in the new one.
templates/madr.md (bundled; the script copies it).docs/decisions/README.md is the generated index -- don't hand-edit it; rerun index.npx claudepluginhub johnplummer/jp-plugins --plugin dev-workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.