adr-amend
Skill2 starsChanged 9 days agoMITView on GitHub
Amend, refine, or record an architectural change to an existing ADR in docs/adr/. TRIGGER THIS SKILL when user mentions: amend adr, modify adr, change adr, update adr, create amendment, propose adr change, adr amendment, technical analysis for adr, impact analysis adr.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adr-createSkill
- adr-review-alternativesSkill
- adr-validateSkill
- agents-maintainerSkill
- audit-docsSkill
- explore-domainSkill
- sdlc-guideSkill
- setup-sdlcSkill
- inception-workshopSkill
- prd-workshopSkill
- user-story-mappingSkill
- modify-flowSkill
- reverse-engineer-domainSkill
- create-moduleSkill
- implement-flowSkill
- create-entity-lifecycleSkill
- create-featuresSkill
- create-flow-documentationSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 73
Add a row in the Quick Reference table beneath the base ADR.
- Distinctive: line 75
Update category listings and increment the total count in statistics.
- Distinctive: line 80
Before ending your turn, verify every item below with concrete evidence (not just a checkmark).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
PROTOCOL: ADR-AMEND (EXECUTION LEVEL 3)
<state_machine>
CURRENT_STEP -> REQUIRED_TOOL -> REQUIRED_OUTPUT -> MANDATORY_HALT
Step 1: Locate Base -> read_file(docs/adr/0XX-*.md) -> Target ADR & amendment sequence number (0XX-01-*) -> Continue to Step 2
Step 2: Write Amend -> read_file(templates/TEMPLATE-AMENDMENT.md) -> Non-destructive amendment file in docs/adr/ -> Continue to Step 3
Step 3: Two-Way Link -> edit_file (base ADR header) -> Amends: + Amended By: bidirectional links -> Continue to Step 4
Step 4: Sync Catalog -> edit_file (docs/adr/README.md) -> Updated Quick Reference, categories, and count -> 🛑 HALT TURN (Present amendment)
</state_machine>
<execution_invariants>
- WORKFLOW IMMUTABILITY: Execute all 4 steps in strict order (
workflow structure = immutable | step reasoning = flexible). - NON-DESTRUCTIVE GOLDEN RULE: Never silently edit or overwrite an accepted ADR's historical body. Any modification must be a separate file (
0XX-01-*-amendment-*.mdor0XX-02-*-analysis-*.md), with only theAmended By:link added to the base ADR's header. - TEMPLATE LOCK: Reconstructing template headers from memory is strictly forbidden. You MUST call
read_fileontemplates/TEMPLATE-AMENDMENT.md(ortemplates/TEMPLATE-ANALYSIS.md) before writing. - ESCAPE HATCH: If the situation does not fit the contract, do not silently improvise and do not force-fit: declare the deviation in one line and ask. </execution_invariants>
<output_contract>
- TARGET_PATH:
docs/adr/0XX-01-{topic}-amendment-{type}.md(or0XX-02-{topic}-analysis-{subtype}.md) - SOURCE_TEMPLATE:
templates/TEMPLATE-AMENDMENT.mdortemplates/TEMPLATE-ANALYSIS.md(MUST callread_filebefore writing) - SCHEMA_INVARIANCE: Preserve every section heading and metadata field from the template verbatim.
- ESCAPE_HATCH: Never silently omit or invent template sections. If a section genuinely does not apply, preserve the heading and write
"N/A — [1-line rationale]", or halt and ask the user before deviating. </output_contract>
📋 Step-by-Step Workflow
1. Identify Target ADR & Sequence
- Locate the target ADR in
docs/adr/(e.g.,docs/adr/016-dependency-injection-strategy-for-nextjs.md). - Determine the file type and sequence number:
- Amendment:
docs/adr/0XX-01-{topic}-amendment-{type}.md(e.g.,016-01-controller-factory-di-amendment.md). - Technical Analysis:
docs/adr/0XX-02-{topic}-analysis-{subtype}.md(e.g.,002-02-use-supabase-analysis-vendor-lock-in.md). - Impact Analysis:
docs/adr/0XX-04-{topic}-impact-analysis.md(when a change has ripple effects on other ADRs).
- Amendment:
2. Draft the Amendment or Analysis
Complete the exact sections in templates/TEMPLATE-AMENDMENT.md (or templates/TEMPLATE-ANALYSIS.md):
- For an Amendment (
templates/TEMPLATE-AMENDMENT.md):- Header Metadata:
* **Status:** Proposed Amendment(orApproved),* **Date:**,* **Decision Makers:**,* **Amends:** [ADR-0XX: Original Title](0XX-original-filename.md),* **Related:**. ## Purpose of This Amendment: Why this amendment is needed (new information, production experience, or requirement changes).## Critical Updates to ADR-0XX: Numbered### Update N: [Topic of Update]subsections contrasting* **Original ADR-0XX stated:**with* **Correction/New Analysis:**.## Revised Decision Options: Compare### Option 1: Keep Original Decision As-Isagainst### Option X: [Amended/Hybrid Option Title](Description,Pros,Cons,When to use).## Revised Consequences: Delta impact per option (### If We Choose Option 1,### If We Choose Option X).## 🤖 AI & Agentic Ergonomics (AX):* **LLM Corpus Alignment:**,| Expected Agent Bias | Automated Guardrail |table, and* **Supervision & Guardrail Tax:**.## Revised Decision Outcome:### Updated Recommendation(Option Chosen,Justification,Migration Path).## Updated Links: Supersedes/Updates, Related Documents, Reference Implementation.
- Header Metadata:
- For a Technical Analysis (
templates/TEMPLATE-ANALYSIS.md):- Complete
## Context and Problem Statement,## Considered Alternatives,## Comparison Matrix,## Decision Outcome,## Consequences,## 🤖 AI & Agentic Ergonomics (AX),## Recommendations,## Migration Path,## Links,## Discussion Questions, and## Decision.
- Complete
3. Establish Mandatory Two-Way Links
Both documents must reference each other to preserve navigation:
- In the Amendment file header:
**Amends:** [ADR-0XX: Original Title](0XX-original-decision.md) - In the Base ADR file header:
**Amended By:** [ADR-0XX-01: Amendment Title](0XX-01-topic-amendment-type.md)
4. Update Catalog & Index
- Update
docs/adr/README.md:- Add a row in the Quick Reference table beneath the base ADR.
- Note the status (e.g.,
✅ Approvedfor the amendment; if the base ADR is superseded, update the base status to⚠️ Superseded). - Update category listings and increment the total count in statistics.
<self_validation_gate> Before ending your turn, verify every item below with concrete evidence (not just a checkmark). If any item cannot be cited with real evidence from this turn, DO NOT produce your final response — fix the violation first:
- Template Read Evidence: Exact path passed to
read_file(templates/TEMPLATE-AMENDMENT.mdortemplates/TEMPLATE-ANALYSIS.md):<path> - Non-Destructive Evidence: Base ADR path (
docs/adr/0XX-*.md) whose historical body was preserved untouched:<path> - Two-Way Links Evidence:
Amends:link in new file (<path>) +Amended By:link added to base ADR header (<path>). - Catalog Sync & Escape-Hatch Evidence:
docs/adr/README.mdrow added, count incremented, and any"N/A — [rationale]"sections explicitly noted. </self_validation_gate>
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.

