archive
Skill4 starsChanged 9 months agoMITView on GitHub
Complete a change by merging delta specs into main specs and archiving. Use when implementation is done, all tasks are complete, or ready to finalize a change.
We split this skill into the rules it gives an agent
19 rules. 0 are common, 13 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Arguments: If $ARGUMENTS is provided, use it as the name parameter.
- Very specific: line 27
If any task is not done:
- Very specific: line 33
If specs/.delta/<name>/tasks.md does not exist:
- Distinctive: line 40
If unsatisfied dependencies exist:
- Distinctive: line 42
Ask to proceed anyway or archive dependency first
- Distinctive: line 47
Check if this change is part of a circular dependency.
- Distinctive: line 53
Before showing any diffs, validate all delta operations:
- Distinctive: line 57
Check if requirement exists in corresponding main spec
- Very specific: line 58
If not found, error: "Cannot modify 'X': requirement not found in specs/Y.md"
- Distinctive: line 60
Check if requirement already exists in main spec
- Very specific: line 61
If found, error: "Cannot add 'X': requirement already exists in specs/Y.md"
- Distinctive: line 62
If any validation fails, stop immediately - no files are modified
- Distinctive: line 66
Before proceeding with merge:
- Distinctive: line 72
Ask: "Proceed anyway or resolve conflict first?"
- Very specific: line 78
Read the corresponding main spec in specs/ (or create if new)
- Distinctive: line 82
After showing all diffs, require explicit confirmation:
- Distinctive: line 84
Ask: "Apply these changes?
- Distinctive: line 86
Only proceed on explicit "y" or "yes"
- Distinctive: line 102
Write updated main spec
“Common” is measured: kept by at least 6 in 10 of the 16 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
/ds:archive [name] - Complete and archive a change
Merge delta specs into main specs and archive the change.
Arguments: If $ARGUMENTS is provided, use it as the name parameter. Otherwise, follow the determination logic below.
Note: This skill performs permanent operations (merging specs). When tasks exist, all must be marked done before archiving proceeds.
Step 0: Version Check
See version-check.md for the standard version compatibility check procedure.
Step 1: Determine which change
See determine-change.md for the standard change resolution procedure. If none → nothing to archive.
Step 2: Check task completion
If specs/.delta/<name>/tasks.md exists:
- Parse all
## Task N:sections - Extract
- **Status:** <value>for each task - If any task is not
done:- Error: "Cannot archive: N task(s) incomplete (X pending, Y in_progress)"
- List incomplete tasks by title and status
- "Mark tasks as done or remove them from tasks.md, then retry."
- Stop — do not proceed
If specs/.delta/<name>/tasks.md does not exist:
- Warn: "No tasks.md found. Ensure implementation is complete before archiving."
- Proceed (informational only)
Step 3: Check dependencies
- Parse Dependencies from proposal
- If unsatisfied dependencies exist:
- Warn: "This change depends on
<name>which should be archived first." - Ask to proceed anyway or archive dependency first
- Warn: "This change depends on
- Archiving out of order may result in specs that reference requirements that don't exist yet
Step 4: Check for cycles
Check if this change is part of a circular dependency.
See cycle-detection.md for the cycle detection algorithm. Follow the Warn with override flow (archiving may break the cycle).
Step 5: Pre-validate references
Before showing any diffs, validate all delta operations:
- Parse all delta specs in
specs/.delta/<name>/specs/ - For each MODIFIED/REMOVED requirement:
- Check if requirement exists in corresponding main spec
- If not found, error: "Cannot modify 'X': requirement not found in specs/Y.md"
- For each ADDED requirement:
- Check if requirement already exists in main spec
- If found, error: "Cannot add 'X': requirement already exists in specs/Y.md"
- If any validation fails, stop immediately - no files are modified
Step 6: Check for conflicts
Before proceeding with merge:
- Scan other active changes in
specs/.delta/for overlapping modifications - For each delta spec, check if another change also MODIFIES or REMOVES the same requirement
- If conflict found:
- Warn: "Conflict: 'X' is also modified by change 'Y'"
- Ask: "Proceed anyway or resolve conflict first?"
- Uses same conflict detection logic as
/ds:status
Step 7: Merge delta specs with confirmation
For each delta spec in specs/.delta/<name>/specs/:
- Read the corresponding main spec in
specs/(or create if new) - Apply delta operations in order: RENAMED → REMOVED → MODIFIED → ADDED
- Show the diff for all files
After showing all diffs, require explicit confirmation:
- Show summary: "Will modify: commands.md, workflow.md"
- Ask: "Apply these changes? [y/N]"
- Default to No - empty input or "n" cancels
- Only proceed on explicit "y" or "yes"
Step 8: Archive
- Move entire folder to
specs/.delta/archive/YYYY-MM-DD-<name>/ - Summarize what was merged
Merge Algorithm
- Parse main spec into requirement blocks (
### Requirement: Xthrough next requirement or EOF) - Parse delta into operations by section
- Apply in order:
- RENAMED: Update requirement name
- REMOVED: Delete the block (fails if name doesn't exist)
- MODIFIED: Replace entire block (fails if name doesn't exist)
- ADDED: Append to end of Requirements section (fails if name exists)
- Write updated main spec
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- ReScienceLab/opc-skills★ 1.9ksame name
- egregore-labs/egregore★ 293same name
- matthewdigiuseppe/MStack★ 17same name
- bks-lab/open-bridge★ 13same name
- serbanghita/plan-critique-skills★ 13same name
- kirkchen/beat★ 9same name
- grasscaograss/AwesomeWeldoneSkills★ 2same name
- jcordon5/archive-skill★ 2same name
- philippe-desplats/second-brain★ 2same name
- ReScienceLab/TrySkills★ 2same name
10 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.
Used alongsideProjects with it also use handoff.
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.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
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.

