spec-driven-archive
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Archive a completed spec-driven change. Requires completed tasks, merges delta specs into main specs, then moves the change to archive/ with a date prefix.
14installs
Added on
NPX Install
npx skill4agent add kw12121212/auto-spec-driven spec-driven-archiveTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →You are helping the user archive a completed spec-driven change.
Prerequisites
The directory must exist at the project root. Before proceeding, verify:
.spec-driven/ls .spec-driven/If this fails, the project is not initialized. Run first.
/spec-driven-initSteps
-
Select the change — runto list active changes. Ask which change to archive. If already specified, use it.
node {{SKILL_DIR}}/scripts/spec-driven.js modify -
Check for incomplete tasks — run:
node {{SKILL_DIR}}/scripts/spec-driven.js apply <name>If, stop — archiving is not allowed until all tasks are complete. List the incomplete tasks and suggestremaining > 0or/spec-driven-apply <name>./spec-driven-cancel <name> -
Merge delta specs — list all files in:
.spec-driven/changes/<name>/specs/- If is empty: ask the user to confirm this change has no observable spec impact before continuing.
specs/ - For each delta file (e.g. ), merge into the corresponding main spec file (e.g.
specs/install/install-behavior.md):.spec-driven/specs/install/install-behavior.md- ADDED: append the blocks to the target file (create it if it doesn't exist)
### Requirement: - MODIFIED: locate the existing block by name and replace it in place
### Requirement: <name> - REMOVED: locate the block by name and delete it; remove the file if it becomes empty
### Requirement: <name>
- ADDED: append the
- Briefly summarize what changed in after merging.
specs/
- If
-
Update specs/INDEX.md — after merging, update:
.spec-driven/specs/INDEX.md- Add entries for any newly created spec files (with a one-line description)
- Remove entries for any deleted spec files
- Leave existing entries unchanged unless the file's scope changed
-
Archive the change — run:
node {{SKILL_DIR}}/scripts/spec-driven.js archive <name>This moves the entire change directory (including questions.md) to the archive. -
Confirm — report the result:
- Where the change was moved to (e.g. )
.spec-driven/changes/archive/2024-01-15-<name>/ - Suggest running if there's follow-up work
/spec-driven-propose
- Where the change was moved to (e.g.
Rules
- Always check for incomplete tasks before archiving
- Never archive a change with incomplete tasks
- Always merge delta specs before archiving — this is a hard gate, not optional
- If is empty, require explicit human confirmation that the change has no observable spec impact
changes/<name>/specs/ - Deleting requirements or empty spec files in is allowed when applying
.spec-driven/specs/delta entriesREMOVED - Do not delete the change directory manually — archive the change by running the archive command