Skip to content
Agent Orchestration
Command

/add-dependency

Add a dependency between tasks.

BOOST
From plugin
claude-task-master
28k49 skills3 agents49 commands1 MCP
Install
> /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.md

Add 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
Ships withclaude-task-master

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

Get the whole plugin
Stats
28,132
Stars
2,618
Forks
Maintained
Maintenance
JavaScript
Language
5mo ago
Last commit
1y ago
Created
3h ago
Added

Repo: eyaltoledano/claude-task-master

Other commands on claude-task-master.