askill
skill-parallel-orchestration

skill-parallel-orchestrationSafety 70Repository

Use when decomposing tasks into parallel sub-tasks or spawning sub-agents.

2 stars
1.2k downloads
Updated 2/19/2026

Package Files

Loading files...
SKILL.md

Parallel Orchestration Skill

Purpose: Defines the protocol and tools for the Orchestrator Role, enabling the decomposition of large tasks into independent sub-tasks and their parallel execution via sub-agents (or mock agents).

1. Red Flags (Anti-Rationalization)

STOP and READ THIS if you are thinking:

  • "I can just run python agent.py directly." -> WRONG. You must use the spawn_agent_mock.py script to ensure shared state updates.
  • "I don't need file locking." -> WRONG. Multiple agents writing to latest.yaml will corrupt the session state.
  • "I'll just wait for all agents sequentially." -> WRONG. This defeats the purpose of parallelism. Spawn them in the background (&).

2. Capabilities

  • Decompose: Split complex tasks into atomic docs/tasks/subtask-*.md files.
  • Spawn: Launch independent agent processes that execute asynchronously.
  • Synchronize: Read shared session state to track progress of all spawned agents.

3. Instructions

Phase 1: Task Decomposition

  1. Analyze the user request.
  2. Create individual task files in docs/tasks/ for each parallel unit of work.
  3. Ensure tasks are truly independent (no shared memory requirements other than final artifacts).

Phase 2: Agent Spawning

  1. Call the Agent Runner script using run_command.
  2. Use the & operator to run in background.
    python3 .agent/skills/skill-parallel-orchestration/scripts/spawn_agent_mock.py \
      --task_name "subtask-A" \
      --goal "Implement Logic" \
      --output_dir "docs/tasks/results" &
    
  3. Repeat for all sub-tasks.

Phase 3: Monitoring & Merging

  1. Poll .agent/sessions/latest.yaml (read only).
  2. Wait until all sub-tasks show status "Completed".
  3. Read result files from docs/tasks/results/.
  4. Synthesize final answer for the user.

4. Best Practices & Anti-Patterns

DO THISDO NOT DO THIS
Use Background Jobs (&)Run agents sequentially
Check Session StateAssume agents finished after X seconds
Use Unique IDsReuse task names (causes overwrite)

5. Scripts and Resources

  • scripts/spawn_agent_mock.py: Mock Agent Runner. Simulates LLM agent behavior (delay + file write) and updates session state.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

73/100Analyzed 2/24/2026

Well-structured skill with clear phases, specific commands, and anti-patterns table. Actionable instructions for parallel task decomposition. However, highly specific to this repo's internal infrastructure (hardcoded paths to .agent/, scripts/, docs/tasks/), reducing reusability. The red flags section effectively warns about common mistakes. Score reflects strong clarity and actionability but penalized for internal-only nature and limited reusability beyond this specific project."

70
90
40
75
85

Metadata

Licenseunknown
Version-
Updated2/19/2026
PublisherMatrixFounder

Tags

llmobservability