Skip to content
Back to skills

Decision

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentspythonbashsecuritydocumentation

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add yacb2/aidex --skill decision --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Decision?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Decision
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yacb2-decision/badge)](https://www.skillsdirectory.com/skills/yacb2-decision)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: decision
description: '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).'
disable-model-invocation: false
allowed-tools: Bash Read Write
---

# 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
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:

```bash
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 work | `plan` |
| Defer / park / shelve an idea for later | `backlog` |
| Capture a stakeholder/client request | `request` |
| Investigate / research how something works | `research` |
| Document a settled system reference | `reference` |
| Audit the Claude Code ecosystem | `aidex` |
| 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`).

Files in this skill

  • SKILL.md3.5 KB
  • evals/native/adr/case.yaml88 B
  • evals/native/adr/graders/adr-conventions.md611 B
  • evals/native/adr/graders/adr-structure.md380 B
  • evals/native/adr/graders/skill-fired.md67 B
  • evals/native/adr/prompt.md467 B
  • evals/native/adr/setup.sh127 B
  • evals/trigger_eval.json6.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…