一键导入
cai-add-spec
Use when creating or updating a spec document. Triggers: 'cai-add-spec', 'spec 생성', 'spec 추가', 'spec 업데이트', 'add spec', 'update spec'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or updating a spec document. Triggers: 'cai-add-spec', 'spec 생성', 'spec 추가', 'spec 업데이트', 'add spec', 'update spec'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cai-add-spec |
| description | Use when creating or updating a spec document. Triggers: 'cai-add-spec', 'spec 생성', 'spec 추가', 'spec 업데이트', 'add spec', 'update spec' |
Creates a new spec or updates an existing spec document, then validates it against source code via the verification agent.
Identify the target file(s) or module to document. Resolve to a spec path using convention-based mapping:
context/specs/{module}/_overview.mdcontext/specs/{module}/{component}.mdIf the target, scope, or intent is ambiguous (e.g., the user said "add a spec for auth" but the auth area spans multiple modules, or it is unclear which behaviors should be documented), invoke the cai:cai-interview skill before proceeding. Pass:
Skip the interview when the target is unambiguous.
Does a spec already exist for this target?
├── YES → Update Mode (Step 3a)
└── NO → Create Mode (Step 3b)
spec-writer agent with update instructions:
last_syncedmodule or component)_overview.md)spec-writer agent with creation instructions:
Invoke the verification-agent to cross-validate the new or updated spec against source code.
Verification passed?
├── YES → Step 5
└── NO → Present issues to user. Options:
├── Fix and re-verify
└── Accept with noted discrepancies (mark confidence: draft)
last_synced to today's date (ISO 8601: YYYY-MM-DD)verifiedrevieweddraft_overview.md lists this component in components fieldAgent: spec-writer — Reads source code and writes spec documents
Task("Create a new {level}-level spec for {target_path}. Source files: {file_list}. Write to: {spec_path}. Follow frontmatter schema from interface contract.", agent="agents/spec-writer.md")Task("Update spec at {spec_path}. Current spec: {spec_content}. Changes since last sync: {change_summary}. Update only changed sections.", agent="agents/spec-writer.md")Agent: verification-agent — Validates spec claims against source code
Task("Verify spec at {spec_path} against source code. Check all claims for accuracy.", agent="agents/verification-agent.md")| Artifact | Path | Format |
|---|---|---|
| New/updated spec | context/specs/{module}/_overview.md or context/specs/{module}/{component}.md | Markdown with YAML frontmatter (Interface Contract 0.1) |
Frontmatter example (new spec):
---
type: spec
level: module
tags: [auth, security]
last_synced: 2026-04-06
covers: [src/auth/]
confidence: draft
components: [login, refresh, oauth]
exports: [authenticate, refreshToken]
depends_on: [context/specs/database/_overview.md]
---
| Error | Action |
|---|---|
| spec-writer produces empty or malformed output | Retry once. If still fails, report error and ask user to provide manual input. |
| verification-agent finds critical inaccuracies | Do NOT finalize. Present the inaccuracy report. Ask user to choose: fix or accept as draft. |
| Target module cannot be determined | Ask user to specify the module/component path explicitly. |
| Parent overview does not exist (component spec) | Create a minimal parent _overview.md first, then proceed. |
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'