Practical workflow examples using CommandMate's commands and agents.
A standard workflow for developing a new Issue.
# List issues
gh issue list
# View the target issue
gh issue view 123/work-plan 123
Output example:
## Issue: Add Dark Mode
**Issue number**: #123
**Size**: M
**Priority**: High
### Task Breakdown
- [ ] Task 1.1: Theme type definitions
- [ ] Task 1.2: Create theme context
- [ ] Task 1.3: Implement UI components
- [ ] Task 2.1: Unit tests
.../pm-auto-dev 123
Execution:
- TDD implementation (test creation -> implementation -> refactoring)
- Acceptance testing
- Code quality improvement
- Progress report creation
/create-pr
Output example:
## Summary
Added dark mode feature.
Closes #123
## Changes
### Added
- Theme toggle component
- Dark mode styles
## Test Results
- Unit Tests: 15/15 passed
- Coverage: 85%A workflow for fixing issues when bugs are discovered.
A bug is discovered by a user or yourself.
/bug-fix API error occurring
Execution phases:
Phase 1: Bug Investigation
- Error log analysis
- Root cause identification
## Investigation Summary
**Root cause**: Timeout setting too short
**Impact scope**: All users
**Severity**: highPhase 2: Solution Proposals
## Solutions (by priority)
1. [High] Change timeout setting (30 min)
2. [Medium] Add retry logic (1 hour)
Which solution would you like to implement?Phase 3-6: Fix, Test & Report
- TDD fix implementation
- Acceptance testing
- Progress report
/create-pr
A workflow for improving code quality.
/refactoring src/lib/utils.ts
Output example:
Refactoring Complete
## Refactoring Applied
- Split long functions
- Removed duplicate code
- Improved naming
## Quality Metrics Improvement
| Metric | Before | After | Improvement |
|--------|--------|-------|-------------|
| Coverage | 75.0% | 85.0% | +10.0% |
| ESLint errors | 5 | 0 | -5 |
npm run test:unit
npm run lint
npx tsc --noEmitA workflow for emergency response when production issues occur.
# Check recent logs
tail -100 logs/error.log
# Check environment variables
cat .env.production/bug-fix API error occurring in production
Setting severity to critical:
- Prioritize implementing Solution 1
- Run tests
- Prepare for immediate deployment
git checkout -b hotfix/critical-api-fix/create-pr
A flow where you just specify an Issue number and development runs to completion automatically.
/pm-auto-dev 166
Phase 1: Issue information gathered
- Issue #166: Add new feature
- Acceptance criteria: 3 items
- Implementation tasks: 5 items
Phase 2: TDD Implementation (Iteration 1/3)
- Launching tdd-impl-agent...
- Coverage: 85%
- Tests: 15/15 passed
Phase 3: Acceptance Testing
- Launching acceptance-test-agent...
- Test scenarios: 3/3 passed
Phase 4: Refactoring
- Launching refactoring-agent...
- Coverage: 85% -> 88%
Phase 5: Progress Report
- Launching progress-report-agent...
- Report created
Issue #166 development complete!
/create-pr
A flow for running just TDD implementation.
/tdd-impl new API endpoint
Red Phase:
// tests/unit/api.test.ts
it('should return data', async () => {
const result = await fetchData()
expect(result).toBeDefined()
})Green Phase:
// src/lib/api.ts
export async function fetchData() {
return { data: 'test' }
}Refactor Phase:
- Improve code
- Re-run tests
TDD Implementation Complete
## Test Results
- Total: 5 tests
- Passed: 5
- Coverage: 90%
## Static Analysis
- ESLint: 0 errors
- TypeScript: 0 errors
/work-plan -> /pm-auto-dev -> /create-pr
/progress-report 123
npm run lint
npx tsc --noEmit
npm run test:unit
npm run buildfeat(scope): add new feature
fix(scope): fix bug
refactor(scope): refactor code
test(scope): add tests
docs(scope): update documentation
- Quick Start Guide - 5-minute development flow
- Commands Guide - Command details
- Agents Guide - Agent details