| name | dex-workflow |
| description | This skill should be used when implementing features from a PRD spec, tracking
implementation progress, or resuming work across sessions. Covers Dex task
management for PRD story execution, daily workflows, and skill auto-loading.
|
| version | 2.0.0 |
Dex Workflow - Task-Based Feature Implementation
Current branch: !git branch --show-current 2>/dev/null || echo "not in git repo"
Task status: !dex status 2>/dev/null | head -5 || echo "dex not configured"
Dex is a CLI for persistent task tracking across sessions. Tasks sync with
GitHub issues and support native cross-session resume.
When to Use Dex Workflow
- Implementing stories from a PRD spec
- Tracking implementation progress across sessions
- Resuming work after
/clear or session restart
- When you need GitHub issue sync
Daily Workflow
Check Status
dex status
dex list
dex list --ready
dex list --in-progress
dex list --blocked
Start Working
dex list --ready
dex show <id> --full
dex start <id>
If task has skills metadata, load them first:
/Skill <skill-name>
Complete a Task
Use /complete command (wraps reviewers + dex complete):
/complete <task-id>
Or manually:
- Run reviewers (code-simplifier + kieran)
- Address findings
- Commit with task reference
- Mark complete with verified result:
dex complete <id> --result "What changed: X. Verification: N tests passing."
GitHub Sync
dex sync
dex sync --github
dex import
dex export <id>
Task Creation from PRD Spec
Using dex plan (Recommended)
After writing spec with Implementation Stories section:
dex plan plans/<feature>/spec.md
This automatically:
- Creates parent task from spec title
- Analyzes Implementation Stories section for subtasks
- Generates subtasks with proper hierarchy
Our spec structure is designed for dex plan:
## Implementation Stories
### Story 1: Create login form
**Category:** ui
**Skills:** frontend-design
**Blocked by:** none
**Acceptance Criteria:**
- [ ] Form renders with inputs
- [ ] Validation works
The CLI parses headings (### Story N:) as subtask titles and preserves the description content including Category, Skills, and Acceptance Criteria.
Dex also provides skills for interactive use:
/dex - Natural language task management
/dex-plan - AI-powered markdown → tasks conversion
Install with npx skills add dcramer/dex. These are useful for ad-hoc work, but CLI commands are more reliable in automated workflows (stop hooks, etc.).
Manual Creation (if needed)
dex create "feature-name" -d "Feature: ..."
dex create "Story 1: title" --parent <epic-id> -d "
Category: ui
Skills: frontend-design
Acceptance Criteria:
- [ ] Criterion 1
- [ ] Criterion 2
"
dex create "Story 2: ..." --blocked-by <story1-id>
Cross-Session Resume
After /clear or new session:
dex status - See dashboard
dex list --in-progress - Check if you were mid-task
dex list --ready - See what's next
dex show <id> --expand - Get full context with ancestors
- Load required skills
- Continue implementation
Task Metadata Structure
Tasks from PRD specs include:
- Category: functional, ui, integration, edge-case, performance
- Skills: skill names to load before implementation
- Acceptance Criteria: verification checklist
- Blocked by: dependency references
Command Reference
dex status
dex list
dex list --ready
dex list --in-progress
dex list --query "auth"
dex show <id>
dex show <id> --full
dex show <id> --expand
dex start <id>
dex start <id> --force
dex complete <id> --result "What changed: X. Verification: N tests passing."
dex edit <id> -n "new name"
dex edit <id> -d "new description"
dex edit <id> --add-blocker <other-id>
dex create "name" -d "description"
dex create "name" --parent <id> --blocked-by <id>
dex plan <file.md>
dex sync
dex import
dex export <id>
dex archive <id>
dex doctor
dex doctor --fix
Quality Expectations
Production code only:
- Pre-commit reviews required (code-simplifier + kieran)
- Atomic commits per task
- All tests/lint/types must pass
Result must include verification:
- ✅ "Added X. 12 tests passing. Build success."
- ❌ "Should work" or "Made changes" (unverified claims)
Note: Parent tasks cannot complete until all subtasks are done.
Related Commands
/prd - Create PRD with Dex handoff (Phase 4)
/complete - Complete task with reviewer workflow
/ut - Unit test coverage with Dex tracking
/e2e - E2E tests with Dex tracking