archive
Skill13 starsChanged 2 months agoMITView on GitHub
Archive a completed or abandoned plan for future reference
22 other projects use a version of this.
Adopted by
Most recently taken up by
- phuthuycoding/kanban-flowtheir own version, first seen Nov 8, 2026
- egregore-labs/egregoretheir own version, first seen Nov 6, 2026
- myowinthein/claude-helmtheir own version, first seen Nov 1, 2026
- kirkchen/beattheir own version, first seen Nov 1, 2026
- matthewdigiuseppe/MStacktheir own version, first seen Nov 1, 2026
- bks-lab/open-bridgetheir own version, first seen Oct 30, 2026
Used with
Projects with it also use distill, plan and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HK-hubSkilldistill
Strip designs to their essence by removing unnecessary complexity. Great design is simple, powerful, and clean. Use when the user asks to simplify, declutter, reduce noise, remove elements, or make a UI cleaner and more focused.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 5 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- ReScienceLab/opc-skills★ 1.9ksame name
- egregore-labs/egregore★ 293same name
- matthewdigiuseppe/MStack★ 17same name
- bks-lab/open-bridge★ 13same name
- kirkchen/beat★ 9same name
- philippe-desplats/second-brain★ 6same name
- codebycorey/delta-spec★ 4same name
- grasscaograss/AwesomeWeldoneSkills★ 2same name
- jcordon5/archive-skill★ 2same name
- phuthuycoding/kanban-flow★ 2same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- plan-archiveSkill
- plan-createSkill
- plan-critiqueSkill
- plan-cycleSkill
- plan-executeSkill
- createSkill
- critiqueSkill
- cycleSkill
- executeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 5 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Read .claude/plan-critique-config.json and get plansFolder path from settings.
- Very specific: line 14
If the file doesn't exist or plansFolder is not set or is an empty string: Respond with "No plans folder configured.
- Very specific: line 20
Read the current session's plan from [plansFolder]/.sessions/[sessionPID] if it exists.
- Distinctive: line 23
If no plan folders exist: Respond with "No plans found.
- Very specific: line 25
If sessionPlan exists and matches a plan folder, auto-select it.
- Very specific: line 38
Check prerequisites. If [plansFolder]/[selected-plan]/plan.md does not exist or is empty: Respond with "Nothing to archive.
- Very specific: line 40
Ensure [plansFolder]/archived/ exists, create it if not.
- Very specific: line 42
Read plan.md to get the plan title (first H1 heading).
- Very specific: line 43
Read critique.md to get keywords (if available)
- Very specific: line 44
Read execution-log.md to get execution status (if available)
- Very specific: line 47
Create the archive folder at [plansFolder]/archived/[folder-name]/
- Very specific: line 51
Create archive-info.md in the archive folder using the format in archive-info-format.md.
- Very specific: line 53
Delete the original plan folder [plansFolder]/[selected-plan]/ entirely.
- Very specific: line 55
Delete [plansFolder]/.sessions/[sessionPID] if it contains the archived plan slug.
- Distinctive: line 67
Never include critique.md in the archive (only keywords are preserved in archive-info.md)
- Distinctive: line 68
Always include the full original plan and all supporting files
- Distinctive: line 70
Use current timestamp for the archive folder name
- Distinctive: line 72
Always delete the original plan folder after archiving
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are archiving the user's completed (or abandoned) plan for future reference.
To do this, follow these steps precisely:
- Read
.claude/plan-critique-config.jsonand getplansFolderpath from settings. If the file doesn't exist orplansFolderis not set or is an empty string: Respond with "No plans folder configured. Run/plan:createfirst to set up." - Get the Claude Code process ID by running:
echo $PPID. Store this assessionPID. - Clean up stale sessions: Scan
[plansFolder]/.sessions/for files. For each file named with a PID, check if that process is still running viakill -0 [PID] 2>/dev/null. If the command fails (process not running), delete that session file. This is non-blocking cleanup. - Read the current session's plan from
[plansFolder]/.sessions/[sessionPID]if it exists. Store assessionPlan. - Scan
[plansFolder]/for subdirectories (each subdirectory is a plan). Excludearchived/and.sessions/folders and any files, only list plan directories. If no plan folders exist: Respond with "No plans found. Nothing to archive." - Select the plan to archive:
- If
sessionPlanexists 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. implement-caching Which plan would you like to archive? [1-3]
- If
- Check prerequisites. If
[plansFolder]/[selected-plan]/plan.mddoes not exist or is empty: Respond with "Nothing to archive. Plan file is missing or empty." - Ensure
[plansFolder]/archived/exists, create it if not. - Extract metadata:
- Read
plan.mdto get the plan title (first H1 heading). If no title, use folder name. - Read
critique.mdto get keywords (if available) - Read
execution-log.mdto get execution status (if available)
- Read
- Generate archive folder name using format:
YYYY-MM-DD_HH-MM-SS_[slug]/Example:2026-01-12_14-30-00_add-user-authentication/ - Create the archive folder at
[plansFolder]/archived/[folder-name]/ - Copy contents from
[plansFolder]/[selected-plan]/to the archive:- Include:
plan.md,execution-log.md(if exists), all other files (SQL, images, etc.) - Exclude:
critique.md,execution-state.json
- Include:
- Create
archive-info.mdin the archive folder using the format in archive-info-format.md. - Delete the original plan folder
[plansFolder]/[selected-plan]/entirely. - Clean up session references to the archived plan:
- Delete
[plansFolder]/.sessions/[sessionPID]if it contains the archived plan slug. - Scan all other session files and delete any that reference the archived plan (handles stale references).
- Delete
- Respond with confirmation:
Plan archived to: [plansFolder]/archived/[folder-name]/ The original plan folder has been removed. Create a new plan with `/plan:create`.
Notes:
- Never include critique.md in the archive (only keywords are preserved in archive-info.md)
- Always include the full original plan and all supporting files
- Include execution log only if the plan was executed
- Use current timestamp for the archive folder name
- Preserve the original file structure within the archived folder
- Always delete the original plan folder after archiving
- It is valid to archive a plan that was never executed (abandoned, reference, or superseded plans).
In this case, the execution status will be
NOT_EXECUTED.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

