openspec-archive-change
하는 일
이 스킬은 OpenSpec 변경의 산출물을 확인하고 보관 폴더로 옮겨 마무리합니다. 완료된 변경을 깔끔하게 닫고 싶은 개발자를 위한 것입니다.
사용하는 경우
- ✓변경이 모두 구현되어 닫고 싶을 때.
- ✓보관하기 전에 아직 완성되지 않은 산출물이 있는지 확인하고 싶을 때.
- ✓완료된 변경을 활성 목록에서 옮기고 싶을 때.
스킬 링크
https://github.com/monid-ai/monid/blob/main/.opencode/skills/openspec-archive-change/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“login-redesign 변경은 끝났습니다. 산출물을 확인하고 보관해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 활성 변경 목록을 보여 주고 하나를 고르게 합니다. 변경 산출물의 상태를 확인하고, 완료되지 않은 항목이 있으면 경고합니다. 사용자가 확인했을 때만 변경을 보관합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Archive a completed change in the experimental workflow.
Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Steps
If no change name provided, prompt for selection
Run
openspec list --jsonto get available changes. Use the AskUserQuestion tool to let the user select.Show only active changes (not already archived). Include the schema used for each change if available.
IMPORTANT: Do NOT guess or auto-select a change. Always let the user choose.
Check artifact completion status
Run
openspec status --change "<name>" --jsonto check artifact completion.Parse the JSON to understand:
schemaName: The workflow being usedplanningHome,changeRoot,artifactPaths, andactionContext: path and scope contextartifacts: List of artifacts with their status (doneor other)
If status reports
actionContext.mode: "workspace-planning", explain that workspace archive is not supported in this slice and STOP. Do not move workspace changes into repo-local archives or edit linked repos.If any artifacts are not
done:- Display warning listing incomplete artifacts
- Use AskUserQuestion tool to confirm user wants to proceed
- Proceed if user confirms
Check task completion status
Read the tasks file (typically
tasks.md) to check for incomplete tasks.Count tasks marked with
- [ ](incomplete) vs- [x](complete).If incomplete tasks found:
- Display warning showing count of incomplete tasks
- Use AskUserQuestion tool to confirm user wants to proceed
- Proceed if user confirms
If no tasks file exists: Proceed without task-related warning.
Assess delta spec sync state
Use
artifactPaths.specs.existingOutputPathsfrom status JSON to check for delta specs. If none exist, proceed without sync prompt.If delta specs exist:
- Compare each delta spec with its corresponding main spec at
openspec/specs/<capability>/spec.md - Determine what changes would be applied (adds, modifications, removals, renames)
- Show a combined summary before prompting
Prompt options:
- If changes needed: "Sync now (recommended)", "Archive without syncing"
- If already synced: "Archive now", "Sync anyway", "Cancel"
If user chooses sync, use Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke openspec-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). Proceed to archive regardless of choice.
- Compare each delta spec with its corresponding main spec at
Perform the archive
Create an
archivedirectory underplanningHome.changesDirif it doesn't exist:mkdir -p "<planningHome.changesDir>/archive"Generate target name using current date:
YYYY-MM-DD-<change-name>Check if target already exists:
- If yes: Fail with error, suggest renaming existing archive or using different date
- If no: Move
changeRootto the archive directory
mv "<changeRoot>" "<planningHome.changesDir>/archive/YYYY-MM-DD-<name>"Display summary
Show archive completion summary including:
- Change name
- Schema that was used
- Archive location
- Whether specs were synced (if applicable)
- Note about any warnings (incomplete artifacts/tasks)
Output On Success
## Archive Complete
**Change:** <change-name>
**Schema:** <schema-name>
**Archived to:** the archive path derived from `planningHome.changesDir`/YYYY-MM-DD-<name>/
**Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")
All artifacts complete. All tasks complete.
Guardrails
- Always prompt for change selection if not provided
- Use artifact graph (openspec status --json) for completion checking
- Don't block archive on warnings - just inform and confirm
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
- Show clear summary of what happened
- If sync is requested, use openspec-sync-specs approach (agent-driven)
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
자주 묻는 질문
변경을 대신 골라 주나요?
아니요. 설명에 따르면 스킬은 항상 사용자가 변경을 고르도록 요청합니다.
일부 산출물이 완성되지 않았다면 어떻게 되나요?
스킬이 경고를 보여 주고, 계속하기 전에 확인을 요청합니다.
작업공간 변경도 보관할 수 있나요?
아니요. 스킬은 작업공간 보관을 지원하지 않으며, 그 경우 작업을 중단합니다.
상세 정보
작성자의 원본 설명
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
repo: monid-ai/monid
인기도
- GitHub 스타
- 6.1k
- 순위
- #14422
- 라이선스
- MIT
- 업데이트
- 2026. 10. 22.
댓글
- …
이 저장소의 다른 스킬
openspec-apply-change
6.1k에이전트가 OpenSpec 변경의 작업을 처음부터 끝까지 진행하도록 돕고, 진행 상황을 계속 기록합니다.
openspec-explore
6.1k에이전트를 생각을 나누는 파트너로 삼아, 코드를 쓰지 않고 아이디어를 정리하도록 돕습니다.
openspec-propose
6.1k에이전트가 제안서, 설계, 작업 목록을 갖춘 새 OpenSpec 변경을 한 번에 만들어, 바로 구현할 수 있게 합니다.
openspec-sync-specs
6.1k에이전트가 델타 스펙의 변경 사항을 반영해 주요 스펙 파일을 갱신하되, 변경은 보관하지 않도록 돕습니다.