add_decision
Record coding standards, architectural decisions, and technical choices during development conversations. Captures rationale and constraints to build searchable project knowledge bases.
Instructions
Call this IMMEDIATELY when user says phrases like: "Let's use...", "From now on...", "Always do...", "Never do...", "I prefer...", "The standard is...", "We should always...", or confirms ANY technical approach. Also call when: (1) A design pattern is established, (2) An architectural choice is made, (3) Coding standards are discussed, (4) UI/UX conventions are agreed, (5) Technology stack decisions happen. Capture decisions DURING the conversation, not after. Focus on WHY, not just WHAT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Category: UI, Backend, API, Architecture, Database, Security, Testing, DevOps, Styling, Performance | |
| decision | Yes | Clear statement of what was decided (be specific and actionable) | |
| rationale | Yes | Why this decision was made - this is crucial for future context | |
| constraints | Yes | Specific rules or requirements to follow | |
| global | No | Set to true to create a global decision that applies across ALL projects (e.g., "always use TypeScript strict mode", "never commit .env files") | |
| force | No | Set to true to skip conflict detection and add the decision even if similar ones exist. Use after reviewing the conflicts returned by a previous add_decision call. | |
| project | Yes | The workspace folder name |