Converting Markdown Documents to Tasks
Command Invocation
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.
When to Use
- After completing a plan in plan mode
- Converting specification documents to trackable tasks
- Converting design documents to implementation tasks
- Creating tasks from roadmap or milestone documents
- Tracking any markdown planning or design content
Supported Documents
Any markdown file containing planning or design content:
- Plan files from plan mode (
~/.claude/plans/*.md) - Specification documents (
SPEC.md,REQUIREMENTS.md) - Design documents (
DESIGN.md,ARCHITECTURE.md) - Roadmaps and milestone documents (
ROADMAP.md) - Feature proposals and technical RFCs
Usage
Examples
From plan mode:
From specification document:
From design document:
From roadmap:
What It Does
- Reads the markdown file
- Extracts title from first
#heading (or uses filename as fallback) - Strips "Plan: " prefix if present (case-insensitive)
- Creates dex task with full markdown content as context
- Analyzes plan structure for potential subtask breakdown
- Automatically creates subtasks when appropriate
- Returns task ID and breakdown summary
Examples
From plan mode file:
→ Task description: "Add JWT Authentication" (note: "Plan: " prefix stripped)
From specification document:
→ Task description: "User Authentication Specification"
Automatic Subtask Breakdown
After creating the main task, the skill analyzes the plan structure to determine if breaking it into subtasks adds value.
Hierarchy Levels
The skill supports up to 3 levels (maximum depth enforced by dex):
When Breakdown Happens
The skill creates subtasks when the plan has:
- 3-7 clearly separable work items (numbered steps, distinct sections, implementation phases)
- Implementation across multiple files or components (different modules, layers, or areas)
- Clear sequential dependencies (step 1 before step 2)
- Independent items that benefit from separate tracking
Epic-level breakdown (creates tasks, not subtasks) when:
- Plan has major phases/sections with their own sub-items
- 5+ distinct areas of work
- Plan spans multiple systems or components
- Work will require multiple sessions
When Breakdown Does NOT Happen
The skill keeps a single task when:
- Plan describes one cohesive task (even if detailed with multiple paragraphs)
- Only 1-2 steps present (not enough to warrant breakdown)
- Work items are tightly coupled (can't be separated meaningfully)
- Plan is exploratory or investigative (research, analysis, discovery)
- Breaking down would create artificial boundaries that don't reflect natural work units
What Each Subtask Contains
When breakdown occurs, each subtask includes:
- Description: Brief summary extracted from list item, heading, or section
- Context: Relevant details from that section plus reference to parent task
- Parent link: Automatically linked to main task via
--parent
Example: With Breakdown
Input plan (auth-plan.md):
Output:
Example: Without Breakdown
Input plan (bugfix-plan.md):
Output:
Example: Epic-Level Breakdown (Two-Level Hierarchy)
Input plan (full-auth-plan.md):
Output:
Options
After Creating
Once created, you can:
- View the task:
dex show <task-id> - Create additional subtasks:
dex create "..." --parent <task-id> --description "..." - Track progress through implementation
- Complete the task:
dex complete <task-id> --result "..."
Run dex show <task-id> to see the full task structure including any automatically created subtasks.
When NOT to Use
- Document is incomplete or exploratory (just draft notes)
- Content isn't actionable or ready for implementation
- File hasn't been saved to disk yet
- File doesn't contain meaningful planning/design content
Implementation Instructions for Skill
These instructions are for the skill agent executing /dex-plan. Follow this workflow exactly:
Step 1: Create Main Task
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.
Step 2: Read and Analyze the Plan
After creating the main task, read it back to analyze its structure:
Examine the context field (which contains the full markdown) for breakdown potential.
Step 3: Apply Breakdown Decision Logic
Analyze the plan structure and decide: Should this be broken down into subtasks?
Look for these breakdown indicators:
-
Numbered or bulleted implementation lists (3-7 items):
-
Clear subsections under implementation/tasks/steps:
-
File-specific sections:
-
Sequential phases:
Do NOT break down when:
- Only 1-2 steps/items present
- Plan is a single cohesive fix or small change
- Content is exploratory ("investigate", "research", "explore")
- Work items are inseparable (tightly coupled implementation)
- Breaking down creates artificial boundaries
- Plan is very short (< 10 lines of meaningful content)
Step 4: Extract Subtasks (If Breaking Down)
For each identified subtask:
-
Extract description: Use the list item text, heading, or section title
- Strip numbering and bullets: "1. Add auth" → "Add auth"
- Keep it concise (1-10 words)
- Use imperative form: "Add", "Create", "Update", "Fix"
-
Extract context: Include relevant details from that section
- Copy the full section content for that subtask
- Add reference: "This is part of [parent task description]"
- Include code snippets, file paths, specific requirements
-
Create the subtask:
Step 5: Report Results
If subtasks were created:
If no breakdown occurred:
Examples of Subtask Extraction
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.
Key Principles
- Agent judgment is critical: Use intelligence to determine if breakdown adds value
- Err on the side of NOT breaking down: Only break down when it clearly helps
- Each subtask must be meaningful: Not just a single line change
- Context is essential: Each subtask should have enough context to be actionable independently
- Preserve plan semantics: Don't force a structure that doesn't match the plan's intent

