openspec-apply
Implement a change proposal following the OpenSpec SDD workflow. Use after a proposal is approved and ready for implementation.
How do I install this agent skill?
npx skills add https://github.com/chyiiiiiiiiiiii/openspec-skills --skill openspec-applyIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill automates a software development workflow by reading specification files and running project build commands. It presents a low-risk surface for indirect prompt injection from repository content.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
OpenSpec: Apply
Implement a change proposal following the OpenSpec SDD workflow.
Usage
/openspec-apply <change-id>
Example:
/openspec-apply add-user-search
What This Skill Does
- Read the proposal and understand the scope
- Follow tasks.md step by step
- Implement according to delta specs
- Mark tasks complete as you progress
- Run quality gates after each phase
Execution Steps
Step 1: Load Context
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 specifications
Step 2: Verify Prerequisites
Before 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}
Step 3: Execute Tasks Phase by Phase
For each phase in tasks.md:
3.1 Start Phase
- Mark the first task as in-progress in your todo list
- Read the delta spec for that component
3.2 Implement Task
- Follow existing patterns from project's CLAUDE.md
- Write code according to delta spec requirements
- Include tests for new functionality
3.3 Mark Complete
- Update tasks.md:
- [ ]→- [x] - Add completion note if significant
3.4 Quality Gate
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
Step 4: Update Progress
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
Step 5: Handle Issues
If you encounter blockers:
- Document in tasks.md under the task
- Add a
### Blockerssection if needed - Ask for clarification before proceeding
- [ ] 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
Step 6: Completion Check
When all tasks are done:
- Verify all checkboxes are
[x] - Run full quality gate
- Update proposal.md status:
**Status:** Implementation Complete **Completed:** {YYYY-MM-DD}
Step 7: Report Completion
## 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.
Implementation Rules
Follow Project Conventions
- Read and follow project's CLAUDE.md
- Use existing patterns and styles
- Match naming conventions
Maintain Quality
- Write tests as you implement
- Handle errors properly with specific exception types
- Keep code clean and readable
Stay in Scope
- Only implement what's in the delta spec
- Don't add "nice to have" features
- Flag scope questions before proceeding
Document Changes
- Update relevant documentation
- Sync localization files if adding strings
- Update project docs if introducing new patterns
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/chyiiiiiiiiiiii/openspec-skills/openspec-apply">View openspec-apply on skillZs</a>