agent-coordination-patterns

Design multi-agent workflows with sequential, parallel, and dependency-graph coordination patterns.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/JoyJoin-Tech-Limited/JoyJoin_app_v0.1 --skill agent-coordination-patterns-joyjoin-tech-limited
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-coordination-patterns
Source: https://github.com/JoyJoin-Tech-Limited/JoyJoin_app_v0.1/tree/main/.github/skills/agent-coordination-patterns
Command: npx skills add https://github.com/JoyJoin-Tech-Limited/JoyJoin_app_v0.1 --skill agent-coordination-patterns-joyjoin-tech-limited

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Coordinating two or more AI agents on a single task often leads to conflicting file edits, duplicated work, unmerged outputs, and exploding parent context. This Skill provides explicit patterns for partitioning work, merging outputs, and resolving conflicts so multi-agent workflows converge on a unified result. ## Core Features & Use Cases - Seven Coordination Patterns: Sequential Pipeline, Parallel Swarm, Dependency Graph, Fan-Out/Fan-In, Convergence, Conflict Resolution, and Workload Partitioning, each with rules and anti-patterns. - Conflict Resolution Ladder: A five-step escalation path from re-scoping to human decision when agents produce incompatible outputs. - Copy-Paste Templates: Ready-made blueprints for research-to-verify pipelines, explore swarms, code review fan-in, and hierarchical merging of 5+ agents. - Use Case: When implementing a feature spanning a backend API and a mini-program frontend, define the contract sequentially, run both implementations in parallel, then verify integration with a QA agent. ## Quick Start Ask the AI to plan how multiple agents should collaborate on your task, for example by requesting a fan-out exploration of auth gaps followed by a synthesized gap report.

Frequently Asked Questions about agent-coordination-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate multiple AI agents on one task?

Choose an explicit coordination pattern first: sequential pipeline for dependent steps, parallel swarm for independent sub-tasks, or a dependency graph for mixed workflows. Assign each agent a non-overlapping scope and declare the merge strategy before spawning any agents.

How to merge conflicting outputs from parallel agents?

Follow the conflict resolution ladder: re-scope with narrower boundaries, re-sequence so one agent critiques the other, apply a domain-owner authority rule, escalate to structured deliberation, or present both options to a human. Never silently pick one output without documenting why.

When should I use parallel agents vs a sequential pipeline?

Use parallel agents when sub-tasks are independent and their outputs can be combined, such as auditing separate route groups. Use a sequential pipeline when each step genuinely depends on the previous step's output, like research feeding into planning and implementation.

What is the difference between agent coordination and deliberation?

Coordination fits agents with independent, complementary scopes working toward a shared goal, while deliberation fits fundamental disagreements requiring consensus before an irreversible decision. If coordination produces a deadlock, escalate to deliberation rather than force-merging.

How many parallel agents can run before merging becomes a problem?

Cap parallel agents at five per merge step. For six or more agents, use hierarchical fan-in where intermediate mergers consolidate groups before a final synthesizer combines results, preventing parent context from exploding.

Why do parallel agents produce conflicting file edits?

Conflicting edits happen when agent scopes overlap. Re-partition work by file, domain, or layer so every partition has a single owner, define handoff contracts between agents, or switch to sequential execution when boundaries cannot be made clean.