agentleFS
indrazmindrazm/personal-skills/skills/engineering-decision/SKILL.md

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.

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

    Always inspect docs/decision/ before creating a new record so you know every active decision and the next sequence number.

    line 28
  2. Very specific:

    Never reuse numbers from Superseded, Deprecated, or Canceled records.

    line 29
  3. Very specific:

    Every decision action MUST account for existing records in docs/decision/:

    line 33
  4. Very specific:

    Inspect existing decisions first: Run scripts/adr.sh list (or read all files in docs/decision/) before proposing or writing a new decision …

    line 35
  5. Distinctive:

    Read any active, proposed, or overlapping decision files in full.

    line 54
  6. Very specific:

    Update affected prior records: If replacing, deprecating, or canceling an older decision, update its metadata header and add a brief status …

    line 61
  7. Very specific:

    Update index if present: If docs/decision/README.md exists, add the new entry and sync any changed statuses.

    line 62
  8. Distinctive:

    Keep each ADR scoped to a single decision.

    line 75

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

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, or Canceled records.

Lifecycle & Bidirectional Awareness Rules

Every decision action MUST account for existing records in docs/decision/:

  1. Inspect existing decisions first: Run scripts/adr.sh list (or read all files in docs/decision/) before proposing or writing a new decision so you do not contradict active decisions or repeat rejected options without new context.
  2. 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).
  3. Maintain bidirectional links on status changes:
    • In the new record, link back to the prior record (Supersedes: [0001-...](./0001-...) or Related: [0002-...](./0002-...)).
    • In the prior record, update Status to Superseded (or Deprecated / Canceled) and set Superseded by: [0004-...](./0004-...) with a brief reason. Never delete historical decision files.

Execution Workflow

Resolve <skill-dir> to the directory containing this SKILL.md.

  1. List existing decisions:
    bash <skill-dir>/scripts/adr.sh list
    Read any active, proposed, or overlapping decision files in full.
  2. Check for conflicts or supersession: Determine whether the new decision extends, supersedes, deprecates, or cancels an existing record.
  3. Scaffold the next numbered ADR:
    bash <skill-dir>/scripts/adr.sh new "Use PostgreSQL for primary storage"
    Fill in all sections (Context, Decision, Alternatives Considered, Consequences) following references/adr-template.md.
  4. 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.md for the exact format).
  5. Update index if present: If docs/decision/README.md exists, 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.md instead 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.

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.