claude-plugin/commands/decision.md
Record and track project decisions as beads issues with structured rationale, alternatives considered, and links to affected work.
Decisions use --type decision. The description field holds the structured decision record.
When the user wants to record a decision (or you invoke bd decision record):
Gather the following (ask if not provided):
Create the issue with structured description:
bd create "<title>" --type decision \
--description "$(cat <<'EOF'
## Decision
<one-sentence summary of what was decided>
## Rationale
<why this was chosen>
## Alternatives Considered
- **<alt 1>**: <why rejected>
- **<alt 2>**: <why rejected>
## Affects
- <issue IDs or area descriptions>
EOF
)"
--affects issue IDs were provided, link them:bd dep add <decision-id> <affected-id> --type related
bd list --type decision
To see all decisions including closed/superseded:
bd list --type decision --all
bd show <decision-id>
Include comments for discussion history:
bd comments <decision-id>
When a decision is replaced by a new one:
bd dep add <new-id> <old-id> --type related
bd comments add <old-id> "Superseded by <new-id>: <brief reason>"
bd close <old-id> --reason "Superseded by <new-id>"
Use comments to append discussion, implementation notes, or revisit rationale:
bd comments add <decision-id> "Implementation note: ..."
bd search "keyword" --type decision
open = active decision, closed = superseded or reversedrelated dependency type to connect decisions to affected issuesarchitecture, tooling, process)