Skip to main content
skill CX Codex

recording-architecture-decisions — Claude Code skill

This skill decides when an architecture decision belongs in an ADR and checks whether the current-state baseline still matches the change.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a claude-code
Open on GitHub

What recording-architecture-decisions does

The skill evaluates a decision by asking whether it is hard to reverse, surprising without context, or tied to a real trade-off. It then selects one action: create, amend, supersede, or skip an ADR. For an executed durable decision, it also checks whether the architecture baseline needs a writeback.

Before writing, it reads the relevant parts of docs/adr/ADR-CREATION-GATE.md, docs/current/AEGIS_ADR_AUTO_BACKFILL.md, and the target project’s authority documents. When the owner surface is docs/aegis/adr/, the workflow uses the shared workspace helper for ADR creation, amendment, supersession, and the final check command.

This skill does not replace verification-before-completion or certify that the work is complete. After an ADR is created, amended, or superseded, the baseline decision must be made explicit: update it, create a snapshot, cite the unchanged state, or record a block.

What it helps with

  • decide whether an architecture change needs an ADR
  • choose whether to create, amend, supersede, or skip a record
  • sync the baseline after an architecture change
  • select the project-owned ADR surface
  • check ADR structure with the workspace helper

Example prompts for the agent

  • Decide whether changing the public API owner requires an ADR, then check the baseline.
  • Create an ADR for the accepted boundary change between method-pack and runtime-core.
  • Check whether the baseline is stale after changing the host compatibility strategy and record the result.

How to install recording-architecture-decisions

1Skills CLI (Vercel)

npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a claude-code

2Manually: put the files in place

~/.claude/skills/recording-architecture-decisions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/recording-architecture-decisions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about recording-architecture-decisions

How do I install recording-architecture-decisions in Claude Code?

Run npx skills add GanyuanRan/Aegis --skill recording-architecture-decisions -a claude-code, then check ~/.claude/skills/recording-architecture-decisions/SKILL.md.

What does recording-architecture-decisions do?

It evaluates whether an executed architecture decision should be recorded, selects the ADR action and owner surface, then checks baseline synchronization.

Does this skill certify that the work is complete?

No. It does not replace verification-before-completion and does not produce authoritative GateDecision or PolicySnapshot outputs.

Source text

SKILL.md · MIT
---
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."
---

# Recording Architecture Decisions

## Purpose

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.

## Required Read Set

Before deciding or writing, read the smallest relevant excerpts from:

- `docs/adr/ADR-CREATION-GATE.md`
- `docs/current/AEGIS_ADR_AUTO_BACKFILL.md`
- the target project's current ADR, baseline, or authority docs that own the
  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/`.

## When To Use

Use this skill when the user asks to:

- create, write, update, amend, supersede, or evaluate an ADR
- decide whether an architecture decision record is needed
- record a durable architecture decision or decision log entry
- close baseline sync after an ADR-relevant architecture change
- verify that an ADR action did not leave the architecture baseline stale

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.

## Decision Flow

1. Identify the decision candidate and evidence source.
2. Run the ADR creation gate:
   - hard to reverse
   - surprising without context
   - real trade-off
3. Apply the Retro / Memory Filter:
   - executed durable decisions may become ADR or baseline memory
   - unexecuted ideas stay out of accepted architecture memory
   - process notes may use a lighter record when they do not change current
     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.

## Helper-Backed Write Path

When the chosen owner surface is a target project's `docs/aegis/adr/`, use the
shared workspace helper instead of ad-hoc file creation:

- `create` -> `<aegis-workspace-helper> new-adr --root <target-project-root> ...`
- `amend` -> `<aegis-workspace-helper> amend-adr --root <target-project-root> --path docs/aegis/adr/ADR-####-<slug>.md ...`
- `supersede` -> `<aegis-workspace-helper> supersede-adr --root <target-project-root> --path docs/aegis/adr/ADR-####-<slug>.md ...`

After helper-backed writeback, run:

- `<aegis-workspace-helper> check --root <target-project-root>`

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.

## Baseline Sync Closure

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:

- canonical owner or ownership map
- public API, schema, artifact shape, or behavior contract
- dependency direction or allowed cross-module relationship
- source-of-truth owner
- host compatibility strategy or install/discovery contract
- method-pack/runtime-core boundary
- runtime-ready artifact boundary or evidence model
- retained fallback, adapter, compatibility path, duplicate owner, or retirement
  schedule
- accepted architecture-scoped Implementation Drift
- release or distribution strategy that future contributors would otherwise
  misread

If no baseline writeback is made, state why the existing baseline remains valid.
Never leave baseline sync implicit after create, amend, or supersede.

## Compact Output Contract

```text
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.
```

## Common Mistakes

- Writing an ADR because the topic feels important, even though the gate fails.
- Recording why in an ADR while leaving the baseline's current-state facts stale.
- Updating a baseline to match drift without first deciding whether the drift is
  intentional and ADR-worthy.
- Duplicating the same decision into both project `docs/adr/` and
  `docs/aegis/adr/` without an explicit mirror relationship.
- Treating an ADR or baseline sync as proof that the work is complete.

© GanyuanRan · MIT · GanyuanRan/Aegis

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set11

using-git-worktrees A skill that decides when a task really needs a separate Git worktree and when the current folder is enough. Keeps you from spawning extra checkouts. CX Codex +1 ★ 1,388repo stars ui-ux-governance A skill that gives the agent rules for interface work: how to pick flows, handle states and keep accessibility intact. CX Codex +1 ★ 1,388repo stars systematic-debugging This skill guides bug and test-failure investigations before code changes. Use it to trace a symptom to the logic that owns the cause. CX Codex +1 ★ 1,388repo stars subagent-driven-development Runs a written implementation plan by dispatching a fresh subagent for each task, then reviewing it twice: spec compliance first, code quality second. CX Codex +1 ★ 1,388repo stars goal-framing This skill defines a task goal, evidence of success, and boundaries before work begins. Use it when the agent needs a clear stop condition and a route for the task. CX Codex +1 ★ 1,388repo stars first-principles-review A short first-principles and Occam's-razor pass before your agent locks in a direction. Ordinary bug fixes skip it. CX Codex +1 ★ 1,388repo stars establishing-project-context Keeps domain terms in CONTEXT.md so people and agents call the same things by the same names. Useful when a term gets renamed, deprecated or overloaded. CX Codex +1 ★ 1,388repo stars communicating-concisely This skill makes agent replies more compact when asked, while preserving technical details. The style stays active until the user turns it off. CX Codex +1 ★ 1,388repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor