Skip to content
Agent Orchestration
Command

/add-subtask

Add a subtask to a parent task.

From plugin
claude-task-master
28k49 skills3 agents49 commands1 MCP
> /plugin marketplace add eyaltoledano/claude-task-master
> /plugin install taskmaster@taskmaster

Command definition

add-subtask.md

Add a subtask to a parent task.

Arguments: $ARGUMENTS

Parse arguments to create a new subtask or convert existing task.

Adding Subtasks

Creates subtasks to break down complex parent tasks into manageable pieces.

Argument Parsing

Flexible natural language:

  • "add subtask to 5: implement login form"
  • "break down 5 with: setup, implement, test"
  • "subtask for 5: handle edge cases"
  • "5: validate user input" → adds subtask to task 5

Execution Modes

1. Create New Subtask

task-master add-subtask --parent=<id> --title="<title>" --description="<desc>"

2. Convert Existing Task

task-master add-subtask --parent=<id> --task-id=<existing-id>

Smart Features

1. **Automatic Subtask Generation**

  • If title contains "and" or commas, create multiple
  • Suggest common subtask patterns
  • Inherit parent's context

2. **Intelligent Defaults**

  • Priority based on parent
  • Appropriate time estimates
  • Logical dependencies between subtasks

3. **Validation**

  • Check parent task complexity
  • Warn if too many subtasks
  • Ensure subtask makes sense

Creation Process

1. Parse parent task context 2. Generate subtask with ID like "5.1" 3. Set appropriate defaults 4. Link to parent task 5. Update parent's time estimate

Example Flows

/taskmaster:add-subtask to 5: implement user authentication
→ Created subtask #5.1: "implement user authentication"
→ Parent task #5 now has 1 subtask
→ Suggested next subtasks: tests, documentation

/taskmaster:add-subtask 5: setup, implement, test
→ Created 3 subtasks:
  #5.1: setup
  #5.2: implement  
  #5.3: test

Post-Creation

  • Show updated task hierarchy
  • Suggest logical next subtasks
  • Update complexity estimates
  • Recommend subtask order
Read more
@eyaltoledano
Ships withclaude-task-master

An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.

28k3 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
28.4k
Star history of eyaltoledano/claude-task-master on GitHub, a chart by star-history.com

Other commands on claude-task-master.

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command