agentleFS
philippe-desplatsphilippe-desplats/second-brain/.claude/skills/archive-project/SKILL.md

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

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
  1. Very specific:

    After the last write of a run, add one line to the operations log with --skill archive-project, see AGENTS.md, Logging writes.

    line 16
  2. Very specific:

    Always --dry-run first: if the user is unsure (borderline case)

    line 89
  3. Distinctive:

    Incoming refs: if > 5 other notes point to this path, alert explicitly

    line 91
  4. Distinctive:

    Parent AGENTS.md: if archiving a client project (not the whole client), update its AGENTS.md to mention the archiving

    line 92

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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>
FlagLongDescription
-t--typeEntity type: `clientpartnerinternalpersonal`. Auto-deduced if absent
-f--forceSkip the "inactive for 6 months" check, archive directly
-a--autoSkip user confirmations
--dry-runno valueShow 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>

StepFilePurpose
00steps/step-00-init.mdParse args, resolve {source_path}, {target_path}, {type}
01steps/step-01-confirm.mdAudit last activity, incoming references, user confirmation
02steps/step-02-move.mdgit mv, update the parent AGENTS.md, update references
03steps/step-03-reindex.mdgenerate_indexes.py + bm reindex + check_double_frontmatter

</step_files>

<state_variables>

VariableTypeSet by
{slug}stringstep-00
{type}enum (client|partner|internal|personal)step-00
{source_path}stringstep-00 (sources/{type}/{slug}/ or sources/{type}/{slug}/{project}/)
{target_path}stringstep-00 (archives/{type}/{slug}/)
{is_project_scope}booleanstep-00 (true if slug = "X/Y", we archive only project Y)
{last_activity_date}datestep-01
{months_inactive}numberstep-01
{incoming_refs}liststep-01 (other files that point to the path)
{dry_run}booleanstep-00
{auto_mode}booleanstep-00
{force_mode}booleanstep-00
{post_mortem_only}booleanstep-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 reindex mandatory 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>

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.