npx skills add ...
npx skills add dcramer/dex --skill dex-plan
Create dex task from markdown planning documents (plans, specs, design docs, roadmaps)
npx skills add dcramer/dex --skill dex-plan
Use dex directly for all commands:
If dex is not on PATH, use npx @zeeg/dex <command> instead. Check once at the start:
Use /dex-plan to convert any markdown planning document into a trackable dex task.
Any markdown file containing planning or design content:
~/.claude/plans/*.md)SPEC.md, REQUIREMENTS.md)DESIGN.md, ARCHITECTURE.md)ROADMAP.md)From plan mode:
From specification document:
From design document:
From roadmap:
# heading (or uses filename as fallback)From plan mode file:
→ Task description: "Add JWT Authentication" (note: "Plan: " prefix stripped)
From specification document:
→ Task description: "User Authentication Specification"
After creating the main task, the skill analyzes the plan structure to determine if breaking it into subtasks adds value.
The skill supports up to 3 levels (maximum depth enforced by dex):
| Level | Name | Example |
|---|---|---|
| L0 | Epic | "Add user authentication system" |
| L1 | Task | "Implement JWT middleware" |
| L2 | Subtask | "Add token verification function" |
The skill creates subtasks when the plan has:
Epic-level breakdown (creates tasks, not subtasks) when:
The skill keeps a single task when:
When breakdown occurs, each subtask includes:
--parentInput plan (auth-plan.md):
Output:
Input plan (bugfix-plan.md):
Output:
Input plan (full-auth-plan.md):
Output:
Once created, you can:
dex show <task-id>dex create "..." --parent <task-id> --description "..."dex complete <task-id> --result "..."Run dex show <task-id> to see the full task structure including any automatically created subtasks.
These instructions are for the skill agent executing /dex-plan. Follow this workflow exactly:
Execute the dex plan command with the provided markdown file:
This creates the parent task and returns its ID. Capture this ID for subsequent steps.
After creating the main task, read it back to analyze its structure:
Examine the context field (which contains the full markdown) for breakdown potential.
Analyze the plan structure and decide: Should this be broken down into subtasks?
Numbered or bulleted implementation lists (3-7 items):
Clear subsections under implementation/tasks/steps:
File-specific sections:
Sequential phases:
For each identified subtask:
Extract description: Use the list item text, heading, or section title
Extract context: Include relevant details from that section
Create the subtask:
If subtasks were created:
If no breakdown occurred:
Example 1: Numbered list
Extracted subtasks:
Example 2: Subsections with details
Extracted subtasks:
Example 3: Should NOT break down
Decision: Single cohesive task, only one change. Do NOT create subtasks.
/dex-plan <markdown-file-path>/dex-plan /home/user/.claude/plans/moonlit-brewing-lynx.md/dex-plan @SPEC.md/dex-plan docs/AUTHENTICATION_DESIGN.md/dex-plan ROADMAP.md# Plan: Add JWT Authentication
## Summary
...# User Authentication Specification
## Requirements
...# Plan: Add Authentication System
## Implementation
1. Create database schema for users/tokens
2. Implement auth controller with endpoints
3. Add JWT middleware for route protection
4. Build frontend login/register forms
5. Add integration testsCreated task abc123 from plan
Analyzed plan structure: Found 5 distinct implementation steps
Created 5 subtasks:
- abc124: Create database schema for users/tokens
- abc125: Implement auth controller with endpoints
- abc126: Add JWT middleware for route protection
- abc127: Build frontend login/register forms
- abc128: Add integration tests
View full structure: dex show abc123# Plan: Fix Login Validation Bug
## Problem
Login fails when username has spaces
## Solution
Update validation regex in auth.ts line 42 to allow spacesCreated task xyz789 from plan
Plan describes a cohesive single task. No subtask breakdown needed.
View task: dex show xyz789# Plan: Complete User Authentication System
## Phase 1: Backend Infrastructure
1. Create database schema for users and sessions
2. Implement password hashing with bcrypt
3. Add JWT token generation and validation
## Phase 2: API Endpoints
1. POST /auth/register - User registration
2. POST /auth/login - User login
3. POST /auth/logout - Session invalidation
4. POST /auth/reset-password - Password reset flow
## Phase 3: Frontend Integration
1. Login/register forms with validation
2. Protected route components
3. Session persistence with refresh tokensCreated epic abc123 from plan
Analyzed plan structure: Found 3 major phases with sub-items
Created as epic with 3 tasks:
- def456: Backend Infrastructure (3 subtasks)
- ghi789: API Endpoints (4 subtasks)
- jkl012: Frontend Integration (3 subtasks)
View full structure: dex list abc123/dex-plan <file> --priority 2 # Set priority
/dex-plan <file> --parent abc123 # Create as subtaskdex plan <markdown-file> [options]dex show <task-id>