agentleFS
yacb2yacb2/aidex/skills/decision/SKILL.md

decision

Skill2 starsChanged 2 months agoMITView on GitHub

Use when the user has made an architectural, technical, or product decision and wants it recorded as a written `.context/decisions/` ADR — what was chosen, why, the alternatives, and the consequences — so the team does not re-litigate it later. Fires on "we decided X", "document this decision", "write an ADR", "record the decision to X", "log why we chose X", "we settled on X, write it up". Not for: planning multi-step work (/aidex:plan); deferring or parking an idea for later (/aidex:backlog); capturing a stakeholder/client request (/aidex:request), research notes (/aidex:research), or a settled reference (/aidex:reference); ecosystem audits (/aidex:aidex); project-state audits (/aidex:audit).

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Read the decision conventions canon: ${CLAUDE_PLUGIN_ROOT}/skills/conventions/references/request-decision-conventions.md (Decisions section.

    line 17
  2. Very specific:

    Create a single dated file: .context/decisions/YYYY-MM-DD-<slug>.md (slug kebab-case.

    line 21
  3. Distinctive:

    Add a separate Options Considered (Pros/Cons) section only when two or more alternatives were genuinely weighed.

    line 29
  4. Very specific:

    If the project carries a ratchet baseline (.context/.validate-baseline.json), a non-zero exit means you introduced a NEW violation — fix it …

    line 53

“Common” is measured: kept by at least 6 in 10 of the 6 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

Record an architectural, technical, or product decision as an ADR in .context/decisions/ so it is not re-litigated later. This skill is the single-purpose entry point for decision records; the formatting canon lives in the shared conventions reference package (not forked here).

Workflow

  1. Read the decision conventions canon: ${CLAUDE_PLUGIN_ROOT}/skills/conventions/references/request-decision-conventions.md (Decisions section; or .claude/skills/conventions/references/request-decision-conventions.md if a project-level copy exists).
  2. Create a single dated file: .context/decisions/YYYY-MM-DD-<slug>.md (slug kebab-case; date YYYY-MM-DD).
  3. Front-matter per the canon — decisions use the ADR status enum (accepted · superseded · dropped), not the base open/doing/done vocabulary. Set superseded_by: decision/<filename> when one decision replaces another.
  4. Body per the canon template: Context, Decision, Consequences are the mandated triad. Capture the deciding factor, not just the verdict. Add a separate Options Considered (Pros/Cons) section only when two or more alternatives were genuinely weighed; otherwise fold the alternatives into the Decision prose ("considered X and Y; chose Z because …"). Write the artifact in English (canon §Language).

Closing a decision

Decisions close only when superseded or dropped (an accepted ADR stays active in place). Close atomically (stamps updated, sets status + superseded_by, archives per D-10) instead of hand-editing:

bash ${CLAUDE_PLUGIN_ROOT}/skills/conventions/scripts/close-dated-artifact.sh decisions <slug> --status superseded --superseded-by decision/<new-adr>
bash ${CLAUDE_PLUGIN_ROOT}/skills/conventions/scripts/close-dated-artifact.sh decisions <slug> --status dropped

Self-check

Validate the artifact you just wrote and fix any violation before closing:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/conventions/scripts/validate.py --type decisions

If the project carries a ratchet baseline (.context/.validate-baseline.json), a non-zero exit means you introduced a NEW violation — fix it before closing.

Boundaries

The user wants to…Route to
Plan multi-step / multi-phase implementation workplan
Defer / park / shelve an idea for laterbacklog
Capture a stakeholder/client requestrequest
Investigate / research how something worksresearch
Document a settled system referencereference
Audit the Claude Code ecosystemaidex
Audit project state (UX/security/perf/a11y)audit

Related

  • conventions — owns the shared documentation canon (this skill delegates into its references/request-decision-conventions.md).

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.