agentleFS
NITISH-R-GNITISH-R-G/agent-memory-protocol/skills/decision-log/SKILL.md

decision-log

Skill1 starsChanged 3 months agoMITView on GitHub

Record significant architectural or design decisions to .memory/decisions/ in a consistent, ADR-style format, capturing the alternatives considered and why they were rejected — not just the choice made. Use whenever a non-trivial design or architectural decision is made, especially one with real alternatives that were seriously considered and rejected.

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use product-brief, pre-mortem and 10 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

  • Ingramradical235Skill

    pre-mortem

    Pre-mortem analysis, scenario planning, future state narratives, and contingency frameworks. Use before finalizing any Strategy Kernel, when planning major initiatives, or when preparing Plan B triggers.

    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

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    When a decision settles into something that's now just "how this project works" rather than an active choice being defended, its conclusion …

    line 55

“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

Decision Log

Relationship to architecture-decision elsewhere in this skill ecosystem: that skill covers authoring a full Architecture Decision Record as a standalone practice. This skill is the same underlying discipline, specifically wired into the .memory/ system's file layout and lifecycle — if a project already uses architecture-decision, point its output at .memory/decisions/ rather than maintaining two separate decision-tracking locations.

Why the rejected alternatives matter more than the choice

The single most valuable thing a decision record can prevent is a future session — possibly in a different tool, possibly months later — re-proposing an approach that was already tried and specifically rejected, for reasons that are no longer visible anywhere except someone's memory of a conversation that's now gone. A decision record that states only the final choice, with no record of what else was considered, doesn't actually prevent this.

Format

# 0012: Extract TokenService from auth middleware

## Status
Accepted

## Context
Auth middleware was handling three unrelated concerns: request validation, token refresh,
and session logging. Token refresh logic specifically needed dedicated test coverage that
was hard to get at while it was inline.

## Decision
Extract token refresh into a dedicated TokenService class, injected into the middleware
rather than implemented inline.

## Alternatives considered and rejected
- **Keep inline, extract a helper function**: reduced duplication but didn't solve the
  testability problem — the helper still required the full middleware request/response
  cycle to invoke in tests.
- **Move refresh logic to a separate middleware layer instead of a service class**:
  would have required restructuring the middleware chain order, higher-risk change for
  the same benefit a service class gets more simply.

## Consequences
- TokenService now needs its own test suite (separate from middleware integration tests)
- Open question not yet resolved: whether TokenService owns its refresh-interval config
  or receives it injected — tracked separately, see checkpoints/2026-08-01T14-30-00.md

Numbering and filing

Sequential numbers (0001, 0002, ...) in .memory/decisions/, one file per decision — this mirrors the classic ADR convention deliberately, since it's a well-understood, portable format any developer or agent recognizes without needing this system's specific documentation to interpret it.

When a decision gets revisited or reversed

Don't edit the original record to erase what it used to say. Add a new decision record that explicitly supersedes the old one, with a note in the old record pointing to the new one (Status: Superseded by 0018). The history of changing your mind about something is itself valuable memory — silently rewriting 0012 to reflect a later reversal destroys exactly the kind of context this whole system exists to preserve.

Feeding the semantic layer

When a decision settles into something that's now just "how this project works" rather than an active choice being defended, its conclusion (not its full reasoning) should also be reflected in .memory/semantic/architecture.md — see memory-consolidation for when and how that promotion happens.

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.