Command Palette

Search for a command to run...

Назад к скиллам
скилл № 64317

wave-execution

Dependency-aware parallel execution for speed optimization. Use when implementing plans with multiple independent tasks to maximize parallelization.

БесплатноБез исполняемых скриптов
hainamchungот hainamchung★ 54 звезды на GitHub

Установить wave-execution в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Wave-Based Parallel Execution

Problem: Sequential execution wastes time on independent tasks.

Solution: Group tasks into waves based on dependencies. Execute waves sequentially, tasks within waves in parallel.


When to Use

Multiple tasks in implementation plan?
        ↓ YES
WAVE EXECUTION ← APPLY

Use when:

  • 2+ independent tasks in implementation plan
  • Tasks have clear dependency relationships
  • Parallel execution provides clear speedup
  • Subagents available for parallel dispatch

Don't use when:

  • Single sequential task
  • Tasks deeply interdependent (must run sequentially)
  • No subagent dispatch capability
  • Time not critical (efficiency not priority)

Wave Resolution Algorithm

Dependency Analysis

## TASK DEPENDENCY MATRIX

Tasks:
T1: Create user model
T2: Create user API (depends on T1)
T3: Create auth API (depends on T1)
T4: Create checkout API (depends on T2, T3)
T5: Create payment API (depends on T4)
T6: Create email notification (depends on T2)

Dependency Graph:
T1 → [T2, T3]
T2 → [T4, T6]
T3 → [T4]
T4 → [T5]
T6 → []

Wave Classification

Wave Tasks Reason Parallel?
Wave 1 T1 No dependencies No (single task)
Wave 2 T2, T3 Depend only on T1 YES
Wave 3 T4, T6 Depend only on Wave 2 YES
Wave 4 T5 Depend on T4 No (single task)

Wave Resolution Output

## WAVE RESOLUTION

Wave 1 (Sequential):
└── T1: Create user model

Wave 2 (Parallel):
├── T2: Create user API
└── T3: Create auth API

Wave 3 (Parallel):
├── T4: Create checkout API
└── T6: Create email notification

Wave 4 (Sequential):
└── T5: Create payment API

Total: 6 tasks → 4 waves
Parallelization: 2.0x speedup (vs sequential)

Execution Protocol

Pre-Execution Checklist

□ All tasks identified and documented?
□ Dependencies mapped?
□ Wave boundaries determined?
□ File ownership assigned per task?
□ Parallel safety verified (no file conflicts)?
□ Sequential dependencies enforced?
□ Budget allocated per wave?
□ Verification checkpoints set?

Wave Dispatch Template

## WAVE {n} DISPATCH: {wave_description}

### TASKS IN THIS WAVE
| Task | Description | Agent | Files | Acceptance |
|------|-------------|-------|-------|------------|
| T{n}.1 | {desc} | {agent} | {files} | {criteria} |
| T{n}.2 | {desc} | {agent} | {files} | {criteria} |
| T{n}.3 | {desc} | {agent} | {files} | {criteria} |

### PARALLEL CONSTRAINTS
- ALL tasks run in PARALLEL
- ALL dependencies completed (verified)
- File ownership: EXCLUSIVE per task

### VERIFICATION
- All tasks must complete before Wave {n+1}
- Any failure blocks next wave
- Integration verified between parallel tasks

Post-Wave Verification

□ All Wave {n} tasks complete?
□ Integration between tasks verified?
□ No file conflicts detected?
□ Dependencies for Wave {n+1} satisfied?
□ Quality maintained across parallel tasks?

Implementation Pattern

Plan Structure with Dependencies

## PLAN: {feature_name}

Tasks:
- id: T1
  description: Create user model
  depends_on: []
  files: [src/models/user.ts]

- id: T2
  description: Create user API endpoints
  depends_on: [T1]
  files: [src/api/users.ts]

- id: T3
  description: Create auth middleware
  depends_on: [T1]
  files: [src/middleware/auth.ts]

- id: T4
  description: Create user service
  depends_on: [T2]
  files: [src/services/user.ts]

Wave Resolution Code

## WAVE RESOLUTION ALGORITHM

Input: tasks[] with depends_on[]

1. Build dependency graph
2. Identify tasks with no dependencies → Wave 1
3. For each remaining task:
   - If all dependencies in previous waves → assign to current wave
   - Else → wait for dependencies
4. Repeat until all tasks assigned

Output: waves[] containing task IDs

Dispatch Execution

## PARALLEL DISPATCH EXECUTION

For each wave:
1. Verify all dependencies complete
2. Dispatch all tasks in wave simultaneously
3. Wait for all tasks to complete
4. Verify integration
5. Proceed to next wave

For each task in wave:
- Spawn subagent with fresh context
- Include: task, files, acceptance criteria
- Exclude: other parallel task context

File Conflict Prevention

Critical Rule

█ ONE TASK → ONE FILE OWNER → NO SHARED FILES █

Conflict Detection

## FILE OWNERSHIP MATRIX

| File | Task Owner | Conflicts |
|------|-----------|----------|
| src/models/user.ts | T1 | None |
| src/api/users.ts | T2 | None |
| src/middleware/auth.ts | T3 | None |
| src/services/user.ts | T4 | None |
| src/types/index.ts | SHARED | ❌ CONFLICT |

Resolution: T1 creates types, T2/T3/T4 import only

Resolution Strategies

Conflict Type Solution
Shared types Task with fewest deps creates
Shared utils Extract to separate task
Config files Sequential ownership
Test files Match implementa
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл wave-execution?

Dependency-aware parallel execution for speed optimization. Use when implementing plans with multiple independent tasks to maximize parallelization.

Как установить скилл wave-execution?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл wave-execution запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить wave-execution с