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.0k에이전트가 제안서, 스펙, 설계, 작업 목록 등 다음 산출물을 만들어 OpenSpec 변경을 이어 가도록 돕습니다.
openspec-ff-change
6.0k에이전트가 OpenSpec 변경의 모든 산출물을 한 번에 만들어, 단계마다 기다리지 않고 구현을 시작하게 합니다.
openspec-new-change
6.0k에이전트가 기능이나 수정을 위한 새 OpenSpec 변경을 시작해 폴더를 만들고, 다음에 쓸 산출물을 보여 줍니다.
openspec-onboard
6.0k작은 실제 작업을 골라 구현하고 보관하기까지, 첫 OpenSpec 변경 과정을 단계마다 설명하며 안내합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.