OpenSpec Archive Change
Use this skill when the user wants to archive a completed change.
Workflow
-
Resolve the target change.
- Prefer the user-provided name.
- Otherwise inspect active changes and ask only if more than one candidate remains.
-
Inspect change completion:
OPENSPEC_TELEMETRY=0 openspec status --change "<name>" --json
-
Read the tasks artifact if it exists and note incomplete checkboxes.
-
Warn about incomplete artifacts or tasks before archiving.
- If the user still wants to proceed, continue.
-
Archive with the built-in CLI:
OPENSPEC_TELEMETRY=0 openspec archive "<name>"
Useful variants:
OPENSPEC_TELEMETRY=0 openspec archive "<name>" --skip-specsfor tooling, infra, or doc-only changesOPENSPEC_TELEMETRY=0 openspec archive "<name>" -ywhen the user already explicitly confirmed archiving
- Summarize:
- archive result
- whether specs were updated or skipped
- whether any warnings were overridden
Notes
- Prefer the built-in
openspec archivecommand over manual file moves. - If the user wants delta specs synced without archiving, use
openspec-sync-specsinstead. - Archive before the delivery PR is opened or merged, so implementation, spec updates, and archive move land in one PR.
- Do not push archive commits directly to
master; if archive was missed before merge, create a follow-up PR and report the workflow miss. - OpenSpec CLI includes PostHog telemetry. Use
OPENSPEC_TELEMETRY=0by default. If PostHog flush/network errors appear after a successful command, treat them as telemetry noise.