agentleFS
paullukicpaullukic/coograph/.github/skills/coograph-archive/SKILL.md

coograph-archive

Skill17 starsChanged 7 months agoMITView on GitHub

Archive a completed change. Use when implementation is done and the change is ready to be moved to the archive.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 16 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.

    line 17
  2. Distinctive:

    If no name is provided:

    line 19
  3. Distinctive:

    Ask the user to select — do NOT auto-select

    line 21
  4. Very specific:

    Read tasks.md and count:

    line 25
  5. Distinctive:

    If incomplete tasks exist, warn the user:

    line 29
  6. Distinctive:

    Wait for confirmation before proceeding.

    line 32
  7. Very specific:

    Look for openspec/changes/<name>/specs/ — if it contains spec files, compare each against its counterpart in …

    line 36
  8. Distinctive:

    If delta specs exist:

    line 38
  9. Distinctive:

    Ask: "Sync these specs to the main spec files before archiving?"

    line 40
  10. Distinctive:

    If yes: merge each delta spec into its corresponding main spec file.

    line 41
  11. Distinctive:

    If no: proceed without syncing (delta specs will be archived with the change)

    line 42
  12. Distinctive:

    If no delta specs exist: skip this step.

    line 44
  13. Distinctive:

    Create the archive directory if it doesn't exist:

    line 48
  14. Distinctive:

    Check if the target already exists — if so, fail with a clear error and ask the user how to proceed.

    line 55
  15. Distinctive:

    If the file does not exist or the command fails: skip this step silently.

    line 81
  16. Distinctive:

    Never auto-select a change — always ask the user

    line 88
  17. Distinctive:

    Always check task completion and warn if incomplete — never silently skip

    line 89
  18. Distinctive:

    Always run the delta spec assessment if specs exist

    line 90
  19. Distinctive:

    If the archive target already exists, fail clearly — do not overwrite

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Archive a completed OpenSpec change by moving it from openspec/changes/ to openspec/changes/archive/.


Step 1: Identify the change

If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.

If no name is provided:

  • List directories in openspec/changes/ (excluding archive/)
  • Ask the user to select — do NOT auto-select

Step 2: Check task completion

Read tasks.md and count:

  • - [x] items (complete)
  • - [ ] items (incomplete)

If incomplete tasks exist, warn the user:

"X tasks are still incomplete. Archive anyway?"

Wait for confirmation before proceeding. Do not skip this check.

Step 3: Check for delta specs

Look for openspec/changes/<name>/specs/ — if it contains spec files, compare each against its counterpart in openspec/specs/<capability>/spec.md.

If delta specs exist:

  • Show what would change (additions, modifications, removals)
  • Ask: "Sync these specs to the main spec files before archiving?"
  • If yes: merge each delta spec into its corresponding main spec file. Show what was merged.
  • If no: proceed without syncing (delta specs will be archived with the change)

If no delta specs exist: skip this step.

Step 4: Archive

Create the archive directory if it doesn't exist:

mkdir -p openspec/changes/archive

Generate the target name: YYYY-MM-DD-<slug> using today's date.

Check if the target already exists — if so, fail with a clear error and ask the user how to proceed.

Move the change directory:

mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<slug>

Step 5: Report

## Archive Complete

**Change:** <name>
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<slug>/
**Specs:** [Synced to main specs / No delta specs / Sync skipped]
**Tasks:** [All complete / X incomplete — user confirmed]

Step 6: Offer a retro

A finished change is the natural moment to check how the guardrails held up. Run:

python3 .github/retro/retro.py --status
  • If the file does not exist or the command fails: skip this step silently. Retro is not enabled here.
  • Exit code 0: ask exactly one line and wait: Run /coograph-retro now? (<n> sessions since last retro) using the number the command printed. Default is no. Do not run it unprompted.
  • Exit code 4: say Retro is not enabled, but <n> archived changes are enough to bootstrap it. Run /coograph-retro when you want. and continue.
  • Any other exit code: say nothing.

Guardrails

  • Never auto-select a change — always ask the user
  • Always check task completion and warn if incomplete — never silently skip
  • Always run the delta spec assessment if specs exist
  • If the archive target already exists, fail clearly — do not overwrite
  • Show a summary of what happened

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.