Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add m3taz-ahmed/ai-globals --skill agent-orchestration-lordgit clone --depth 1 https://github.com/m3taz-ahmed/ai-globalsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/m3taz-ahmed/ai-globals/agent-orchestration-lord)<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/agent-orchestration-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/agent-orchestration-lord/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/agent-orchestration-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/agent-orchestration-lord.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.01342 |
| Opus 5 | $0.00022 | $0.00671 |
| Sonnet 5 | $0.00009 | $0.00268 |
| Haiku 4.5 | $0.00004 | $0.00134 |
Grade A, and why
agent-orchestration-lord scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Orchestration Lord
[OBJ] Design multi-agent systems with correct orchestration patterns, communication protocols, failure handling, and observability — avoiding god-orchestrators and tight coupling.
Problem
Multi-agent systems promise parallelism and specialization but deliver chaos without discipline: agents talk past each other, the orchestrator becomes a bottleneck, shared mutable state causes race conditions, and a single agent failure cascades to system-wide breakdown. The orchestration layer is the most critical and most abused component.
Rules
- [REQ] Orchestration pattern selection. Choose based on task structure: orchestrator-worker (fan-out/fan-in, independent subtasks), supervisor-router (classify + delegate, dynamic routing), hierarchical (multi-level delegation, complex orgs), peer-to-peer (collaborative, no central authority). Document the rationale.
- [REQ] Agent communication via A2A. Use the Agent-to-Agent (A2A) protocol for inter-agent communication. A2A defines agent cards, task lifecycle, and streaming. Do not invent ad-hoc message formats. Fallback to ACP (Agent Communication Protocol) for simpler setups.
- [REQ] MCP for tool sharing. Agents share tools via MCP servers, not via direct code imports. Each agent connects to the MCP servers it needs. No agent has direct code-level access to another agent's tools.
- [REQ] Task decomposition. Decompose tasks until each subtask is: (a) independently executable by one agent, (b) has clear input/output contract, (c) has a defined success criteria. No subtask should require another agent's internal state to proceed.
- [REQ] Parallel vs sequential. Run independent subtasks in parallel. Run dependent subtasks sequentially. The orchestrator MUST know the dependency graph — no implicit dependencies. Parallel execution requires the subtasks to be truly independent (no shared mutable state).
- [REQ] Result aggregation. Define the aggregation strategy upfront: merge (combine partial results), select (pick best result), vote (majority/weighted), synthesize (LLM combines into new output). No "let the orchestrator figure it out" — aggregation is a defined step.
- [REQ] Conflict resolution. When agents produce conflicting results, resolve via: confidence scores (pick highest), domain authority (specialist wins), human escalation (irreconcilable), or re-delegation (ask a third agent). Document the resolution policy per task type.
- [REQ] Agent specialization. Each agent has ONE primary capability. A "generalist" agent is an anti-pattern — it becomes a god-agent. Specialize: research agent, code agent, review agent, test agent. The orchestrator composes; agents do not generalize.
- [REQ] Context isolation. Each agent operates in its own context window. Do not share full conversation history between agents — share only the task input and output contract. Prevents context overflow and cross-contamination of reasoning.
- [REQ] Shared memory patterns. When agents need shared state, use an external store (Redis, vector DB, key-value store) with explicit read/write APIs. No shared in-memory variables between agents. Version all shared state for conflict resolution.
- [REQ] HITL gates in orchestration. Insert human-in-the-loop gates at: high-stakes decisions (deploy, delete, spend), low-confidence results (agent confidence < threshold), and policy-sensitive actions (data access, external comms). The orchestrator pauses and waits for approval.
- [REQ] Failure handling — circuit breaker. If an agent fails N consecutive times, trip the circuit breaker: stop sending tasks to that agent, alert, and either retry with a fallback agent or fail the workflow. No infinite retries on a broken agent.
- [REQ] Failure handling — fallback. Define a fallback agent or fallback behavior for each agent role. If the primary agent fails, the fallback takes over. If no fallback exists, the orchestrator escalates to human.
- [REQ] Failure handling — retry. Retry failed agent calls with exponential backoff. Max retries configurable per agent. Non-retryable errors (auth, validation) do not retry. Retryable errors (timeout, 5xx) retry up to the limit.
- [REQ] Cost optimization. Track per-agent cost (tokens, API calls, time). Route tasks to the cheapest capable agent. Do not use a GPT-4-class agent for a task a GPT-4o-mini-class agent can handle. Cost dashboard per orchestration run.
- [REQ] Observability — tracing and spans. Every orchestration run produces a trace. Each agent call is a span with: agent ID, task, input summary, output summary, duration, cost, status. Use OpenTelemetry + OpenInference for span attributes.
- [REQ] Testing multi-agent systems. Test by: (a) unit test each agent in isolation, (b) integration test the orchestration graph with mocked agents, (c) chaos test by killing one agent mid-run and verifying fallback/recovery. No multi-agent system ships without a chaos test.
- [PROHIBIT] God-orchestrator (one agent does everything), tight coupling (agents import each other's code), and shared mutable state between agents — these three guarantee production failure.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 59 lines · 44 tokens per session scan A 51db56f21339
agent-orchestration-lord is a skill published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,342 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…