ctx-add-decision
Record architectural decision. Use when a trade-off is resolved or a non-obvious design choice is made that future sessions need to know.
Best use case
ctx-add-decision is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Record architectural decision. Use when a trade-off is resolved or a non-obvious design choice is made that future sessions need to know.
Teams using ctx-add-decision should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ctx-add-decision/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ctx-add-decision Compares
| Feature / Agent | ctx-add-decision | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Record architectural decision. Use when a trade-off is resolved or a non-obvious design choice is made that future sessions need to know.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
Record an architectural decision in DECISIONS.md. ## When to Use - After resolving a trade-off between alternatives - When making a non-obvious design choice - When the "why" behind a choice needs to be preserved - When future sessions need to understand why something is the way it is ## When NOT to Use - Minor implementation details (use code comments instead) - Routine maintenance or bug fixes - Configuration changes that don't affect architecture - When there was no real alternative to consider ## Decision Formats ### Quick Format (Y-Statement) 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." ### Full Format For significant decisions, gather: 1. **Context**: What situation prompted this decision? What constraints exist? 2. **Alternatives**: What options were considered? (At least 2) 3. **Decision**: What was chosen? 4. **Rationale**: Why this choice over the alternatives? 5. **Consequences**: What changes as a result? (Both positive and negative) ## Gathering Information If the user provides only a title, ask: 1. "What prompted this decision?" → Context 2. "What alternatives did you consider?" → Options 3. "Why this choice over the alternatives?" → Rationale 4. "What are the consequences (good and bad)?" → Consequences For quick decisions, offer the Y-statement format instead. ## Cross-Referencing When a decision **supersedes** an earlier one: - Mark the old decision as "Superseded by [new decision]" - Reference the old decision in the new one - Capture lessons learned from the original decision When decisions are **related**: - Note "See also: [related decision]" in consequences ## Execution **Quick format:** ```bash ctx add decision "Use Cobra for CLI framework" \ --context "Need CLI framework for Go project" \ --rationale "Better subcommand support than urfave/cli, team familiarity" \ --consequences "More boilerplate, but clearer command structure" ``` **Full format with alternatives:** ```bash 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)." \ --consequences "Single database handles transactions and search. Team needs PostgreSQL-specific training." ``` ## Quality Checklist Before recording, verify: - [ ] Context explains the problem clearly - [ ] At least one alternative was considered - [ ] Rationale addresses why alternatives were rejected - [ ] Consequences include both benefits and trade-offs
Related Skills
session-decisions
Use when user wants to extract technical decisions and deliberations from Claude Code session history for resume writing or documentation. Triggers on "의사결정 정리", "세션 결정", "이력서 소재", "resume decisions", "session decisions", "기술 의사결정", "decision log".
qore-meta-log-decision
Record major engineering decisions into the QoreLogic meta-ledger with rationale, risk grading, and auditable evidence.
architecture-decision-records
Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.
architecture-decision-record
ADR format and methodology for documenting significant technical decisions with context, alternatives considered, and consequences. Use when making or documenting architectural decisions.
5w1h-decision
5W1H Decision Framework Tool. Use for: (1) Systematic decision-making before creating todos, (2) Preventing duplicate implementation, (3) Detecting avoidance behavior, (4) Ensuring agile refactor compliance with executor/dispatcher separation
Tech Stack & Architecture Decision
Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies", "architecture decisions", "what stack should we use", or any request to select and document frontend, backend, database, auth, hosting, and infrastructure choices for a project.
architecture-decisions
Make and document architecture decisions using structured frameworks
architecture-decisioning
Guides the selection and documentation of architectural decisions using ADR patterns.
architecture-decision
Document architectural choices
Architecture Decision Records (ADR)
Documenting significant architectural decisions with context, consequences, and rationale for future reference.
architecture-decision-recorder
Create and manage Architecture Decision Records (ADRs) for documenting important architectural decisions, tradeoffs, and rationale.
arch_decisions
ADR template, database selection, capacity planning ve scalability.