engineering-decision
Skill15 starsChanged 5 days agoMITView on GitHub
Records, updates, and supersedes engineering and architectural decisions in docs/decision/ as numbered Markdown files (ADRs) with bidirectional lifecycle tracking. Use when making technical trade-offs, choosing architectures, databases, or libraries, changing or canceling a prior decision, or auditing past architectural choices.
In this repository14 other files it gives its agents.
- agent-instruction-auditSkill
- agent-tool-auditSkill
- changes-verificationSkill
- cheap-ui-auditSkill
- code-reviewSkill
- create-prSkill
- debuggingSkill
- formal-verificationSkill
- micro-animationSkill
- optimistic-uiSkill
- optimize-ciSkill
- oxlint-setupSkill
- test-auditSkill
- zstack-modeSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Always inspect docs/decision/ before creating a new record so you know every active decision and the next sequence number.
- Very specific: line 29
Never reuse numbers from Superseded, Deprecated, or Canceled records.
- Very specific: line 33
Every decision action MUST account for existing records in docs/decision/:
- Very specific: line 35
Inspect existing decisions first: Run scripts/adr.sh list (or read all files in docs/decision/) before proposing or writing a new decision …
- Distinctive: line 54
Read any active, proposed, or overlapping decision files in full.
- Very specific: line 61
Update affected prior records: If replacing, deprecating, or canceling an older decision, update its metadata header and add a brief status …
- Very specific: line 62
Update index if present: If docs/decision/README.md exists, add the new entry and sync any changed statuses.
- Distinctive: line 75
Keep each ADR scoped to a single decision.
≈ “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
Engineering Decision
Record significant engineering and architectural decisions as zero-padded sequential Markdown files under docs/decision/ while maintaining full awareness of prior decisions and bidirectional lifecycle links.
When to Use
- Making a technical, architectural, data-model, or tooling decision
- Evaluating trade-offs between multiple engineering approaches
- Reversing, canceling, deprecating, or superseding a prior decision
- Checking existing architectural constraints before proposing a design change
Directory & Naming Convention
Store every decision record in docs/decision/ using a 4-digit zero-padded sequence number and a descriptive kebab-case slug:
docs/decision/
├── 0001-use-postgresql-for-primary-storage.md
├── 0002-adopt-cursor-based-pagination.md
└── 0003-migrate-auth-to-short-lived-jwt.md- Always inspect
docs/decision/before creating a new record so you know every active decision and the next sequence number. - Never reuse numbers from
Superseded,Deprecated, orCanceledrecords.
Lifecycle & Bidirectional Awareness Rules
Every decision action MUST account for existing records in docs/decision/:
- Inspect existing decisions first: Run
scripts/adr.sh list(or read all files indocs/decision/) before proposing or writing a new decision so you do not contradict active decisions or repeat rejected options without new context. - Use strict status values:
Proposed— Under discussion, not yet finalized.Accepted— Active decision currently in effect.Superseded— Replaced by a newer decision (must link forward).Deprecated— No longer recommended, pending replacement or removal.Canceled— Withdrawn or rejected before or after implementation (document why).
- Maintain bidirectional links on status changes:
- In the new record, link back to the prior record (
Supersedes: [0001-...](./0001-...)orRelated: [0002-...](./0002-...)). - In the prior record, update
StatustoSuperseded(orDeprecated/Canceled) and setSuperseded by: [0004-...](./0004-...)with a brief reason. Never delete historical decision files.
- In the new record, link back to the prior record (
Execution Workflow
Resolve <skill-dir> to the directory containing this SKILL.md.
- List existing decisions:
Read any active, proposed, or overlapping decision files in full.bash <skill-dir>/scripts/adr.sh list - Check for conflicts or supersession: Determine whether the new decision extends, supersedes, deprecates, or cancels an existing record.
- Scaffold the next numbered ADR:
Fill in all sections (bash <skill-dir>/scripts/adr.sh new "Use PostgreSQL for primary storage"Context,Decision,Alternatives Considered,Consequences) followingreferences/adr-template.md. - Update affected prior records: If replacing, deprecating, or canceling an older decision, update its metadata header and add a brief status note (see
references/adr-template.mdfor the exact format). - Update index if present: If
docs/decision/README.mdexists, add the new entry and sync any changed statuses.
Red Flags
- Recording an architectural decision only in chat or inline code comments instead of
docs/decision/ - Creating a new ADR without listing and reading existing files in
docs/decision/ - Leaving a replaced decision marked
Accepted - Deleting a canceled or superseded ADR file instead of updating its status
- Using vague slugs like
0004-update.mdinstead of a descriptive title
Gotchas
- Preserve historical records as immutable context (only update their status metadata and add a short status note when superseded or canceled).
- Keep each ADR scoped to a single decision; split unrelated architectural choices into separate numbered files.
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.

