agentleFS
SpencerGossSpencerGoss/agent-engineering/decision-log/SKILL.md

decision-log

Skill0 starsChanged 5 months agoMITView on GitHub

Use when choosing between named alternatives (libraries, tools, algorithms, schemas, approaches), when making an architectural decision that has lasting consequences, when the user asks "should we use X or Y", "which approach is better", or "why did we choose X", or when you pick one option over another for non-obvious reasons. Trigger whenever a choice is made that future work would need to understand. For progress logging of completed work (what was built, TODOs), use a project journal instead. This skill = decision rationale storage for lasting architectural choices.

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use product-brief, retrospective and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • erik-kroonSkill

    product-brief

    Turn conversation context, codebase findings, and product intent into a PRD-style brief without assuming a specific issue tracker. Use when the user wants a PRD, product brief, feature spec, or implementation-ready product artifact.

    Also in 3 projects that use this

  • MicrosoftSkill

    retrospective

    Review how work went and improve the next round. USE WHEN asked for a retro, delays, or process lessons. DO NOT USE for code review or transcript replay.

    Also in 4 projects that use this

  • OpenAISkill

    meeting-prep

    Use when creating Public Equity Investing meeting prep briefs. Do not use for private diligence, IB, FP&A, legal, or scheduling-only tasks.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    test

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a related decision already exists, update it rather than creating a duplicate.

    line 54
  2. Very specific:

    If DECISIONS.md does not exist, create it with this header first:

    line 59
  3. Distinctive:

    If the decision is significant, mention it in the project's build log / journal so progress tracking points back at the rationale:

    line 102
  4. Distinctive:

    NOT for logging daily progress or completed work — use a project journal / build log instead.

    line 138
  5. Distinctive:

    NOT for capturing reusable debugging insights — capture those as a separate engineering/lessons note instead.

    line 139
  6. Distinctive:

    NOT for planning or designing features from scratch — use spec-driven-dev.

    line 140
  7. Distinctive:

    NEVER use this for trivially reversible preferences that don't affect architecture.

    line 141

“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “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

Hard Rules

  • Only log decisions future work would need to understand. Trivially reversible preferences (formatting, naming taste, one-off config values) do not get logged. A constrained, lasting, architectural choice does.
  • Never log a decision without its alternatives. The Alternatives Considered section is the most valuable part of the record. A decision with no alternatives is just a statement and provides no future value.
  • Rationale must name a specific tradeoff. "It was better" is not rationale. Name the concrete reason this option won (e.g. lower operational overhead, no added dependency, matches existing skills).
  • A reversed decision must be marked Superseded, not deleted. Add a new entry explaining the reversal and link the two. The history of why a choice changed is itself load-bearing.
  • The log only has value if it is read. Consult it at the start of work and whenever a settled topic is re-opened — otherwise the same decisions get re-litigated from scratch.

Decision Log

Prevents re-litigating past decisions every few work sessions. Writes architectural and design decisions to a single DECISIONS.md file with rationale, the alternatives considered, and the conditions that would trigger revisiting the choice. Without this, the same decisions get re-made from scratch repeatedly, often inconsistently.

Canonical persistence: one markdown file, DECISIONS.md, at the project root, append-only, newest entries at the bottom. No database, no external store — a plain file any future session or teammate can read.


Steps

1. Identify the Decision

  • State what is being decided in one sentence: "Choosing X over Y for [purpose]."
  • Is this a lasting decision that would affect future code or architecture? If no — skip this skill.
  • Is it a constrained choice or just a preference? Preferences don't need logging; constrained choices do.

2. Check DECISIONS.md for an Existing Entry

[ -f DECISIONS.md ] && grep -i "[keyword from decision]" DECISIONS.md || echo "No existing entry"

If a related decision already exists, update it rather than creating a duplicate. Change the old entry's Status to Superseded and link it to the new entry.

3. Write the Decision Entry

If DECISIONS.md does not exist, create it with this header first:

# Project Decisions

Architectural and design decisions made in this project, with rationale and alternatives.
Consult this before re-opening settled questions.

---

Then append the new entry:

## [Short Decision Title]
Date: [DATE]
Status: Active

### Decision
[One sentence: what was decided]

### Context
[1-2 sentences: why this decision was needed, what problem it solves]

### Alternatives Considered
- **[Option A]**: [why rejected or not chosen]
- **[Option B]**: [why rejected or not chosen]
- **[Chosen option]**: [why this was selected]

### Rationale
[2-3 sentences: the reasoning that led to this choice]

### Consequences
- What becomes easier: [...]
- What becomes harder: [...]
- What this locks us into: [...]

### Revisit If
[What circumstances would cause a re-evaluation of this decision]

4. Reference in the Project Journal (optional)

If the decision is significant, mention it in the project's build log / journal so progress tracking points back at the rationale:

Decision logged: [title]

5. Confirm

Tell the user:

"Logged to DECISIONS.md: [title]. Read DECISIONS.md to review all logged decisions."


Skill Chain

StageSkill
Before (evaluating options)spec-driven-dev — planning may surface decisions to log
Stress-testing the choice firstdevil-advocate — argue against the preferred option before committing
Wide solution space, no obvious winnerjudge-panel — run competing attempts, then log the winner here
This skilldecision-log — write the decision to DECISIONS.md
After (session end)commit DECISIONS.md alongside the rest of the session's changes

Trigger Conditions

  • Choosing between named alternatives — libraries, tools, algorithms, schemas, data models, or approaches.
  • Making an architectural or design decision with lasting consequences.
  • The user asks "should we use X or Y", "which approach is better", or "why did we choose X".
  • You pick one option over another for a non-obvious reason that a future session would otherwise re-question.

Out of Scope

  • NOT for logging daily progress or completed work — use a project journal / build log instead.
  • NOT for capturing reusable debugging insights — capture those as a separate engineering/lessons note instead.
  • NOT for planning or designing features from scratch — use spec-driven-dev.
  • NEVER use this for trivially reversible preferences that don't affect architecture.

Common Traps

  • Logging every tiny choice — only log decisions future work would need to understand. Skip obvious or trivially reversible ones; the log loses signal if it fills with noise.
  • Logging without alternatives — the Alternatives Considered section is the most valuable part. A decision without alternatives is just a statement. Never skip it.
  • Never reading DECISIONS.md — the file has no value if it isn't consulted. Reference it at the start of work and whenever a topic from it is re-opened.
  • Stale "Active" status — decisions that have been reversed must be updated to Status: Superseded with a new entry explaining the reversal.
  • Vague rationale — "it was better" is not rationale. Name the specific tradeoff that made this option win (e.g. lower operational overhead, no additional dependency, matches existing team skills).

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.