openspec-bulk-archive-change
Skill này làm gì
Skill này lưu trữ đồng thời nhiều thay đổi OpenSpec đã hoàn thành, đồng thời kiểm tra xem code có khớp với từng thay đổi hay không. Skill dành cho lập trình viên chạy nhiều thay đổi song song trong OpenSpec.
Khi nào nên dùng
- ✓Khi có nhiều thay đổi OpenSpec song song đã hoàn thành và cần lưu trữ cùng lúc.
- ✓Khi các file đặc tả xung đột giữa các thay đổi và cần đối chiếu với code.
- ✓Khi bạn muốn chọn các thay đổi cần lưu trữ từ một danh sách.
Liên kết skill
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Lưu trữ tất cả các thay đổi OpenSpec đã hoàn thành trong sprint này, và kiểm tra xung đột đặc tả trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent liệt kê các thay đổi đang hoạt động, yêu cầu bạn chọn, kiểm tra từng tài liệu, tác vụ và đặc tả, giải quyết xung đột bằng cách xem code, rồi lưu trữ các thay đổi đã chọn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có lưu trữ thay đổi mà không hỏi không?
Không. Skill hỏi bạn chọn thay đổi nào cần lưu trữ và không tự chọn.
Skill xử lý đặc tả xung đột như thế nào?
Skill kiểm tra code để xem thực tế đã triển khai những gì.
Tôi có cần OpenSpec không?
Có. Skill làm việc với các thay đổi OpenSpec và công cụ dòng lệnh của nó.
Chi tiết
Mô tả gốc của tác giả
Archive multiple completed changes at once. Use when archiving several parallel changes.
Độ phổ biến
- Sao GitHub
- 6.0k
- Vị trí xếp hạng
- #14516
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
openspec-continue-change
6.0kGiúp agent của bạn tiếp tục một thay đổi OpenSpec bằng cách tạo tài liệu tiếp theo, như đề xuất, đặc tả, thiết kế hoặc danh sách tác vụ.
openspec-ff-change
6.0kGiúp agent của bạn tạo tất cả tài liệu OpenSpec cho một thay đổi chỉ trong một lần, để có thể bắt đầu triển khai mà không phải đi qua từng bước.
openspec-new-change
6.0kGiúp agent của bạn bắt đầu một thay đổi OpenSpec mới cho tính năng hoặc bản sửa lỗi, tạo thư mục và chỉ ra tài liệu nào cần viết tiếp theo.
openspec-onboard
6.0kHướng dẫn bạn qua vòng đời đầu tiên của một thay đổi OpenSpec, từ chọn một tác vụ nhỏ đến triển khai và lưu trữ, đồng thời giải thích từng bước.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.