/add-dependency
Add a dependency between tasks.
> /plugin marketplace add eyaltoledano/claude-task-master > /plugin install taskmaster@taskmaster
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/add-dependency
Context preview
What this command does when you run it.
Add a dependency between tasks.
Command definition
add-dependency.mdAdd a dependency between tasks.
Arguments: $ARGUMENTS
Parse the task IDs to establish dependency relationship.
Adding Dependencies
Creates a dependency where one task must be completed before another can start.
Argument Parsing
Parse natural language or IDs:
- "make 5 depend on 3" → task 5 depends on task 3
- "5 needs 3" → task 5 depends on task 3
- "5 3" → task 5 depends on task 3
- "5 after 3" → task 5 depends on task 3
Execution
task-master add-dependency --id=<task-id> --depends-on=<dependency-id>
Validation
Before adding: 1. **Verify both tasks exist** 2. **Check for circular dependencies** 3. **Ensure dependency makes logical sense** 4. **Warn if creating complex chains**
Smart Features
- Detect if dependency already exists
- Suggest related dependencies
- Show impact on task flow
- Update task priorities if needed
Post-Addition
After adding dependency: 1. Show updated dependency graph 2. Identify any newly blocked tasks 3. Suggest task order changes 4. Update project timeline
Example Flows
/taskmaster:add-dependency 5 needs 3 → Task #5 now depends on Task #3 → Task #5 is now blocked until #3 completes → Suggested: Also consider if #5 needs #4
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
Repo: eyaltoledano/claude-task-master
Other commands on claude-task-master.
ham
This command initiates the HAM (Hamster Automated Management) workflow for task execution.
analyze-complexity
Analyze task complexity and generate expansion recommendations.

