planarchive
SolidArchive a completed or abandoned plan for future reference
Code & Development 13 stars
1 forks Updated 4 days ago MIT
Install
Quality Score: 83/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
You are archiving the user's completed (or abandoned) plan for future reference.
To do this, follow these steps precisely:
1. Read `.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."
2. Get the Claude Code process ID by running: `echo $PPID`. Store this as `sessionPID`.
3. Clean up stale sessions: Scan `[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.
4. Read the current session's plan from `[plansFolder]/.sessions/[sessionPID]` if it exists. Store as `sessionPlan`.
5. Scan `[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."
6. Select the plan to archive:
- If `sessionPlan` exists and matches a plan folder, auto-select it. Inform the user:
"Using current session plan: [sessionPlan]"
- Else if only one plan exists, auto-select it and inform user.
- Otherwise, ask the user to select a plan from the list.
Example:
```
Available plans:
1. add-user-authentication
2. refactor-database-layer
3. imp...
Details
- Author
- serbanghita
- Repository
- serbanghita/claude-code-plan-critique
- Created
- 8 months ago
- Last Updated
- 4 days ago
- Language
- Shell
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
archive
Archive a completed or abandoned plan for future reference
13 Updated 4 days ago
serbanghita Code & Development Solid
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.
13 Updated 4 days ago
serbanghita AI & Automation Listed
plan-archive
Use after merging a PR or during periodic cleanup to archive plan-mode files by linking them to merged PRs.
0 Updated 1 weeks ago
arndvs