Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jorgeferrando/sdd-skills/llms.txt
Use this file to discover all available pages before exploring further.
/sdd-archive closes the SDD cycle for a change. It merges the change’s delta specs into the project’s canonical specs so they reflect the current system state, updates the domain index, captures non-obvious decisions and anti-patterns in a learnings file, and moves the change folder to the archive for future reference. Run /sdd-archive after /sdd-verify has passed and the PR has been created.
Usage
Prerequisites
/sdd-verifycompleted — all checks green- PR created (done during
/sdd-verify) - All tasks in
tasks.mdmarked[x]
What it does
Verify state
Confirms the change is actually complete before touching any canonical files:Checks that
/sdd-verify passed and a PR exists. Stops if any condition is not met.Merge delta specs into canonical specs
The change specs at
openspec/changes/{change-name}/specs/ contain deltas — only the behaviors that changed. This step merges them into the canonical specs at openspec/specs/.For each openspec/changes/{change-name}/specs/{domain}/spec.md:- Reads the current canonical spec at
openspec/specs/{domain}/spec.md - Reads the change delta
- Merges: updates the canonical with new behaviors, rules, and decisions
- Updates the canonical metadata (version, date)
Update openspec/INDEX.md
Keeps the domain index synchronized with the canonical specs.If If
openspec/INDEX.md does not exist and openspec/specs/ contains domains, bootstraps a full index by reading each domain spec and generating one entry per domain:openspec/INDEX.md exists, updates the entries for domains modified by this change: refreshes summaries, adds new entities, and adds new keywords. If this change introduces a new domain, appends a new entry. Verifies that every directory in openspec/specs/ has a corresponding entry.Update learnings
Appends a new entry to Sections with nothing meaningful to say are omitted.
openspec/steering/learnings.md (creates the file if it does not exist). Captures only what is non-obvious and would help future changes — no boilerplate. Looks at discarded alternatives, re-opened tasks, unexpected domain couplings, and corrected conventions.Output
| Artifact | Result |
|---|---|
openspec/specs/{domain}/spec.md | Updated with merged delta |
openspec/INDEX.md | Updated with new/modified domain entries |
openspec/changes/archive/{date}-{change-name}/ | Full change history preserved |
openspec/steering/learnings.md | New entry appended |
Completion summary
After archive, the canonical specs are the source of truth for what the system currently does. Future
/sdd-explore runs will find the decisions made in this change — both what was chosen and what was discarded — through the learnings.md file and the archived change folder.Handling bugs found after archive
If a bug is discovered after the change has been archived:- Document it in the archived
tasks.mdunder## Bugs post-archive - Implement the fix and commit atomically
- Mark
[x]with the commit message
Skill metadata
| Property | Value |
|---|---|
model_hint | haiku |
requires | openspec/changes/{change}/tasks.md, openspec/changes/{change}/specs/*/spec.md |
produces | openspec/specs/*/spec.md, openspec/INDEX.md, openspec/changes/archive/, openspec/steering/learnings.md |