plan-archive
Archive a completed or abandoned plan for future reference. Use when the user runs /plan-archive or asks to archive a finished plan.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Archive a completed or abandoned plan for future reference. Use when the user runs /plan-archive or asks to archive a finished plan.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | plan-archive |
| description | Archive a completed or abandoned plan for future reference. Use when the user runs /plan-archive or asks to archive a finished plan. |
| license | MIT |
| disable-model-invocation | true |
You are archiving the user's completed (or abandoned) plan for future reference.
To do this, follow these steps precisely:
.copilot/plan-critique-config.json and get plansFolder path from settings. If that file does not
exist, read .claude/plan-critique-config.json instead.
If neither file exists or plansFolder is not set:
Respond with "No plans folder configured. Run /plan-create first to set up."COPILOT_AGENT_SESSION_ID environment variable. Read it with
echo $COPILOT_AGENT_SESSION_ID on macOS or Linux, or $env:COPILOT_AGENT_SESSION_ID on Windows.
If the variable is empty, use the literal value default instead. Store this as sessionId.[plansFolder]/.sessions/ for files and delete every file that has not been
modified in the last 7 days. This is non-blocking cleanup, never abort the run because of it.[plansFolder]/.sessions/[sessionId] 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/[sessionId] 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.Create a new plan folder with a plan.md template
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
Execute the user's plan that has been iteratively refined