一键导入
cai-add-decision
Use when recording an architecture decision as an ADR. Triggers: 'cai-add-decision', 'decision 기록', 'ADR 추가', 'add decision', '결정 기록', '아키텍처 결정'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when recording an architecture decision as an ADR. Triggers: 'cai-add-decision', 'decision 기록', 'ADR 추가', 'add decision', '결정 기록', '아키텍처 결정'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cai-add-decision |
| description | Use when recording an architecture decision as an ADR. Triggers: 'cai-add-decision', 'decision 기록', 'ADR 추가', 'add decision', '결정 기록', '아키텍처 결정' |
Records an architecture decision as an ADR (Architecture Decision Record) in the CAI, with automatic numbering and structured format.
Scan context/decisions/ directory for existing decision files. Extract the maximum NNN from filenames matching pattern NNN-*.md. The next number is max + 1, zero-padded to 3 digits.
context/decisions/ contents:
001-chose-postgresql.md
002-event-driven-arch.md
→ next number: 003
If context/decisions/ is empty or has no numbered files, start at 001.
CRITICAL: Never hardcode the number. Always dynamically calculate from directory contents.
Is the decision content already available in the current conversation context?
├── YES → Use it directly (Step 3)
└── NO → Invoke the cai:cai-interview skill (Step 2a)
2a. Interview for Decision Content
Invoke the cai:cai-interview skill. Pass:
Create context/decisions/{NNN}-{slug}.md with the following structure:
---
type: decision
status: accepted
tags: [relevant, tags]
last_synced: {today, YYYY-MM-DD}
---
# {NNN}. {Decision Title}
## Background
{Problem context and why a decision was needed}
## Decision
{What was decided, stated clearly}
## Alternatives Considered
### {Alternative 1}
- Pros: ...
- Cons: ...
### {Alternative 2}
- Pros: ...
- Cons: ...
## Consequences
### Positive
- ...
### Negative
- ...
The {slug} is derived from the decision title: lowercase, words joined by hyphens, concise (e.g., "chose-postgresql", "event-driven-arch").
Present the generated ADR to the user for review before writing to disk. Apply any requested changes.
cai:cai-interview — Collects decision details from the user when not already available (see Step 2a).| Artifact | Path | Format |
|---|---|---|
| ADR document | context/decisions/{NNN}-{slug}.md | Markdown with YAML frontmatter (Interface Contract 0.1, decision type) |
| Error | Action |
|---|---|
context/decisions/ directory does not exist | Create it before proceeding |
| Filename collision (number already taken due to race) | Re-scan and recalculate |
| User declines the ADR after review | Discard the draft, do not write to disk |
| Insufficient context for meaningful ADR | Ask the user for more details rather than writing a shallow document |
Add backlog items to an existing sprint through guided brainstorming and planning. Automatically detects sprint context or asks for sprint location. Includes brainstorming phase, plan mode for task design, and ensures tasks are sized for single Claude Code sessions. Triggers include "add backlog", "new feature", "add task", "백로그 추가", "기능 추가", "태스크 추가".
Initialize a sprint with kanban-style structure for multi-agent collaboration. Use when user wants to start a sprint, set up sprint structure, or manage work with multiple agents. Triggers include "new sprint", "init sprint", "setup sprint", "start sprint", "스프린트 시작", "스프린트 초기화", "새 스프린트". Creates BACKLOG.md, HANDOFF.md, INSTRUCTION.md, and sets up active/, refs/designs/, refs/plans/ folders.
Design Feature or Task in detail within a sprint. Refines backlog items through brainstorming, creates implementation plan in Plan mode, and adds Sub-tasks to BACKLOG.md upon approval. Triggers: 'plan task', 'plan feature', 'plan backlog'
Review completed Task or Feature deliverables. Uses type-specific checklists (coding/docs/ideation/general) for quality review. Two modes: default (creates improvement Tasks) and immediate-fix (fixes issues directly). Triggers: 'review task', 'review feature', 'review backlog'
Review work in the current session after an agent marks a task as review. Applies type-specific criteria (coding/design/docs/general), reports findings, user selects improvements, enters Plan Mode, then executes improvements and marks task done. Triggers: 'review work', '작업 리뷰', '리뷰해줘'
Apply latest sprint-init template changes to existing sprints. Updates only rules/guidelines sections while preserving user data (Features, Tasks, tables). Triggers: 'update sprint', 'upgrade sprint', 'update template', 'update sprint version'