원클릭으로
openspec-archive
Complete a change and update the source of truth specifications. Use after all implementation tasks are finished and verified.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Complete a change and update the source of truth specifications. Use after all implementation tasks are finished and verified.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Implement a change proposal following the OpenSpec SDD workflow. Use after a proposal is approved and ready for implementation.
Create a new change proposal following the OpenSpec SDD workflow. Use when starting a new feature, enhancement, or significant change that needs specification tracking.
| name | openspec-archive |
| description | Complete a change and update the source of truth specifications. Use after all implementation tasks are finished and verified. |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
Complete a change and update the source of truth specifications.
/openspec-archive <change-id>
Example:
/openspec-archive add-user-search
Check openspec/changes/{change-id}/tasks.md:
[x]If incomplete, report what's missing and stop.
Run project's quality verification commands. All must pass before archiving.
For each file in openspec/changes/{change-id}/specs/:
openspec/specs/{component}.md exists → Merge changesCopy new requirements to the target spec:
# {Component} Specification
## Requirements
### {New Requirement from Delta}
{Description}
#### Scenario: {Name}
- GIVEN ...
- WHEN ...
- THEN ...
Update existing requirements in target spec with new content.
Remove deprecated requirements from target spec.
Add to a ## Deprecated section for reference:
## Deprecated
### {Removed Requirement} (Removed: {date})
Reason: {from delta spec}
# Create archive directory with timestamp
mkdir -p openspec/archive/{change-id}
# Move all change files
mv openspec/changes/{change-id}/* openspec/archive/{change-id}/
rmdir openspec/changes/{change-id}
Add completion info to openspec/archive/{change-id}/proposal.md:
---
## Archive Information
**Archived:** {YYYY-MM-DD HH:MM}
**Duration:** {days from creation to archive}
**Outcome:** Successfully implemented
### Files Modified
- `lib/feature/...`
- `test/...`
### Specs Updated
- `openspec/specs/{component}.md`
git add openspec/
git commit -m "docs(openspec): archive {change-id}
- Merged delta specs into main specs
- Archived change history
- Implementation complete"
## Archived: {change-id}
### Specs Updated
- `openspec/specs/{component}.md` - {summary of changes}
### Archive Location
- `openspec/archive/{change-id}/`
### Change History
- Created: {original date}
- Completed: {today}
- Duration: {X days}
### Summary
{Brief description of what was accomplished}
---
The OpenSpec workflow for this change is complete.
The specifications are now the source of truth.
Cannot archive: {X} tasks still pending in tasks.md.
Please complete all tasks first or update tasks.md if they're done.
Cannot archive: Quality checks failed.
Please fix issues before archiving.
If the target spec has changed since the proposal: