openspec-bulk-archive-change — community openspec-bulk-archive-change, metacubexd, community, ide skills, Claude Code, Cursor, Windsurf

v1.0
GitHub

About this Skill

Perfect for Code Management Agents needing bulk archiving capabilities with intelligent spec conflict resolution. Mihomo Dashboard, The Official One, XD

MetaCubeX MetaCubeX
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The openspec-bulk-archive-change skill by MetaCubeX is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Code Management Agents needing bulk archiving capabilities with intelligent spec conflict resolution.

Core Value

Empowers agents to batch-archive changes, handling spec conflicts by checking the codebase to determine implemented changes, utilizing the `openspec list --json` command for active change retrieval.

Capabilities Granted for openspec-bulk-archive-change

Batch-archiving multiple completed changes
Intelligently resolving spec conflicts during archiving
Automating change management workflows

! Prerequisites & Limits

  • Requires `openspec` command-line tool availability
  • No active changes results in termination
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

openspec-bulk-archive-change

Install openspec-bulk-archive-change, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

SKILL.md
Readonly

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.

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

  3. 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>)
  4. 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.

  5. 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)
  6. 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
    
  7. 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.

  8. 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
    1mkdir -p openspec/changes/archive 2mv 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)
  9. 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:
- <change-1> -> archive/YYYY-MM-DD-<change-1>/
- <change-2> -> archive/YYYY-MM-DD-<change-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/YYYY-MM-DD-<change-1>/

Skipped M changes:
- <change-2> (user chose not to archive incomplete)

Failed K changes:
- <change-3>: 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-<name>
  • If archive target exists, fail that change but continue with others

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is openspec-bulk-archive-change?

Perfect for Code Management Agents needing bulk archiving capabilities with intelligent spec conflict resolution. Mihomo Dashboard, The Official One, XD

How do I install openspec-bulk-archive-change?

Run the command: npx killer-skills add MetaCubeX/metacubexd/openspec-bulk-archive-change. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for openspec-bulk-archive-change?

Key use cases include: Batch-archiving multiple completed changes, Intelligently resolving spec conflicts during archiving, Automating change management workflows.

Which IDEs are compatible with openspec-bulk-archive-change?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for openspec-bulk-archive-change?

Requires `openspec` command-line tool availability. No active changes results in termination.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add MetaCubeX/metacubexd/openspec-bulk-archive-change. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use openspec-bulk-archive-change immediately in the current project.

Related Skills

Looking for an alternative to openspec-bulk-archive-change or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI