Reusable workflow templates for the OpenCode AI coding agent.
A collection of structured workflows that guide OpenCode through collaborative planning and execution:
- Agile Workflow - Develop features from idea to implementation
- Refactoring Workflow - Systematically refactor code with safety rails
# Clone or download this repository
cd opencode-workflows
# Run the installer
./install.shCopy commands and skills to your OpenCode config directory:
# Commands go to ~/.config/opencode/commands/
cp commands/*.md ~/.config/opencode/commands/
# Skills go to ~/.config/opencode/skills/
cp -r skills/* ~/.config/opencode/skills//agile "I want to build user notifications"
This guides you through:
- Epic Brief - Define problem and context
- Core Flows - Map user journeys
- Tech Plan - Design architecture
- Ticket Breakdown - Create implementation plan
- Execute - Implement the feature
- Implementation Validation - Verify the implementation
/refactor "refactor legacy authentication code"
This guides you through:
- Analysis - Map dependencies and risks
- Approach - Design safe refactoring strategy
- Execute - Implement in controlled steps
- Verification - Verify implementation matches plan
/continue
Proceeds to the next stage of your current workflow.
During a workflow, documents are generated in your workspace:
| Document | Purpose |
|---|---|
epic-brief.md |
Problem definition and context |
core-flows.md |
User journeys and interactions |
tech-plan.md |
Technical architecture |
tickets.md |
Implementation tickets |
refactoring-analysis.md |
Dependency and risk map |
refactoring-approach.md |
Refactoring strategy |
| Command | Description |
|---|---|
/workflow |
Show available workflows |
/agile |
Start agile workflow |
/refactor |
Start refactoring workflow |
/continue |
Continue current stage |
Agents can call these skills during workflow execution:
| Skill | Purpose |
|---|---|
epic-brief |
Define problem and context |
core-flows |
Map user journeys |
tech-plan |
Design architecture |
ticket-breakdown |
Create implementation tickets |
execute |
Execute implementation |
implementation-validation |
Validate implementation |
refactoring-analysis |
Analyze refactoring impact |
refactoring-approach |
Design refactoring approach |
verification |
Verify refactoring |
- OpenCode AI coding agent (https://opencode.ai)
- Node.js 18+ (for installation script)
MIT