adr-new
Skill3 starsChanged 6 days agoMITView on GitHub
Record a new rule doc (an ADR, a policy, or a procedure) from the current conversation or diff, after the user confirms it. This includes updates to related docs and their consolidation. Use when the user runs /bipbop-skills:adr-new, says "write an ADR for this", "write a policy" or "document these steps", or asks to record a lasting architectural constraint or team rule. Apply the routing test and the eligibility filter before you write a draft.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- salvo8519/fairmarktheir own version, first seen Nov 8, 2026
- cahenesy/throughlinetheir own version, first seen Jun 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- cahenesy/throughline★ 3same name
- salvo8519/fairmark★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- adr-distillSkill
- adr-initSkill
- adr-reviewSkill
- adrSkill
- best-promptingSkill
- code-principlesSkill
- commitSkill
- create-skillsSkill
- fixSkill
- microcopySkill
- prSkill
- research-firstSkill
- simple-writingSkill
- test-auditSkill
- writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 9 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Use --kind if the user gives it.
- Distinctive: line 27
Policy or procedure: do the steps in "Policy or procedure" below.
- Distinctive: line 28
ADR: do the steps in "ADR procedure".
- Very specific: line 36
Find the ADR folder and conventions: Read the index. If there is no ADR folder, say so, offer /bipbop-skills:adr-init, and stop.
- Very specific: line 40
Find its home: Read related ADRs by title, tags, and paths.
- Distinctive: line 43
If an existing record already covers the concern fully, link to it and stop.
- Very specific: line 56
Do not infer a reason to fill the template.
- Very specific: line 58
Write the confirmed current text: Update existing ADRs in place.
- Distinctive: line 64
Consolidate and remove obsolete content: Remove the redundant or inapplicable ADRs that the confirmed change includes.
- Distinctive: line 77
Do not add tags without a yes.
- Very specific: line 84
Test with a fresh agent: Ask the user first: the test costs one subagent run.
- Distinctive: line 89
Ask the agent to list the docs that constrain its plan.
- Very specific: line 99
Find the folder: Use the folder that the repository uses for this kind.
- Very specific: line 100
Default: docs/policies/ or docs/procedures/.
- Distinctive: line 102
Find its home: Read the folder index. If a doc already covers the rule or task, update that doc.
- Very specific: line 105
Write the draft: Use the repository template, or ${CLAUDE_PLUGIN_ROOT}/skills/adr/templates/policy-template.md or procedure-template.md.
- Distinctive: line 114
Write and index: Write the file. Add a row with a link to the folder index between its markers.
- Distinctive: line 116
Agent files: If CLAUDE.md or AGENTS.md restates the rule, offer to replace the text with one line that names the new doc.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/bipbop-skills:adr-new
Record one qualifying concern concisely. Prefer an existing doc with the
same scope to a new file. The user confirms the decision and the reason.
You write everything else from evidence. Standing rules: ../adr/SKILL.md.
Arguments: $ARGUMENTS. Optional --kind and title. Treat a legacy --supersedes request
as a proposal to rewrite or consolidate the affected ADRs. Never treat it as a
replacement chain.
Choose the kind
Use --kind if the user gives it. Otherwise, apply the routing
test in "Three kinds of rule doc" in ../adr/SKILL.md. If the rule fits in
code, a lint, a test, or config, offer that and stop. If the kind is not
clear, ask with the three options. If the text mixes kinds, split it. Do
the steps below one time for each part.
- Policy or procedure: do the steps in "Policy or procedure" below.
- ADR: do the steps in "ADR procedure".
ADR procedure
- Check eligibility. Apply "When an ADR is warranted" in
../adr/SKILL.mdbefore you create files. If the concern does not qualify, explain briefly and stop. A run of this command does not establish eligibility. - Find the ADR folder and conventions. Read the index. If there is no
ADR folder, say so, offer
/bipbop-skills:adr-init, and stop. Note the numbering, and note if statuses are in frontmatter or inline. Next number = highest existing + 1. - Find its home. Read related ADRs by title, tags, and
paths. Apply "Keep the collection compact and current" in../adr/SKILL.md. First, update or consolidate existing records. Create a new record only for a separate concern. If an existing record already covers the concern fully, link to it and stop. - Write the draft from evidence, not memory. Sources, in order: the conversation
so far,
git diff/git diff --staged, the files touched. Fill:- Context: the situation that forces the decision, with
file:lineor commit evidence. - Decision: the qualifying design constraint and its scope. Link to code, tests, or configuration for implementation details. Do not copy them.
- Options considered: the chosen option plus the alternatives that the team actually discussed. Label each new alternative as a proposal, not a past decision.
- Consequences: good, bad, watch.
paths: the globs that the decision governs. Tight, not the whole repo.tags: two to four.
- Context: the situation that forces the decision, with
- Confirm missing intent before you write. Show the draft. Ask only
about decisions, rationale, or status that the session did not already confirm.
Do not infer a reason to fill the template. If the user confirms the qualifying decision
but its reason is not available, use
Rationale status: unknown. - Write the confirmed current text. Update existing ADRs in place. Create
NNNN-slug.mdonly if step 2 justified a new file. Use the repository template or${CLAUDE_PLUGIN_ROOT}/skills/adr/templates/adr-template.md, with no obsolete lifecycle metadata and noHistorysections. For a new file, use the next ID from step 1.dateis the current decision date.decidersis the known handle or empty. - Consolidate and remove obsolete content. Remove the redundant or inapplicable
ADRs that the confirmed change includes. Renumber the remaining records as necessary
to keep consecutive IDs. Before you rename, make one mapping from the original identities to the final
IDs. Apply it with no cascading replacements. Do not overwrite
files when you reuse a retired ID. Update filenames, frontmatter IDs, titles,
saved distillation-state IDs, and
@decisionreferences in the whole repository. Remove a reference when no applicable constraint remains. - Update the index. List only the remaining documents with their current titles, scope, date, status, and consecutive IDs.
- Offer
@decisiontags. List one to three code locations where an agent is most likely to break the decision (the entry point of the governedpaths, a config block, a boundary file). Ask before you add@decision ADR-NNNN: <one line>as a comment in the comment syntax of the file. Do not add tags without a yes. - Validate. Run
python3 "${CLAUDE_PLUGIN_ROOT}/skills/adr/scripts/validate-adrs.py". Fix the structural errors that it reports. Then report: files updated, created, or removed, status, references repaired, tags added, and if the decision is enforceable according to../adr/references/enforcement-by-stack.md(one sentence, no code unless the user asks). - Test with a fresh agent. Ask the user first: the test costs one subagent
run. Start a subagent with no context from this session. Give it a normal
task in the governed
pathsthat the rule must change, written as a user would ask for it. Do not name the doc, its kind, its ID, or the rule, so that the test does not lead the agent to the doc. Ask for a plan only, with no edits. Ask the agent to list the docs that constrain its plan.
- Pass: the agent finds the doc and its plan obeys the rule.
- Fail: the agent does not find the doc, breaks the rule, or follows an old
copy in a different file. Fix the cause (
paths, the index row, the title, a one-line pointer in an agent file, a restated copy) and test again, at most two times. Report the prompt that you used and the result.
Policy or procedure
- Find the folder. Use the folder that the repository uses for this kind.
Default:
docs/policies/ordocs/procedures/. If the folder does not exist, offer/bipbop-skills:adr-initand stop. - Find its home. Read the folder index. If a doc already covers the rule or task, update that doc. Do not restate a rule that a different doc holds. Link to that doc.
- Write the draft. Use the repository template, or
${CLAUDE_PLUGIN_ROOT}/skills/adr/templates/policy-template.mdorprocedure-template.md. The file name is kebab-case with no number, for exampleproduct-metrics.mdordeploy-backend.md. A procedure has numbered steps, a verify step, and a rollback step. Setlast_reviewedorlast_verifiedto today only when a person checked the content today. - Confirm. Show the draft. Ask for the owner and for each rule or step that
the session did not confirm. A policy that the user did not accept stays
proposed. - Write and index. Write the file. Add a row with a link to the folder index between its markers.
- Agent files. If
CLAUDE.mdorAGENTS.mdrestates the rule, offer to replace the text with one line that names the new doc. - Validate. Run
python3 "${CLAUDE_PLUGIN_ROOT}/skills/adr/scripts/validate-adrs.py". Fix the errors that it reports. Report the files that you changed. - Test with a fresh agent. Ask the user first: the test costs one subagent
run. Start a subagent with no context from this session. Give it a normal
task in the governed
pathsthat the rule must change, written as a user would ask for it. Do not name the doc, its kind, its ID, or the rule, so that the test does not lead the agent to the doc. Ask for a plan only, with no edits. Ask the agent to list the docs that constrain its plan.- Pass: the agent finds the doc and its plan obeys the rule.
- Fail: the agent does not find the doc, breaks the rule, or follows an old
copy in a different file. Fix the cause (
paths, the index row, the title, a one-line pointer in an agent file, a restated copy) and test again, at most two times. Report the prompt that you used and the result.
Pitfalls
- A rule with no tradeoff in an ADR. It is a policy.
- A procedure for a fixed sequence that a script can run. Offer the script.
- Several decisions in one conversation. Group related constraints by scope, update their existing homes, and keep unrelated concerns separate.
- The user describes an intention, not a decision that the team made. Write it as
proposed, notaccepted. - A change to an accepted decision needs the confirmation of the user and a rewrite of all affected current records, as the standing lifecycle says.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

