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.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- coograph-initSkill
- coograph-applySkill
- coograph-disable-multi-modelsSkill
- coograph-exploreSkill
- coograph-initSkill
- coograph-new-ticketSkill
- coograph-proposeSkill
- coograph-rebuild-graphSkill
- coograph-retroSkill
- coograph-suggest-multi-modelsSkill
- coograph-ultra-reviewSkill
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
- Very specific: line 17
If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.
- Distinctive: line 19
If no name is provided:
- Distinctive: line 21
Ask the user to select — do NOT auto-select
- Very specific: line 25
Read tasks.md and count:
- Distinctive: line 29
If incomplete tasks exist, warn the user:
- Distinctive: line 32
Wait for confirmation before proceeding.
- Very specific: line 36
Look for openspec/changes/<name>/specs/ — if it contains spec files, compare each against its counterpart in …
- Distinctive: line 38
If delta specs exist:
- Distinctive: line 40
Ask: "Sync these specs to the main spec files before archiving?"
- Distinctive: line 41
If yes: merge each delta spec into its corresponding main spec file.
- Distinctive: line 42
If no: proceed without syncing (delta specs will be archived with the change)
- Distinctive: line 44
If no delta specs exist: skip this step.
- Distinctive: line 48
Create the archive directory if it doesn't exist:
- Distinctive: line 55
Check if the target already exists — if so, fail with a clear error and ask the user how to proceed.
- Distinctive: line 81
If the file does not exist or the command fails: skip this step silently.
- Distinctive: line 88
Never auto-select a change — always ask the user
- Distinctive: line 89
Always check task completion and warn if incomplete — never silently skip
- Distinctive: line 90
Always run the delta spec assessment if specs exist
- Distinctive: line 91
If the archive target already exists, fail clearly — do not overwrite
≈ “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.
Files
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/(excludingarchive/) - 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/archiveGenerate 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
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.

