task-dependency-patterns

安装量: 77
排名: #10124

安装

npx skills add https://github.com/yonatangross/orchestkit --skill task-dependency-patterns

Claude Code 2.1.16 introduces a native Task Management System with four tools:

  • TaskCreate: Create new tasks with subject, description, and activeForm

  • TaskUpdate: Update status (pending → in_progress → completed), set dependencies

  • TaskGet: Retrieve full task details including blockers

  • TaskList: View all tasks with status and dependency summary

Tasks enable structured work tracking, parallel coordination, and clear progress visibility.

When to Use

  • Breaking down complex multi-step implementations

  • Coordinating parallel work across multiple files

  • Tracking progress on large features

  • Managing dependencies between related changes

  • Providing visibility into work status

Key Patterns

1. Task Decomposition

Break complex work into atomic, trackable units:

Feature: Add user authentication

Tasks:
#1. [pending] Create User model
#2. [pending] Add auth endpoints (blockedBy: #1)
#3. [pending] Implement JWT tokens (blockedBy: #2)
#4. [pending] Add auth middleware (blockedBy: #3)
#5. [pending] Write integration tests (blockedBy: #4)

2. Dependency Chains

Use addBlockedBy to create execution order:

// Task #3 cannot start until #1 and #2 complete
{"taskId": "3", "addBlockedBy": ["1", "2"]}

3. Status Workflow

pending → in_progress → completed
   ↓           ↓
(unblocked)  (active)
  • pending: Task created but not started

  • in_progress: Actively being worked on

  • completed: Work finished and verified

4. activeForm Pattern

Provide present-continuous form for spinner display:

| Run tests | Running tests

| Update schema | Updating schema

| Fix authentication | Fixing authentication

Anti-Patterns

  • Creating tasks for trivial single-step work

  • Circular dependencies (A blocks B, B blocks A)

  • Leaving tasks in_progress when blocked

  • Not marking tasks completed after finishing

  • worktree-coordination - Multi-instance task coordination across git worktrees

  • implement - Implementation workflow with task tracking and progress updates

  • verify - Verification tasks and completion checklists

  • fix-issue - Issue resolution with hypothesis-based RCA tracking

  • brainstorming - Design exploration with parallel agent tasks

References

返回排行榜