anti-entropy-governanc…
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth…
Use when the user asks to create, write, update, amend, supersede, or evaluate an ADR, architecture decision record, durable architecture decision, decision log, or baseline sync after architecture-changing work.
Claude Code
$ npx -y skills add GanyuanRan/Aegis --skill recording-architecture-decisions --agent claude-code
Codex
$ npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a codex -y
Cursor
$ npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a cursor -y
Gemini CLI
$ npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a gemini-cli -y
GitHub Copilot
$ npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a github-copilot -y
OpenCode
$ npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a opencode -y
Windsurf
$ npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a windsurf -y
name: recording-architecture-decisions description: "Use when the user asks to create, write, update, amend, supersede, or evaluate an ADR, architecture decision record, durable architecture decision, decision log, or baseline sync after architecture-changing work."
Record durable architecture decisions without losing the current-state baseline closure. An ADR records why a decision was made; a baseline records what the architecture is after that decision.
This skill is a lazy, task-specific workflow. It does not replace `verification-before-completion`, does not grant completion authority, and does not make authoritative `GateDecision` or `PolicySnapshot` outputs.
Before deciding or writing, read the smallest relevant excerpts from:
affected architecture surface
For Aegis repository changes, use this repository's `docs/adr/` and `docs/current/` authority order. For target projects with their own ADR system, respect that project owner instead of duplicating the same decision into `docs/aegis/adr/`.
Use this skill when the user asks to:
Do not use it for simple wording edits, ordinary README cleanup, tests-only coverage improvements, low-risk single-file changes, or bug fixes that only restore the existing baseline.
1. Identify the decision candidate and evidence source. 2. Run the ADR creation gate:
3. Apply the Retro / Memory Filter:
architecture state 4. Choose exactly one ADR action: create, amend, supersede, or skip. 5. Choose the owner surface: project `docs/adr/`, `docs/aegis/adr/`, existing ADR, or lighter record. 6. Run Baseline Sync Closure. 7. If writing files, preserve local ADR conventions and verify structure.
When the chosen owner surface is a target project's `docs/aegis/adr/`, use the shared workspace helper instead of ad-hoc file creation:
After helper-backed writeback, run:
The helper owns file shape, ADR numbering, supersession markers, and `INDEX.md` coverage only. It does not decide architecture truth, whether the ADR gate passed, or whether baseline sync is semantically sufficient.
If the ADR gate or owner-surface decision says `skip`, do not create or amend ADR files just because the helper exists. An ADR signal in a design/plan is a note for later completion, not an ADR file. Create/amend/supersede an ADR only for an executed durable decision; if an existing ADR already covers the decision surface, amend it instead of creating a sibling.
If the ADR action is create, amend, or supersede, baseline sync must be checked.
Baseline sync is required when the decision changes or confirms any of:
schedule
misread
If no baseline writeback is made, state why the existing baseline remains valid. Never leave baseline sync implicit after create, amend, or supersede.
Aegis Visibility: - Why executed-decision filtering, ADR gate, owner surface, or baseline sync matters now: Decision Candidate: - Summary: - Evidence source: ADR Gate: - Hard to reverse: yes | no | unknown - Surprising without context: yes | no | unknown - Real trade-off: yes | no | unknown Retro / Memory Filter: - Classification: executed durable decision | unexecuted idea | process note - Memory action: record | skip | lighter record - Reason: ADR Action: - create | amend | supersede | skip - Reason: Owner Surface: - Target: - Existing ADR / baseline checked: Baseline Sync: - Required: yes | no | unknown - Target: - Action: create snapshot | update baseline | cite unchanged | blocked - Reason: Boundary: - Advisory method-pack signal only; not completion authority.
intentional and ADR-worthy.
`docs/aegis/adr/` without an explicit mirror relationship.
Aegis Method Pack Make your AI coding agent trustworthy: fewer reworks, safer changes, proof before "done". English · 中文 · Fast-Track Playbook · 速通秘籍 Stop babysitting your agent.
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth…
Use when defining ambiguous or high-complexity new features, product behavior, UI/component design, architecture choices,…
Use when the user asks for caveman mode, fewer tokens, brief responses, compressed communication, or otherwise explicitly…
Use when facing 2+ independent tasks without a written plan, with no conflicting shared mutable state or sequential dependencies,…
Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain…
Use when executing a written implementation plan across sessions or with review checkpoints. Small or single-slice plans stay…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.