agentleFS
BipBop-LabsBipBop-Labs/bipbop-skills/skills/adr-new/SKILL.md

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

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. cahenesy/throughline★ 3same name
    2. 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.

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
  1. Very specific:

    Use --kind if the user gives it.

    line 21
  2. Distinctive:

    Policy or procedure: do the steps in "Policy or procedure" below.

    line 27
  3. Distinctive:

    ADR: do the steps in "ADR procedure".

    line 28
  4. Very specific:

    Find the ADR folder and conventions: Read the index. If there is no ADR folder, say so, offer /bipbop-skills:adr-init, and stop.

    line 36
  5. Very specific:

    Find its home: Read related ADRs by title, tags, and paths.

    line 40
  6. Distinctive:

    If an existing record already covers the concern fully, link to it and stop.

    line 43
  7. Very specific:

    Do not infer a reason to fill the template.

    line 56
  8. Very specific:

    Write the confirmed current text: Update existing ADRs in place.

    line 58
  9. Distinctive:

    Consolidate and remove obsolete content: Remove the redundant or inapplicable ADRs that the confirmed change includes.

    line 64
  10. Distinctive:

    Do not add tags without a yes.

    line 77
  11. Very specific:

    Test with a fresh agent: Ask the user first: the test costs one subagent run.

    line 84
  12. Distinctive:

    Ask the agent to list the docs that constrain its plan.

    line 89
  13. Very specific:

    Find the folder: Use the folder that the repository uses for this kind.

    line 99
  14. Very specific:

    Default: docs/policies/ or docs/procedures/.

    line 100
  15. Distinctive:

    Find its home: Read the folder index. If a doc already covers the rule or task, update that doc.

    line 102
  16. Very specific:

    Write the draft: Use the repository template, or ${CLAUDE_PLUGIN_ROOT}/skills/adr/templates/policy-template.md or procedure-template.md.

    line 105
  17. Distinctive:

    Write and index: Write the file. Add a row with a link to the folder index between its markers.

    line 114
  18. Distinctive:

    Agent files: If CLAUDE.md or AGENTS.md restates the rule, offer to replace the text with one line that names the new doc.

    line 116

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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

  1. Check eligibility. Apply "When an ADR is warranted" in ../adr/SKILL.md before you create files. If the concern does not qualify, explain briefly and stop. A run of this command does not establish eligibility.
  2. 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.
  3. 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.
  4. 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:line or 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.
  5. 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.
  6. Write the confirmed current text. Update existing ADRs in place. Create NNNN-slug.md only 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 no History sections. For a new file, use the next ID from step 1. date is the current decision date. deciders is the known handle or empty.
  7. 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 @decision references in the whole repository. Remove a reference when no applicable constraint remains.
  8. Update the index. List only the remaining documents with their current titles, scope, date, status, and consecutive IDs.
  9. Offer @decision tags. List one to three code locations where an agent is most likely to break the decision (the entry point of the governed paths, 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.
  10. 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).
  11. 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 paths that 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

  1. Find the folder. Use the folder that the repository uses for this kind. Default: docs/policies/ or docs/procedures/. If the folder does not exist, offer /bipbop-skills:adr-init and stop.
  2. 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.
  3. Write the draft. Use the repository template, or ${CLAUDE_PLUGIN_ROOT}/skills/adr/templates/policy-template.md or procedure-template.md. The file name is kebab-case with no number, for example product-metrics.md or deploy-backend.md. A procedure has numbered steps, a verify step, and a rollback step. Set last_reviewed or last_verified to today only when a person checked the content today.
  4. 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.
  5. Write and index. Write the file. Add a row with a link to the folder index between its markers.
  6. Agent files. If CLAUDE.md or AGENTS.md restates the rule, offer to replace the text with one line that names the new doc.
  7. Validate. Run python3 "${CLAUDE_PLUGIN_ROOT}/skills/adr/scripts/validate-adrs.py". Fix the errors that it reports. Report the files that you changed.
  8. 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 paths that 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, not accepted.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.