Archive multiple completed changes at once. Use when archiving several parallel changes.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Archive multiple completed changes at once. Use when archiving several parallel changes.
targets
["*"]
Archive multiple completed changes in a single operation.
This skill allows you to batch-archive changes, handling spec conflicts intelligently by checking the codebase to determine what's actually implemented.
Input: None required (prompts for selection)
Steps
Get active changes
Run openspec list --json to get all active changes.
If no active changes exist, inform user and stop.
Prompt for change selection
Use AskUserQuestion tool with multi-select to let user choose changes:
Show each change with its schema
Include an option for "All changes"
Allow any number of selections (1+ works, 2+ is the typical use case)
IMPORTANT: Do NOT auto-select. Always let the user choose.
Batch validation - gather status for all selected changes
For each selected change, collect:
a. Artifact status - Run openspec status --change "<name>" --json
Parse schemaName and artifacts list
Note which artifacts are done vs other states
b. Task completion - Read openspec/changes/<name>/tasks.md
Count - [ ] (incomplete) vs - [x] (complete)
If no tasks file exists, note as "No tasks"
c. Delta specs - Check openspec/changes/<name>/specs/ directory
List which capability specs exist
For each, extract requirement names (lines matching ### Requirement: <name>)
Detect spec conflicts
Build a map of capability -> [changes that touch it]:
auth -> [change-a, change-b] <- CONFLICT (2+ changes)
api -> [change-c] <- OK (only 1 change)
A conflict exists when 2+ selected changes have delta specs for the same capability.
Resolve conflicts agentically
For each conflict, investigate the codebase:
a. Read the delta specs from each conflicting change to understand what each claims to add/modify
b. Search the codebase for implementation evidence:
Look for code implementing requirements from each delta spec
Check for related files, functions, or tests
c. Determine resolution:
If only one change is actually implemented -> sync that one's specs
If both implemented -> apply in chronological order (older first, newer overwrites)
If neither implemented -> skip spec sync, warn user