plan-archive
Archive a completed or abandoned plan for future reference
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Archive a completed or abandoned plan for future reference
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create a new plan folder with a plan.md template
Archive a completed or abandoned plan for future reference. Use when the user runs /plan-archive or asks to archive a finished plan.
Create a new plan folder with a plan.md template. Use when the user asks to start, create or open a new plan, or runs /plan-create.
Critique the user's plan from plan.md and write critique.md. Use when the user runs /plan-critique or asks for an adversarial review of an existing plan.
Execute the user's plan that has been iteratively refined, step by step, with resume on failure. Use when the user runs /plan-execute or asks to execute an existing plan.
Critique the user's plan from plan.md
| name | plan:archive |
| allowed-tools | Read, Write, Edit, Glob, AskUserQuestion, Bash(mkdir:*), Bash(cp:*), Bash(mv:*), Bash(rm:*), Bash(echo $PPID), Bash(kill -0:*), Bash(ls:*) |
| description | Archive a completed or abandoned plan for future reference |
| disable-model-invocation | true |
You are archiving the user's completed (or abandoned) plan for future reference.
To do this, follow these steps precisely:
.claude/plan-critique-config.json and get plansFolder path from settings.
If the file doesn't exist or plansFolder is not set:
Respond with "No plans folder configured. Run /plan:create first to set up."echo $PPID. Store this as sessionPID.[plansFolder]/.sessions/ for files. For each file named with a PID, check if that
process is still running via kill -0 [PID] 2>/dev/null. If the command fails (process not running), delete that
session file. This is non-blocking cleanup.[plansFolder]/.sessions/[sessionPID] if it exists. Store as sessionPlan.[plansFolder]/ for subdirectories (each subdirectory is a plan).
Exclude archived/ and .sessions/ folders and any files, only list plan directories.
If no plan folders exist: Respond with "No plans found. Nothing to archive."sessionPlan exists and matches a plan folder, auto-select it. Inform the user:
"Using current session plan: [sessionPlan]"Available plans:
1. add-user-authentication
2. refactor-database-layer
3. implement-caching
Which plan would you like to archive? [1-3]
[plansFolder]/[selected-plan]/plan.md does not exist or is empty:
Respond with "Nothing to archive. Plan file is missing or empty."[plansFolder]/archived/ exists, create it if not.plan.md to get the plan title (first H1 heading). If no title, use folder name.critique.md to get keywords (if available)execution-log.md to get execution status (if available)YYYY-MM-DD_HH-MM-SS_[slug]/
Example: 2026-01-12_14-30-00_add-user-authentication/[plansFolder]/archived/[folder-name]/[plansFolder]/[selected-plan]/ to the archive:
plan.md, execution-log.md (if exists), all other files (SQL, images, etc.)critique.md, execution-state.jsonarchive-info.md in the archive folder using the format in
archive-info-format.md.[plansFolder]/[selected-plan]/ entirely.[plansFolder]/.sessions/[sessionPID] if it contains the archived plan slug.Plan archived to: [plansFolder]/archived/[folder-name]/
The original plan folder has been removed.
Create a new plan with `/plan:create`.
Notes:
NOT_EXECUTED.