archive-project
Skill8 starsChanged 5 days agoMITView on GitHub
Archive an inactive project, client, partner, or internal project from sources/ into archives/. Confirms inactivity, physically moves the folder (git mv preserves history), updates the incoming references (other projects that point to the archived one), regenerates the static indexes, and runs Basic Memory reindex. Policy: physical move WITHOUT a redundant status. Use when a project is marked `status: done` or `status: cancelled` for 6+ months, or on an explicit decision to archive.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- sleevesun/skillstheir own version, first seen Nov 22, 2026
- cm-wada-yusuke/claude-code-product-workshop-kittheir own version, first seen Aug 26, 2026
- jacksoswag/ObsidAgenttheir own version, first seen Aug 10, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- cm-wada-yusuke/claude-code-product-workshop-kit★ 18same name
- jacksoswag/ObsidAgent★ 1same name
- sleevesun/skills★ 1same name
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 repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- captureSkill
- librarianSkill
- mark-readSkill
- review-knowledgeSkill
- sb-doctorSkill
- sb-initSkill
- sb-updateSkill
- start-projectSkill
- summarizeSkill
- todaySkill
- to-knowledgeSkill
- to-mapSkill
- to-minutesSkill
- to-readingSkill
- weekly-reviewSkill
- wrap-upSkill
- write-emailSkill
- write-proposalSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
After the last write of a run, add one line to the operations log with --skill archive-project, see AGENTS.md, Logging writes.
- Very specific: line 89
Always --dry-run first: if the user is unsure (borderline case)
- Distinctive: line 91
Incoming refs: if > 5 other notes point to this path, alert explicitly
- Distinctive: line 92
Parent AGENTS.md: if archiving a client project (not the whole client), update its AGENTS.md to mention the archiving
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Arguments
/archive-project <slug-or-path> [-t client|partner|internal|personal] [-f force] [-a auto] [--dry-run]
/archive-project --post-mortem-only <project-path>
Flags, input and examples are detailed below.
Questions to the owner follow AGENTS.md, Asking the owner.
After the last write of a run, add one line to the operations log with --skill archive-project, see AGENTS.md, Logging writes.
<objective>
Move an inactive project from `sources/{type}/{slug}/` into `archives/{type}/{slug}/`, without breaking references. Policy: physical move without a redundant status. The indexes filter automatically, since both the Bases views and the generation script scope on `sources/` and ignore the archives.Out of scope: archiving .claude/, basic-memory/, atlas/, knowledge/ (non-project zones). Out of scope: archiving an isolated note (use an archive/ subfolder within the project for obsolete internal artifacts).
</objective>
<quick_start>
/archive-project legacy-migration # archive sources/internal/legacy-migration/
/archive-project globex -t client # force the type, archive sources/clients/globex/
/archive-project hooli/partner-portal -t partner # archive a specific project of a partner
/archive-project legacy-migration --dry-run # simulate, show what would happen
/archive-project legacy-migration -a # auto, skip confirmations
/archive-project legacy-migration -f # force, ignore the 6-month inactivity check
/archive-project --post-mortem-only sources/clients/globex/website # write the post-mortem only, no move, whatever the inactivity</quick_start>
<flags>| Flag | Long | Description | |||
-t | --type | Entity type: `client | partner | internal | personal`. Auto-deduced if absent |
-f | --force | Skip the "inactive for 6 months" check, archive directly | |||
-a | --auto | Skip user confirmations | |||
--dry-run | no value | Show what would be done without executing | |||
--post-mortem-only {project path} | Run only the post-mortem (section 5b of step-01): compile the facts, ask the owner 3 questions, write the retrospective note in the project folder, log, then stop. Nothing is moved, the inactivity check does not apply. Used by /weekly-review for finished projects without a post-mortem |
</flags><workflow>
1. **Init** -> Parse args, resolve the source path, deduce the type (with `--post-mortem-only`, check the path and jump to the post-mortem)
2. **Confirm** -> Present the state (last activity, incoming refs), ask for validation
3. **Move** -> git mv into archives/, update the parent AGENTS.md if applicable
4. **Reindex** -> Regenerate the static indexes, run Basic Memory reindex
</workflow><step_files>
| Step | File | Purpose |
| 00 | steps/step-00-init.md | Parse args, resolve {source_path}, {target_path}, {type} |
| 01 | steps/step-01-confirm.md | Audit last activity, incoming references, user confirmation |
| 02 | steps/step-02-move.md | git mv, update the parent AGENTS.md, update references |
| 03 | steps/step-03-reindex.md | generate_indexes.py + bm reindex + check_double_frontmatter |
</step_files>
<state_variables>
| Variable | Type | Set by |
{slug} | string | step-00 |
{type} | enum (client|partner|internal|personal) | step-00 |
{source_path} | string | step-00 (sources/{type}/{slug}/ or sources/{type}/{slug}/{project}/) |
{target_path} | string | step-00 (archives/{type}/{slug}/) |
{is_project_scope} | boolean | step-00 (true if slug = "X/Y", we archive only project Y) |
{last_activity_date} | date | step-01 |
{months_inactive} | number | step-01 |
{incoming_refs} | list | step-01 (other files that point to the path) |
{dry_run} | boolean | step-00 |
{auto_mode} | boolean | step-00 |
{force_mode} | boolean | step-00 |
{post_mortem_only} | boolean | step-00 |
</state_variables>
<execution_rules>
- Always git mv (not cp+rm), to preserve history
- Always --dry-run first if the user is unsure (borderline case)
- 6 months of inactivity = default check, override with
-f - Incoming refs: if > 5 other notes point to this path, alert explicitly
- Parent AGENTS.md: if archiving a client project (not the whole client), update its AGENTS.md to mention the archiving
- No auto update of wiki-links: Obsidian wiki-links update automatically on rename. In CLI, older textual paths (non-wikilinks) may keep pointing to
sources/...historically; git history lets you retrieve them bm reindexmandatory after writing (if Basic Memory is installed)- Refuse if target already exists:
archives/{type}/{slug}/already exists -> ask the user (merge, overwrite, abandon) </execution_rules>
<entry_point>
FIRST ACTION: Load steps/step-00-init.md
</entry_point>
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.

