openspec-bulk-archive-change
Skill1 starsChanged 57 days agoMITView on GitHub
Archive multiple completed changes at once. Use when archiving several parallel changes.
58 other projects use a version of this, 54 of them edited.
Adopted by
Most recently taken up by
- ValorVie/custom-skillsedited, first seen Nov 8, 2026
- FuDesign2008/open-skillsedited, first seen Nov 6, 2026
- theoden8/webspace_appedited, first seen Nov 2, 2026
- 200iqlabs/shared-skillsedited, first seen Nov 1, 2026
- redhat-developer/rhdh-skillstheir own version, first seen Oct 23, 2026
- Artexis10/exomemedited, first seen Oct 20, 2026
Used with
Projects with it also use draft-openspec-docs, release-openspec and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
goernSkilldraft-openspec-docs
Collaborative page-drafting mode for the OpenSpec docs. Builds a scratch plan inside the target page (purpose, structure, numbered draft steps), iterates on it with the user, then drafts one section per approved step and cleans up after itself. Use when a page needs a from-scratch rewrite or a new page is being shaped with the user in the loop.
Also in 3 projects that use this
goernSkillrelease-openspec
Use this skill when releasing OpenSpec: audit merged work and changeset coverage, decide whether a catch-up changeset PR is needed, prepare or resume the Changesets Version Packages PR, cut a beta or stable release, verify publishing, and polish GitHub release notes. Also use when asked whether an open release PR is complete, what the next release step is, or to continue a release paused for human approval.
Also in 3 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
- +2 more from goern
Other versions58 projects use a version of this.
Word for word · 1
- yonyong/Janus★ 4100% same
Edited · 54
- Fission-AI/OpenSpec★ 74k69% same
- alibaba/druid★ 28k72% same
- PBH-BTN/PeerBanHelper★ 6.4k72% same
- fengshao1227/ccg-workflow★ 6k72% same
- Soju06/codex-lb★ 3.3k73% same
- Draculabo/AntigravityManager★ 2.5k72% same
- microsoft/rayfin★ 64671% same
- mckinsey/agents-at-scale-ark★ 43873% same
- atilladeniz/Kubeli★ 38773% same
- kalbasit/ncps★ 34774% same
44 more not listed
Wrote their own version · 3
- studyzy/imewlconverter★ 10ksame name
- studyzy/OpenSpec-cn★ 1.3ksame name
- redhat-developer/rhdh-skills★ 20same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- architect-reviewerSkill
- backend-architectSkill
- backend-developerSkill
- code-architectSkill
- codebase-explorerSkill
- code-reviewerSkill
- code-simplifierSkill
- debuggerSkill
- error-detectiveSkill
- fullstack-developerSkill
- git-workflow-managerSkill
- legacy-modernizerSkill
- pragmatic-architectSkill
- prdSkill
- qa-expertSkill
- research-technical-spikeSkill
- sdd-spec-writerSkill
- security-auditorSkill
- supply-chain-securitySkill
- task-decomposition-expertSkill
- technical-debt-managerSkill
- test-engineerSkill
- typescript-proSkill
- architecture-decision-recordsSkill
- hermes-sdd-packagingSkill
- bug-diagnosisSkill
- build-craftSkill
- code-healthSkill
- code-review-checklistSkill
- commit-smartSkill
- context-architectureSkill
- design-explorationSkill
- design-to-htmlSkill
- developer-experience-reviewSkill
- diagram-tripletSkill
- dispatching-parallel-agentsSkill
- document-diataxisSkill
- e2e-testing-patternsSkill
- executing-plansSkill
- module-designSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- openspec-verify-changeSkill
- plan-scope-reviewSkill
- project-learningsSkill
- qa-test-plannerSkill
- requirements-claritySkill
- review-structuralSkill
- security-evidence-firstSkill
- agency-invocationSkill
- hermes-sdd-orchestrationSkill
- openspec-sddSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. 13 are common, 11 are distinctive, and 8 are very specific to this project.
13
Common
Most of the 55 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Run openspec list --json to get all active changes.
- Common: line 29
If no active changes exist, inform user and stop.
- Distinctive: line 33
Ask the user to choose changes (multi-select):
- Common: line 38
IMPORTANT: Do NOT auto-select. Always let the user choose.
- Distinctive: line 57
Keep both fields separate from conflict analysis, explicit user choices, resolved paths, CLI checks, and command contracts.
- Common: line 75
If no tasks file exists, note as "No tasks"
- Very specific: line 80
Treat this list as the only delta-spec source.
- Common: line 103
Look for code implementing requirements from each delta spec
- Common: line 104
Check for related files, functions, or tests
- Common: line 107
If only one change is actually implemented -> sync that one's specs
- Common: line 108
If both implemented -> apply in chronological order (older first, newer overwrites)
- Common: line 109
If neither implemented -> skip spec sync, warn user
- Distinctive: line 144
Ask the user a single confirmation question:
- Common: line 152
If there are incomplete changes, make clear they'll be archived with warnings.
- Distinctive: line 161
Before step 8 writes the first main spec or moves any change, fetch every required specs-rule snapshot for the confirmed batch.
- Distinctive: line 166
If any lookup exits non-zero or returns invalid artifact-instruction JSON, identify the affected change, report the error, and stop the …
- Distinctive: line 173
Before processing, carry the recorded decisions from step 5 (after any step 7 re-derivation) into two per-delta sets:
- Very specific: line 181
Run the openspec-sync-specs workflow inline (agent-driven intelligent merge) only for changes with entries in includedDeltas, passing only …
- Very specific: line 188
Do not delegate to a background task — step 8c would move changeRoot out from under a sync that is still reading it.
- Distinctive: line 189
If a change has no included delta specs, do not run the sync workflow for it.
- Distinctive: line 193
Verify that main specs are updated:
- Very specific: line 198
Do not verify delta specs in excludedDeltas.
- Very specific: line 199
If sync failed or any capability does not match verification, report what differs and fail/skip moving that change's changeRoot — do not …
- Common: line 315
Always prompt for selection, never auto-select
- Common: line 317
When both changes are implemented, apply specs in chronological order
- Common: line 320
Use single confirmation for entire batch
- Distinctive: line 321
Never archive after the user cancels the confirmation — a cancelled batch archives nothing
- Common: line 325
If archive target exists, fail that change but continue with others
- Very specific: line 326
If sync is requested, run the openspec-sync-specs workflow inline (agent-driven) for each change with included delta specs
- Very specific: line 329
Never archive a change while a spec sync is still in flight — run the sync inline and verify main specs at …
- Distinctive: line 337
Keep runtime inputs, conflict analysis, CLI-derived values, and artifact rules separate
- Distinctive: line 339
Never copy runtime input or artifact-rule text verbatim into output files
“Common” is measured: kept by at least 6 in 10 of the 55 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
Store selection: If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run openspec store list --json to discover registered store ids, then pass --store <id> on the commands that read or write specs and changes (new change, status, instructions, list, show, validate, archive, doctor, context, schemas, view). Once selected, treat --store <id> as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run openspec status --change "<name>" --json --store "<id>", not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local openspec/ root.
<capability-path> is the spec directory relative to specs/ (for example, user-auth or identity/user-auth). Preserve the full path from each delta spec when resolving its main spec.
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
Ask the user to choose changes (multi-select):
- 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.
Load current archive inputs once for the selected root before batch validation:
Choose one selected change from this root and run
openspec instructions archive --change "<selected-change>" --jsonwith the same selected-root flags. This lookup is advisory and optional: it only supplies extra prompt inputs, so it must never block the batch. If it fails or returns invalid JSON — for example on an older CLI that does not support this command yet — continue the batch with no context and no operation guidance. Do not report an error and do not stop.A valid response may omit
contextandoperationGuidance. Treatcontextas a required prompt-level input across the batch: read and consider it, and apply relevant project facts, conventions, and constraints. TreatoperationGuidanceas optional additive advice: read and consider every entry, and follow entries that are applicable and compatible with the built-in batch workflow.Keep both fields separate from conflict analysis, explicit user choices, resolved paths, CLI checks, and command contracts. If context conflicts with one of those controlling inputs, report the conflict and preserve the controlling value. If guidance is inapplicable or conflicts with a controlling input, do not follow it and explain why. Do not infer skipped prompts, replacement paths, or flags from either field, and do not copy their text verbatim into specs, changes, or summaries. These are prompt-level behavior contracts, not enforceable checks.
Batch validation - gather status for all selected changes
For each selected change, collect:
a. Artifact status - Run
openspec status --change "<name>" --json- Parse
schemaName,artifacts,planningHome,changeRoot,artifactPaths, andactionContext - Note which artifacts are
donevs other states
b. Task completion - Read
artifactPaths.tasks.existingOutputPathsfrom status JSON- Count
- [ ](incomplete) vs- [x](complete) - If no tasks file exists, note as "No tasks"
c. Delta specs - Check
artifactPaths.specs.existingOutputPathsfrom status JSON- List which capability specs exist
- For each, extract requirement names (lines matching
### Requirement: <name>) - Treat this list as the only delta-spec source. If the
specsentry is missing or the list is empty, perform no spec sync or specs-instruction lookup for that change; do not infer deltas from unrelated artifacts. - Evaluate this independently for every change, including mixed-schema
batches where some schemas have no
specsartifact.
- Parse
Detect spec conflicts
Build a map keyed by
<capability-path>, the exact path relative tospecs/:identity/user-auth -> [change-a, change-b] <- CONFLICT (2+ changes) billing/user-auth -> [change-c] <- OK (different full path)A conflict exists when 2+ selected changes have delta specs for the exact same
<capability-path>.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:
- An inclusion or exclusion decision for every delta spec, keyed by change and
<capability-path> - Which included delta specs to apply and in what order
- Which delta specs to exclude from sync because their implementation is missing
- 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 | identity/user-auth (!) | Ready* | | add-verify-skill | 1 left | 2/5 | None | None | Warn |For conflicts, show the resolution:
* Conflict resolution: - identity/user-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
Ask the user a single confirmation question:
- "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.
Route on the answer by intent, not by exact label — you wrote these labels, so match what the user picked rather than the wording above:
- "Cancel" — stop, do not archive. Report that nothing was archived and skip the remaining steps.
- The archive-everything option — proceed with every selected change
- The ready-only option — proceed with only the changes the step 6 table marks
ReadyorReady*, and record the rest as Skipped in step 8d. If aReady*change's conflict partner is skipped, re-derive that conflict's resolution using only the changes being archived. - Anything else — ask again rather than archiving
Before step 8 writes the first main spec or moves any change, fetch every required specs-rule snapshot for the confirmed batch. For each change that will sync concrete
artifactPaths.specs.existingOutputPaths, runopenspec instructions specs --change "<name>" --jsonexactly once with the same selected-root flags. Obtain all snapshots before the first write or move. If any lookup exits non-zero or returns invalid artifact-instruction JSON, identify the affected change, report the error, and stop the whole batch before any main-spec write or change move. Do not treat lookup failure as omitted rules. A valid response withoutrulesis the no-rules case.Execute archive for each confirmed change
Before processing, carry the recorded decisions from step 5 (after any step 7 re-derivation) into two per-delta sets:
includedDeltas: all non-conflicting delta specs from confirmed changes plus conflict deltas selected for syncexcludedDeltas: conflict deltas from confirmed changes excluded because their implementation is missing- A single change can have both included and excluded delta specs. Keep the decision per delta; do not collapse it into a per-change sync flag.
Process changes in the determined order (respecting conflict resolution):
a. Sync included delta specs:
- Run the
openspec-sync-specsworkflow inline (agent-driven intelligent merge) only for changes with entries inincludedDeltas, passing only the included delta paths and explicitly instructing it to ignore that change'sexcludedDeltas. Wait for it to finish. - For conflicts, apply in resolved order.
- Pass that change's fetched specs-rule snapshot into inline sync; inline sync must reuse it without fetching instructions again
- Apply artifact rules only to main specs produced by that change. They do not change conflict resolution, archive behavior, or CLI contracts, and their text is not copied into an output file
- Do not delegate to a background task — step 8c would move
changeRootout from under a sync that is still reading it. - If a change has no included delta specs, do not run the sync workflow for it.
b. Verify included delta specs before moving changeRoot:
- Re-run the comparison only for delta specs in
includedDeltasagainst main spec at<planningHome.root>/openspec/specs/<capability-path>/spec.md(use the store-awareplanningHome.rootfrom step 3 status JSON, not a hardcoded repo path). - Verify that main specs are updated:
- ADDED requirements present
- MODIFIED requirements carrying scenario and description changes named in the delta, with their other scenarios intact
- REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving
## Requirementsempty), its main spec deleted rather than left empty; a spec the sync deliberately kept and reported is also a match - RENAMED requirements present under the new name and absent under the old one
- Do not verify delta specs in
excludedDeltas; they are intentionally left unsynced. - If sync failed or any capability does not match verification, report what differs and fail/skip moving that change's
changeRoot— do not archive that change.changeRootremains intact.
c. Perform the archive:
Target name: use the change name as-is when it already starts with a
YYYY-MM-DD-prefix; otherwise prepend the current date asYYYY-MM-DD-<name>(same rule asopenspec archive).mkdir -p "<planningHome.changesDir>/archive" mv "<changeRoot>" "<planningHome.changesDir>/archive/<target-name>"d. Track outcome for each change:
- Success: archived successfully
- Failed: error during archive or spec verification (record error)
- Skipped: user chose not to archive (if applicable)
- Sync skipped: for every delta in
excludedDeltas, reportsync skippedwith the change,<capability-path>, and recorded reason. This is distinct from skipping the archive.
Display summary
Show final results:
## Bulk Archive Complete Archived 3 changes: - schema-management-cli -> archive/2026-01-19-schema-management-cli/ - project-config -> archive/2026-01-19-project-config/ - add-oauth -> archive/2026-01-19-add-oauth/ Skipped 1 change: - add-verify-skill (user chose not to archive incomplete) Spec sync summary: - 4 delta specs synced to main specs - 1 delta spec sync skipped (add-jwt, identity/user-auth: implementation not found) - 1 conflict resolved (identity/user-auth: synced add-oauth, skipped add-jwt)If any failures:
Failed 1 change: - some-change: Archive directory already exists
Conflict Resolution Examples
Example 1: Only one implemented
Conflict: <planningHome.root>/openspec/specs/auth/spec.md touched by [add-oauth, add-jwt]
Checking add-oauth:
- Delta adds "OAuth Provider Integration" requirement
- Searching codebase... found src/auth/oauth.ts implementing OAuth flow
Checking add-jwt:
- Delta adds "JWT Token Handling" requirement
- Searching codebase... no JWT implementation found
Resolution: Only add-oauth is implemented. Will sync add-oauth specs only.Example 2: Both implemented
Conflict: <planningHome.root>/openspec/specs/api/spec.md touched by [add-rest-api, add-graphql]
Checking add-rest-api (created 2026-01-10):
- Delta adds "REST Endpoints" requirement
- Searching codebase... found src/api/rest.ts
Checking add-graphql (created 2026-01-15):
- Delta adds "GraphQL Schema" requirement
- Searching codebase... found src/api/graphql.ts
Resolution: Both implemented. Will apply add-rest-api specs first,
then add-graphql specs (chronological order, newer takes precedence).Output On Success
## Bulk Archive Complete
Archived N changes:
- <change-1> -> archive/<target-name-1>/
- <change-2> -> archive/<target-name-2>/
Spec sync summary:
- N delta specs synced to main specs
- No conflicts (or: M conflicts resolved)Output On Partial Success
## Bulk Archive Complete (partial)
Archived N changes:
- <change-1> -> archive/<target-name-1>/
Skipped M changes:
- <change-2> (user chose not to archive incomplete)
Failed K changes:
- <change-3>: Archive directory already existsOutput When No Changes
## No Changes to Archive
No active changes found. Create a new change to get started.Guardrails
- Allow any number of changes (1+ is fine, 2+ is the typical use case)
- Always prompt for selection, never auto-select
- Detect spec conflicts early and resolve by checking codebase
- When both changes are implemented, apply specs in chronological order
- Skip spec sync only when implementation is missing (warn user)
- Show clear per-change status before confirming
- Use single confirmation for entire batch
- Never archive after the user cancels the confirmation — a cancelled batch archives nothing
- Track and report all outcomes (success/skip/fail)
- Preserve .openspec.yaml when moving to archive
- Archive directory target uses current date: YYYY-MM-DD-
<name>; a name that already starts with aYYYY-MM-DD-prefix is used as-is (never stack a second date) - If archive target exists, fail that change but continue with others
- If sync is requested, run the
openspec-sync-specsworkflow inline (agent-driven) for each change with included delta specs - Carry the per-delta
includedDeltasandexcludedDeltasdecisions into execution; sync and verify only included deltas - Report every excluded delta as
sync skippedwithout treating the archive itself as skipped - Never archive a change while a spec sync is still in flight — run the sync inline and verify main specs at
<planningHome.root>/openspec/specs/<capability-path>/spec.mdbefore movingchangeRoot - Fetch archive inputs once per selected root before spec inspection or moves
- Fetch all required specs-rule snapshots before the batch's first main-spec write or move
- A failed archive-inputs lookup never blocks the batch; it proceeds with no context or guidance
- A failed specs instruction lookup stops the whole batch atomically
- Changes without concrete
artifactPaths.specs.existingOutputPathscontinue without spec sync - Apply relevant runtime context across the batch and report conflicts
- Operation guidance remains advisory; consider every entry and explain rejected advice
- Keep runtime inputs, conflict analysis, CLI-derived values, and artifact rules separate
- Artifact rules constrain only written specs
- Never copy runtime input or artifact-rule text verbatim into output files
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

