agentleFS
manastalukdarmanastalukdar/ai-devstudio/skills/decision-log/SKILL.md

decision-log

Skill1 starsChanged 7 months agoMITView on GitHub

Record architectural and design decisions as structured ADR files in docs/decisions/, with auto-indexing and link suggestions to related decisions

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 5 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

  • HashiCorpSkill

    changelog

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

    Also in 3 projects that use this

  • photon-groveSkill

    unslop

    Detects and rewrites generic, overly polished, or AI-sounding prose while preserving meaning. Use when the user asks to "unslop", humanize, de-AI, tighten, or review whether writing sounds generated.

    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, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After creating the ADR, search for related decisions:

    line 105

“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

Persist design and architectural decisions as ADR (Architecture Decision Record) files.

Arguments: $ARGUMENTS - decision title or description, or list to show all decisions, or search <term> to find related decisions

Behavior

1. Route by Mode

# Detect mode from arguments
if [[ "$ARGUMENTS" == "list" ]]; then
  ls -t docs/decisions/*.md 2>/dev/null | head -20 || echo "No decisions recorded yet."
  exit 0
fi

if [[ "$ARGUMENTS" == search* ]]; then
  TERM="${ARGUMENTS#search }"
  grep -rn "$TERM" docs/decisions/ 2>/dev/null | head -20
  exit 0
fi

2. Initialize Decisions Directory

mkdir -p docs/decisions

# Check for existing ADRs to get next sequence number
LAST=$(ls docs/decisions/*.md 2>/dev/null | grep -o '[0-9]\{4\}' | sort -n | tail -1)
NEXT=$(printf "%04d" $(( ${LAST:-0} + 1 )))
DATE=$(date +%Y-%m-%d)

3. Generate ADR File

Filename: docs/decisions/NNNN-<slugified-title>.md

# NNNN. [Decision Title]

**Date**: YYYY-MM-DD
**Status**: Proposed | Accepted | Rejected | Deprecated | Superseded by [NNNN]
**Deciders**: [names or teams]

## Context

[What is the issue motivating this decision? What forces are at play — technical, business, schedule?
Include relevant constraints. 2-4 sentences.]

## Decision

[The change being proposed or that was made. State it as a full sentence starting with "We will..."]

## Alternatives Considered

### Option A: [Name] (chosen)
- Pros: ...
- Cons: ...

### Option B: [Name]
- Pros: ...
- Cons: ...
- Reason rejected: ...

## Consequences

**Positive**: [benefits that follow from this decision]

**Negative**: [tradeoffs, risks, or things that become harder]

**Neutral**: [side effects that are neither good nor bad]

## Related Decisions
[Links to superseded or related ADRs]

4. Update Index

# Maintain docs/decisions/README.md as an index
INDEX="docs/decisions/README.md"

if [ ! -f "$INDEX" ]; then
  echo "# Decision Log" > "$INDEX"
  echo "" >> "$INDEX"
  echo "| # | Title | Status | Date |" >> "$INDEX"
  echo "|---|-------|--------|------|" >> "$INDEX"
fi

# Append new entry
echo "| $NEXT | [$TITLE]($FILENAME) | Proposed | $DATE |" >> "$INDEX"

5. Link Suggestions

After creating the ADR, search for related decisions:

# Find thematically related decisions
KEYWORDS=$(echo "$ARGUMENTS" | tr ' ' '\n' | grep -v '^.\{,3\}$')  # words > 3 chars
for kw in $KEYWORDS; do
  grep -li "$kw" docs/decisions/*.md 2>/dev/null
done | sort -u | grep -v "$FILENAME"

Report: "Related decisions that may be relevant: [list]"

6. Git Checkpoint

# Stage the new ADR (do not commit — user must explicitly request)
git add docs/decisions/
echo "ADR staged. Review with: git diff --staged"
echo "Commit with: git commit -m 'docs(decisions): add $NEXT - $TITLE'"

Examples

/decision-log "use PostgreSQL instead of MongoDB for primary storage"
/decision-log "adopt event sourcing for the orders domain"
/decision-log list
/decision-log search authentication

Output

Decision recorded: docs/decisions/0007-use-postgresql-for-primary-storage.md
Index updated:     docs/decisions/README.md

Related decisions:
  0003-database-connection-pooling.md
  0005-orm-selection.md

Staged for commit. Review: git diff --staged

Token Optimization

Expected range: 200–500 tokens (new decision), 100–200 tokens (list/search)

Early exit: list and search modes return immediately from filesystem without LLM generation.

Bash for system queries: Uses ls and grep to find sequence numbers and related files — no file reads needed.

Patterns used: Early exit, Bash for system queries, template-based generation

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.