Help us improve
Share bugs, ideas, or general feedback.
From Plan & Critique
Archives a completed or abandoned plan by moving it to an archived folder with metadata and timestamp.
npx claudepluginhub serbanghita/claude-code-plan-critique --plugin planHow this skill is triggered — by the user, by Claude, or both
Slash command
/plan:archiveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are archiving the user's completed (or abandoned) plan for future reference.
Converts planning conversations into structured executable projects with phased implementation plans, testing plans, task lists, and progress tracking. Manages Arness configuration in CLAUDE.md.
Manages execution plans as versioned Markdown artifacts with progress tracking, decision logs, and archiving in .agents/plans. Use for creating, updating, or archiving plans in complex multi-step work.
Archives completed or cancelled PRD files to product-docs/prds/archive/YYYY/QX/ directories, adds YAML metadata (archive_date, reason, task completion %), moves linked tasks, uses git mv. Use post-implementation.
Share bugs, ideas, or general feedback.
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.