/plan:plan-archivefrom Plan & Critique
Archives a completed or abandoned plan by moving it to an archived directory for future reference. Handles session detection, plan selection, and stale session cleanup.
Ships in Plan & Critique. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
On Codex, invoke skills with $skill-name (for example, $plan-create). Use that form when giving Codex
commands; other clients use /skill-name.
You are archiving the user's completed (or abandoned) plan for future reference.
To do this, follow these steps precisely:
plansFolder from config:
Check the active agent's config file first (.codex/plan-critique-config.json for Codex,
.claude/plan-critique-config.json for Claude Code,
.gemini/plan-critique-config.json for Agy/Gemini, or .copilot/plan-critique-config.json for Copilot CLI),
falling back to reading the other agent configs. If no config exists or plansFolder is not set or is empty:
Respond with "No plans folder configured. Run /plan-create first to set up."COPILOT_AGENT_SESSION_ID is set): read COPILOT_AGENT_SESSION_ID via
echo $COPILOT_AGENT_SESSION_ID (macOS/Linux) or $env:COPILOT_AGENT_SESSION_ID (Windows); if empty, use the
literal value default. Store as sessionId.echo $PPID and store as sessionId.[plansFolder]/.sessions/ (non-blocking, never abort because of cleanup):
kill -0 [PID] 2>/dev/null and delete if the process is no longer running.default or UUIDs), delete files not modified in the last 7 days.[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 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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/plan-createCreate 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./plan-critiqueCritique 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./plan-cycleDraft, critique and merge a plan in one loop, then stop for approval. Use when the user runs /plan-cycle or asks to run the full create-and-critique planning loop.npx claudepluginhub serbanghita/plan-critique-skills --plugin planOther plugins' skills for the same job