openspec-bulk-archive-change
Fungsinya
Skill ini mengarsipkan beberapa perubahan OpenSpec yang sudah selesai sekaligus, dengan memastikan basis kode sesuai dengan setiap perubahan. Skill ini untuk pengembang yang menjalankan beberapa perubahan paralel di OpenSpec.
Kapan dipakai
- ✓Saat beberapa perubahan OpenSpec paralel sudah selesai dan perlu diarsipkan bersama.
- ✓Saat file spesifikasi bertentangan antarperubahan dan perlu diperiksa terhadap kode.
- ✓Saat Anda ingin memilih perubahan mana yang diarsipkan dari sebuah daftar.
Link skill
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Arsipkan semua perubahan OpenSpec yang sudah selesai dari sprint ini, dan periksa dulu apakah ada konflik spesifikasi.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mendaftar perubahan yang aktif, meminta Anda memilih, memeriksa artefak, tugas, dan spesifikasi setiap perubahan, menyelesaikan konflik dengan melihat kode, lalu mengarsipkan perubahan yang dipilih.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah perubahan diarsipkan tanpa bertanya?
Tidak. Skill meminta Anda memilih perubahan mana yang diarsipkan dan tidak memilihnya sendiri.
Bagaimana skill menangani spesifikasi yang bertentangan?
Skill memeriksa basis kode untuk melihat apa yang benar-benar sudah diimplementasikan.
Apakah perlu OpenSpec?
Ya. Skill bekerja dengan perubahan OpenSpec dan alat baris perintahnya.
Detail
Deskripsi asli dari pembuat
Archive multiple completed changes at once. Use when archiving several parallel changes.
Popularitas
- Bintang GitHub
- 6.0k
- Peringkat
- #14516
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
openspec-continue-change
6.0kMembantu agent Anda melanjutkan perubahan OpenSpec dengan membuat artefak berikutnya, seperti proposal, spesifikasi, desain, atau daftar tugas.
openspec-ff-change
6.0kMembantu agent Anda membuat semua artefak OpenSpec untuk sebuah perubahan sekaligus, sehingga implementasi bisa dimulai tanpa melalui setiap langkah satu per satu.
openspec-new-change
6.0kMembantu agent Anda memulai perubahan OpenSpec baru untuk fitur atau perbaikan, dengan membuat foldernya dan menunjukkan artefak mana yang harus ditulis berikutnya.
openspec-onboard
6.0kMemandu Anda melalui siklus perubahan OpenSpec lengkap pertama, dari memilih tugas kecil hingga mengimplementasikan dan mengarsipkannya, sambil menjelaskan setiap langkah.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.