richfrem/agent-plugins-skills / plugins/agent-orchestration/.apm/skills/orchestrating-agent-work
orchestrating-agent-work
VerifiedInteractive orchestrator for complex engineering work. Analyzes the task, conducts a diagnostic interview to select the appropriate execution strategy (Directed Acyclic Graph versus Loop, and which Loop type), plans the artifact, and supervises execution and verification. Use for "how should I orchestrate this", "plan this workflow", "should this be a DAG or a loop", "run these jobs in parallel", "delegate this to a worker agent", or "run/resume this graph manifest". Not for single trivial edits or skill self-improvement.
references/diagrams/agent_swarm.mmd
View on GitHub---
config:
theme: base
---
%% Pattern 4: Agent Swarm
%% Parallel execution across multiple agents/worktrees with merge verification.
%% Location: resources/diagrams/agent_swarm.mmd
flowchart TB
Start(["Trigger:<br>Large / Parallelizable Work"])
Start --> Plan["Plan & Partition Work"]
Plan --> Route{"Route by Complexity"}
Route -- "Sequential" --> Seq["Worktree A → B → C<br>(Ordered Pipeline)"]
Route -- "Parallel" --> Par["Dispatch All Simultaneously"]
Par --> W1["Agent 1<br>(Worktree 1)"]
Par --> W2["Agent 2<br>(Worktree 2)"]
Par --> WN["Agent N<br>(Worktree N)"]
subgraph Workers ["Worker Selection per Worktree"]
direction LR
Human["Human"] --- Script["Deterministic Script"] --- Agent["CLI Agent"]
end
W1 --> Verify
W2 --> Verify
WN --> Verify
Seq --> Verify
Verify{"Verification Gate"}
Verify -- Fail --> Correction["Correction Packet"] --> Route
Verify -- Pass --> VerifyGlobal{"Global Verification Passes?"}
VerifyGlobal -- No --> Correction
VerifyGlobal -- Yes --> Handoff["Completion & Handoff<br>to Orchestrator"]
Handoff -.->|Orchestrator| Next["Retrospective & Closure"]
style Start fill:#dfd,stroke:#333,stroke-width:2px
style Route fill:#fff3e0,stroke:#e65100,stroke-width:2px
style Verify fill:#fff3e0,stroke:#e65100,stroke-width:2px
style Workers fill:#f3e5f5,stroke:#6a1b9a,stroke-width:2px,stroke-dasharray: 5 5
style Correction fill:#ffebee,stroke:#c62828
style Distribute fill:#fff3e0,stroke:#e65100,stroke-width:2px
style Merge fill:#e3f2fd,stroke:#1565c0,stroke-width:2px
style VerifyGlobal fill:#fce4ec,stroke:#880e4f,stroke-width:2px
style Handoff fill:#d4edda,stroke:#155724,stroke-width:2px
style Next fill:#f5f5f5,stroke:#9e9e9e,stroke-width:1px,stroke-dasharray: 5 5
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |