openspec-bulk-archive-change
What it does
This skill archives multiple completed OpenSpec changes at once, checking that the codebase matches each change. It is for developers who run several parallel changes in OpenSpec.
When to use it
- ✓When several parallel OpenSpec changes are finished and need archiving together.
- ✓When spec files conflict between changes and need checking against the code.
- ✓When you want to pick which changes to archive from a list.
Skill link
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Archive all the finished OpenSpec changes from this sprint, and check for spec conflicts first.”
5 new skills a week. 1 minute to read.
How it works
The agent lists the active changes, asks you to choose, checks each one's artifacts, tasks and specs, resolves conflicts by looking at the code, then archives the chosen changes.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 --jsonto 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
schemaNameandartifactslist - Note which artifacts are
donevs 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>)
- Parse
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
d. Record resolution for each conflict:
- Which change's specs to apply
- In what order (if both)
- Rationale (what was found in codebase)
Show consolidated status table
Display a table summarizing all changes:
| Change | Artifacts | Tasks | Specs | Conflicts | Status | |---------------------|-----------|-------|---------|-----------|--------| | schema-management | Done | 5/5 | 2 delta | None | Ready | | project-config | Done | 3/3 | 1 delta | None | Ready | | add-oauth | Done | 4/4 | 1 delta | auth (!) | Ready* | | add-verify-skill | 1 left | 2/5 | None | None | Warn |For conflicts, show the resolution:
* Conflict resolution: - auth spec: Will apply add-oauth then add-jwt (both implemented, chronological order)For incomplete changes, show warnings:
Warnings: - add-verify-skill: 1 incomplete artifact, 3 incomplete tasksConfirm batch operation
Use AskUserQuestion tool with a single confirmation:
- "Archive N changes?" with options based on status
- Options might include:
- "Archive all N changes"
- "Archive only N ready changes (skip incomplete)"
- "Cancel"
If there are incomplete changes, make clear they'll be archived with warnings.
Execute archive for each confirmed change
Process changes in the determined order (respecting conflict resolution):
a. Sync specs if delta specs exist:
- Use the openspec-sync-specs approach (agent-driven intelligent merge)
- For conflicts, apply in resolved order
- Track if sync was done
b. Perform the archive:
mkdir -p openspec/changes/archive mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>c. Track outcome for each change:
- Success: archived successfully
- Failed: error during archive (record error)
- Skipped: user chose not to archive (if applicable)
Display summary
Show final resul
FAQ
Does it archive changes without asking?
No. It asks you to choose which changes to archive and does not auto-select them.
How does it handle conflicting specs?
It checks the codebase to see what is actually implemented.
Do I need OpenSpec?
Yes. It works with OpenSpec changes and its command line tool.
Details
Original description by the author
Archive multiple completed changes at once. Use when archiving several parallel changes.
Popularity
- GitHub stars
- 6.0k
- Ranking position
- #14516
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
openspec-continue-change
6.0kHelps your agent continue an OpenSpec change by creating its next artifact, such as a proposal, spec, design or task list.
openspec-ff-change
6.0kHelps your agent create all the OpenSpec artifacts for a change in one go, so implementation can start without stepping through each one.
openspec-new-change
6.0kHelps your agent start a new OpenSpec change for a feature or fix, creating its folder and showing which artifacts to write next.
openspec-onboard
6.0kWalks you through your first complete OpenSpec change cycle, from picking a small task to implementing and archiving it, while explaining each step.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.