一键导入
openspec-apply
Implement a change proposal following the OpenSpec SDD workflow. Use after a proposal is approved and ready for implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement a change proposal following the OpenSpec SDD workflow. Use after a proposal is approved and ready for implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Complete a change and update the source of truth specifications. Use after all implementation tasks are finished and verified.
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-apply |
| description | Implement a change proposal following the OpenSpec SDD workflow. Use after a proposal is approved and ready for implementation. |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
Implement a change proposal following the OpenSpec SDD workflow.
/openspec-apply <change-id>
Example:
/openspec-apply add-user-search
Read these files in order:
openspec/project.md - Project conventionsopenspec/changes/{change-id}/proposal.md - What and whyopenspec/changes/{change-id}/tasks.md - Implementation checklistopenspec/changes/{change-id}/specs/*.md - Delta specificationsBefore starting:
git status # Should be clean or on feature branch
# Run project's lint/analyze command
If not on a feature branch:
git checkout -b feature/{change-id}
For each phase in tasks.md:
- [ ] → - [x]After completing each phase, run project quality checks:
# Example for Flutter projects:
# make format && make analyze && make run_unit_test
# Example for Node projects:
# npm run lint && npm test
After each phase, update tasks.md:
## Phase 1: Foundation (Data Layer)
- [x] 1.1 Create search model ✓ 2024-01-15
- [x] 1.2 Add search to repository ✓ 2024-01-15
- [x] 1.3 Write unit tests ✓ 2024-01-15
**Quality Gate:** PASSED
If you encounter blockers:
### Blockers section if needed- [ ] 1.2 Add search to repository
- **Blocker:** Unclear if fuzzy search should use DB or in-memory
- **Options:** A) Database query, B) In-memory filtering
- **Waiting for:** Decision from user
When all tasks are done:
[x]**Status:** Implementation Complete
**Completed:** {YYYY-MM-DD}
## Implementation Complete: {change-id}
### Summary
- {Brief description of what was implemented}
### Files Changed
- `lib/feature/...` - {description}
- `test/...` - {description}
### Quality Verification
- [x] All tests passing
- [x] Lint/analyze clean
- [x] Documentation updated (if applicable)
### Next Step
Run `/openspec-archive {change-id}` to complete the workflow.