openspec-bulk-archive-change
できること
このスキルは、コードベースが各変更と一致しているかを確認しながら、完了した複数のOpenSpecの変更を一度にアーカイブします。OpenSpecで並行する変更を多く動かしている開発者のためのものです。
使う場面
- ✓並行する複数のOpenSpecの変更が終わり、まとめてアーカイブする必要があるとき。
- ✓変更間でスペックファイルが衝突し、コードと照らして確認する必要があるとき。
- ✓一覧から、アーカイブする変更を選びたいとき。
スキルのリンク
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このスプリントで完了したOpenSpecの変更をすべてアーカイブしてください。その前に、スペックの衝突がないか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは有効な変更を一覧にして、選んでもらい、それぞれの成果物、タスク、スペックを確認し、コードを見て衝突を解消してから、選ばれた変更をアーカイブします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
確認なしにアーカイブしますか?
いいえ。どの変更をアーカイブするかを選んでもらい、自動で選ぶことはしません。
衝突するスペックはどう扱いますか?
コードベースを確認して、実際に実装されている内容を見ます。
OpenSpecが必要ですか?
はい。OpenSpecの変更とそのコマンドラインツールで動きます。
詳細
作者による元の説明
Archive multiple completed changes at once. Use when archiving several parallel changes.
人気
- GitHubのスター
- 6.0k
- ランキング
- #14516
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
openspec-continue-change
6.0kOpenSpecの変更の次の成果物(提案、スペック、設計、タスク一覧など)を作って、変更を進めるようエージェントを支援します。
openspec-ff-change
6.0kOpenSpecの変更に必要な成果物をすべて一度に作り、ひとつずつ進めなくても実装を始められるようにするようエージェントを支援します。
openspec-new-change
6.0k機能や修正のために新しいOpenSpecの変更を始め、そのフォルダを作り、次に書くべき成果物を示すようエージェントを支援します。
openspec-onboard
6.0k最初のOpenSpecの変更の一連の流れを案内します。小さなタスクを選ぶところから、実装、アーカイブまでを、各手順を説明しながら進めます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。