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 职业分类
Real-time multiplayer concurrency architecture - always-on invariants (version-aware undo, locking leases, socket preemption, optimistic UI, core/network isolation) plus scale-hardening topics deferred from MVPs (UDP channels, TURN, binary frames, delta patches, compression, sticky sessions, timing wheels) with the explicit triggers that graduate each one. Load when designing or extending multiplayer sync, or when deciding whether an MVP has outgrown WS-only JSON on one server instance.
Create a new plan folder with a plan.md template
Critique the user's plan from plan.md
Execute the user's plan that has been iteratively refined
| name | archive |
| allowed-tools | Read, Glob, Grep, Write, Edit, AskUserQuestion, Bash(git status:*), Bash(git log:*), Bash(git diff:*), Bash(echo $PPID), Bash(kill -0:*), Bash(rm:*), Bash(mkdir:*) |
| 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.