agent-orchestration
Skill2 starsChanged 6 months agoMITView on GitHub
Design multi-agent systems with robust tool interfaces, state management, and failure handling
9 other projects use a version of this.
Adopted by
Most recently taken up by
- SkillMedev/ai-engineer-toolkittheir own version, first seen Oct 5, 2026
- yogvidwankhede/vishwakarmatheir own version, first seen Sep 26, 2026
- juninmd/skillstheir own version, first seen Sep 15, 2026
- codeaholicguy/ai-devkittheir own version, first seen Sep 14, 2026
- sammasak/claude-code-skillstheir own version, first seen Sep 14, 2026
- CassetteTapeCrackle/claude-starterstheir own version, first seen Aug 19, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- GTMify/aigtm★ 25same name
- lixuvip/codex-agent-orchestration-skill★ 9same name
- juninmd/skills★ 2same name
- sammasak/claude-code-skills★ 2same name
- CassetteTapeCrackle/claude-starters★ 1same name
- yogvidwankhede/vishwakarma★ 1same name
- SkillMedev/ai-engineer-toolkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-engineeringSkill
- ai-ml-engineeringSkill
- api-and-interface-designSkill
- architecture-designSkill
- backend-engineeringSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- database-designSkill
- data-pipeline-engineeringSkill
- debugging-and-error-recoverySkill
- deployment-strategySkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- frontend-engineeringSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- llm-evaluationSkill
- microservices-designSkill
- mobile-developmentSkill
- observability-and-monitoringSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- prompt-engineeringSkill
- rag-system-designSkill
- requirements-analysisSkill
- risk-assessmentSkill
- security-and-hardeningSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Before designing any system with more than one AI agent
- Distinctive: line 15
When building tool interfaces for agents
- Distinctive: line 16
When debugging agent behavior that is unpredictable or hard to reproduce
- Distinctive: line 17
Before deploying an agent to handle user-facing tasks
- Distinctive: line 33
Every tool call must be logged: which tool, what inputs, what outputs, how long it took, did it succeed.
- Distinctive: line 42
If multiple agents coordinate: define exactly what one agent passes to the next.
- Distinctive: line 78
No audit log of agent actions
- Distinctive: line 79
No maximum step limit
- Distinctive: line 81
No test harness for the agent
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Multi-agent systems fail loudly or silently. Loudly: an agent calls a tool that doesn't exist. Silently: an agent completes with a subtly wrong result and the orchestrator never notices. This skill designs agent systems that are auditable, recoverable, and deterministic about what succeeded and what failed.
When to Use
- Before designing any system with more than one AI agent
- When building tool interfaces for agents
- When debugging agent behavior that is unpredictable or hard to reproduce
- Before deploying an agent to handle user-facing tasks
Process
Step 1: Define the task boundary
Agents work best on well-scoped tasks with clear completion criteria. Avoid: "make the application better." Use: "fix all TypeScript type errors in src/components/." Ambiguous tasks produce ambiguous results.
Step 2: Design the tool interface first
Tools are the agent's API to the world. Each tool must have:
- A precise, unambiguous name
- A description that tells the agent WHEN to use it (not just what it does)
- Strongly-typed input schema (JSON Schema)
- Well-defined output schema
- Error behavior documented
Step 3: Implement tool observability
Every tool call must be logged: which tool, what inputs, what outputs, how long it took, did it succeed. This is non-negotiable - you cannot debug an agent you cannot observe.
Step 4: Design for idempotency
Tools that create or modify state must be idempotent where possible. If an agent retries a tool call (due to failure), the second call must not create duplicate state.
Step 5: Plan the agent loop
Define: what does the agent do on each step? How does it decide it's done? What is the maximum number of steps? (Always set a maximum - unbounded loops are production incidents.)
Step 6: Define the handoff protocol
If multiple agents coordinate: define exactly what one agent passes to the next. Use structured data, not natural language, for inter-agent communication. Natural language is lossy.
Step 7: Design failure handling
For each tool:
- What if the tool returns an error?
- What if the tool times out?
- What if the tool returns unexpected output?
Define: retry strategy, escalation path, graceful degradation. "The agent will figure it out" is not a failure handling strategy.
Step 8: Implement human-in-the-loop checkpoints
For consequential actions (deleting data, sending emails, making payments): require human approval. Implement a confirmation step before execution.
Step 9: Evaluate the agent on a test harness
Build a test harness that: replays tasks, verifies outputs, measures success rate, tracks which tools were called and in what order. Run it in CI.
Step 10: Production safeguards
- Rate limiting on tool calls (prevent runaway loops)
- Cost monitoring (LLM tokens, API calls)
- Audit log of every action taken
- Kill switch to halt agent mid-run
- Output review before surfacing to users
Anti-Rationalizations
"The agent is smart enough to handle edge cases" The agent has never seen your edge cases. Write tests for them.
"We don't need a maximum step limit" You always need a maximum step limit. Agents enter failure loops. Budget limits save you.
"Human-in-the-loop slows things down" For irreversible actions: slowing down is the feature, not a bug.
Red Flags
- No audit log of agent actions
- No maximum step limit
- Natural language inter-agent communication
- No test harness for the agent
- Irreversible actions without human approval
- Tool descriptions that describe what a tool does but not when to use it
Verification Requirements
- All tools have precise names, typed inputs, and documented error behavior
- All tool calls are logged
- Maximum step limit set and enforced
- Inter-agent communication uses structured data
- Failure handling defined for each tool
- Human approval required for irreversible actions
- Agent evaluated on a test harness with 20+ tasks
- Production safeguards (rate limiting, kill switch, cost monitoring) in place
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

