ワンクリックで
cai-upgrade
Use when upgrading CAI to the latest version. Triggers: 'cai-upgrade', 'context upgrade', 'context 업그레이드', 'update CAI'
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when upgrading CAI to the latest version. Triggers: 'cai-upgrade', 'context upgrade', 'context 업그레이드', 'update CAI'
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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'
| name | cai-upgrade |
| description | Use when upgrading CAI to the latest version. Triggers: 'cai-upgrade', 'context upgrade', 'context 업그레이드', 'update CAI' |
Upgrades the CAI infrastructure in a project to the latest plugin version. Performs section-based merge to preserve project-specific customizations while updating tool-managed content.
Read .claude/rules/cai.md in the target project. This is the primary file for version detection. Also check if the project has the expected directory structure (context/, tools/drift-warning.js, .claude/agents/, .claude/skills/).
Read ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json to get the plugin version.
If the project does not appear to have CAI initialized, inform the developer and suggest running cai-init instead.
Read the latest templates from the plugin source:
${CLAUDE_PLUGIN_ROOT}/templates/rules/cai.md (latest rules)${CLAUDE_PLUGIN_ROOT}/templates/tools/drift-warning.js (latest hook)${CLAUDE_PLUGIN_ROOT}/templates/AGENTS.md (latest AGENTS.md)${CLAUDE_PLUGIN_ROOT}/skills/ (latest skills)${CLAUDE_PLUGIN_ROOT}/agents/ (latest agents)${CLAUDE_PLUGIN_ROOT}/CHANGELOG.md (version history)Read CHANGELOG.md and extract all entries after the project's current version. These will be shown to the developer in Step 6.
Create a timestamped backup of all files that will be modified:
.claude/backups/cai-{YYYY-MM-DD-HHmmss}/
rules/cai.md
tools/drift-warning.js
AGENTS.md
skills/ (all cai-* skill files)
agents/ (all agent files)
Inform the developer of the backup location.
Parse .claude/rules/cai.md using section markers:
Extract PROJECT-SPECIFIC content: Find everything between <!-- PROJECT-SPECIFIC:START --> and <!-- PROJECT-SPECIFIC:END -->. Save this content.
Replace TOOL-MANAGED content: Take the new <!-- TOOL-MANAGED:START --> ... <!-- TOOL-MANAGED:END --> block from the plugin template.
Reattach PROJECT-SPECIFIC content: Append the preserved PROJECT-SPECIFIC block after the new TOOL-MANAGED block.
If the project file has content outside both markers (custom sections added by the developer), preserve that content at the end of the file.
tools/drift-warning.js with the latest version from the plugin.AGENTS.md with the latest version from the plugin.These files are fully tool-managed and contain no project-specific content.
First, present the CHANGELOG entries since the project's current version:
📋 Changelog (v0.2.0 → v0.3.0):
### Improved — Confidence Pipeline
- verification-agent now recommends confidence promotion based on verification results ...
...
### Upgrade Notes
- To benefit from confidence promotion, re-verify existing specs via cai-onboard --incremental
Then present a clear diff of all changes:
Format the diff so the developer can review each change.
Ask the developer to approve the upgrade. Options:
Do not apply any changes without explicit approval.
After approval:
skills/ directory:
{name}?"agents/ directory:
{name}?"Report:
cai-onboard --incremental.Updated files in the target project. Backup in .claude/backups/.