From ctx
Records architectural decisions in DECISIONS.md via Y-statement or full format with context, alternatives, rationale, and consequences. Use after resolving trade-offs or non-obvious choices to inform future sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ctx:ctx-add-decisionThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Record an architectural decision in DECISIONS.md.
Record an architectural decision in DECISIONS.md.
For lightweight decisions, use a single statement:
"In the context of [situation], facing [constraint], we decided for [choice] and against [alternatives], to achieve [benefit], accepting that [trade-off]."
Example:
"In the context of needing a CLI framework, facing Go ecosystem options, we decided for Cobra and against urfave/cli, to achieve better subcommand support, accepting that it has more boilerplate."
For significant decisions, gather:
If the user provides only a title, ask:
For quick decisions, offer the Y-statement format instead.
When a decision supersedes an earlier one:
When decisions are related:
Quick format:
ctx add decision "Use Cobra for CLI framework" \
--context "Need CLI framework for Go project" \
--rationale "Better subcommand support than urfave/cli, team familiarity" \
--consequence "More boilerplate, but clearer command structure"
Full format with alternatives:
ctx add decision "Use PostgreSQL for primary database" \
--context "Need ACID-compliant database for e-commerce transactions" \
--rationale "PostgreSQL offers JSONB, full-text search, and team has experience. Chose over MySQL (weaker JSON) and MongoDB (no multi-doc ACID)." \
--consequence "Single database handles transactions and search. Team needs PostgreSQL-specific training."
Before recording, verify:
npx claudepluginhub activememory/ctx --plugin ctxRecords significant architectural decisions like database choices, frameworks, or core patterns in docs/decisions.md. Activates on major decisions, explicit requests, or proactively at session ends.
Generates Architecture Decision Records with context, rationale, alternatives, and status lifecycle. Prevents forgotten design rationale.
Captures architecture decisions as structured ADR files during coding sessions. Detects decision moments, logs context, alternatives, and rationale alongside code in docs/adr/.