AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Openspec Bulk Archive Change

skill-krkruk-openspec-vibe-with-esa-touch-openspec-bulk-archive-change · by krkruk

Archive multiple completed changes at once. Use when archiving several parallel changes.

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-krkruk-openspec-vibe-with-esa-touch-openspec-bulk-archive-change

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-krkruk-openspec-vibe-with-esa-touch-openspec-bulk-archive-change)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
Archived

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Openspec Bulk Archive Change? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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

  1. Get active changes

Run openspec list --json to get all active changes.

If no active changes exist, inform user and stop.

  1. 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.

  1. Batch validation - gather status for all selected changes

For each selected change, collect:

a. Artifact status - Run openspec status --change "" --json

  • Parse schemaName and artifacts list
  • Note which artifacts are done vs other states

b. Task completion - Read openspec/changes//tasks.md

  • Count - [ ] (incomplete) vs - [x] (complete)
  • If no tasks file exists, note as "No tasks"

c. Delta specs - Check openspec/changes//specs/ directory

  • List which capability specs exist
  • For each, extract requirement names (lines matching ### Requirement: )
  1. Detect spec conflicts

Build a map of capability -> [changes that touch it]:

``` auth -> [change-a, change-b] [change-c] 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)
  1. 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 tasks

```

  1. Confirm 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.

  1. 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: ``bash mkdir -p openspec/changes/archive mv openspec/changes/ openspec/changes/archive/YYYY-MM-DD- ``

c. Track outcome for each change:

  • Success: archived successfully
  • Failed: error during archive (record error)
  • Skipped: user chose not to archive (if applicable)
  1. 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 conflict resolved (auth: applied both in chronological order)

```

If any failures: ``` Failed 1 change:

  • some-change: Archive directory already exists

```

Conflict Resolution Examples

Example 1: Only one implemented

Conflict: 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: 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:
-  -> archive/YYYY-MM-DD-/
-  -> archive/YYYY-MM-DD-/

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:
-  -> archive/YYYY-MM-DD-/

Skipped M changes:
-  (user chose not to archive incomplete)

Failed K changes:
- : Archive directory already exists

Output When No Changes

## No Changes to Archive

No active changes found. Use `/opsx:new` to create a new change.

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
  • Track and report all outcomes (success/skip/fail)
  • Preserve .openspec.yaml when moving to archive
  • Archive directory target uses current date: YYYY-MM-DD-
  • If archive target exists, fail that change but continue with others

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.