xiaohongshu
xiaohongshu
agent-orchestration
Coordinate parallel agent execution with context handoff. Use when: (1) task has parallelizable subtasks, (2) need to explore multiple areas, (3) research and implementation can happen concurrently. Updates AGENTS.md with status and results.
Full skill instructions
Coordinates parallel agent execution with context handoff via documentation.
Invoke when:
Also invoke explicitly with:
/agent-orchestration [task]Break down the task into subtasks:
Questions to ask:
| Pattern | Description | Example |
|---|---|---|
| Independent | No dependencies | Explore 3 code areas |
| Fan-out/Fan-in | Parallel then combine | Research multiple approaches, then decide |
| Pipeline | Sequential handoff | Research → Plan → Implement |
| Hybrid | Mix of above | Research (parallel) → Plan → Implement (parallel) |
For each agent, define:
## Agent: {{agent_id}}
**Task:** {{specific_task}}
**Type:** Explore | Research | Implement | Review
**Dependencies:** {{none | agent_ids}}
**Expected output:** {{files | summary | decision}}
**Context:** {{what this agent needs to know}}
Before launching:
# Agent Coordination
## Current Task
Implement user authentication with OAuth support
## Active Agents
| ID | Task | Status | Started | Output |
|----|------|--------|---------|--------|
| a1 | Research OAuth providers | running | 14:30 | - |
| a2 | Explore existing auth code | running | 14:30 | - |
| a3 | Review security requirements | running | 14:30 | - |
## Dependencies
a1 ─┐
a2 ─┼─> a4 (implementation)
a3 ─┘
Independent agents (launch in parallel):
Launch agents a1, a2, a3 in parallel:
Agent a1: "Research OAuth providers (Google, GitHub, Microsoft). Compare features, security, implementation complexity. Output to RESEARCH.md"
Agent a2: "Explore existing auth code in src/auth/. Document current patterns, identify extension points. Output findings to AGENTS.md"
Agent a3: "Review security requirements in docs/security.md. List authentication requirements and constraints."
Dependent agents (wait for predecessors):
Wait for a1, a2, a3 to complete.
Agent a4: "Using research from a1, patterns from a2, and requirements from a3, implement OAuth authentication. Follow TDD workflow."
Update AGENTS.md with results:
## Completed Agents
### Agent a1: Research OAuth providers
**Status:** complete
**Duration:** 15 min
**Results:**
Recommended Google OAuth for:
- Widest user base
- Best documentation
- Simplest implementation
**Files modified:**
- RESEARCH.md (OAuth findings section)
### Agent a2: Explore existing auth code
**Status:** complete
**Duration:** 12 min
**Results:**
Found extension points in:
- src/auth/middleware.ts (add OAuth check)
- src/auth/providers/ (add Google provider)
**Files modified:**
- None (exploration only)
Document what each agent discovered for the next phase:
## Context Handoff
### From a1 to a4
**Discovered:** Google OAuth is best choice. Use @google-cloud/oauth2 library.
**Next steps:** Implement Google OAuth provider in src/auth/providers/google.ts
### From a2 to a4
**Discovered:** Existing auth middleware at src/auth/middleware.ts can be extended. Pattern: each provider exports `authenticate()` and `getUser()` functions.
**Next steps:** Follow existing pattern when adding Google provider.
Good for: Understanding codebase, initial research
┌─ Agent a1: Explore frontend ────┐
├─ Agent a2: Explore backend ─────┼─> Synthesize
└─ Agent a3: Explore infrastructure ─┘
Good for: Evaluating options before implementation
┌─ Agent a1: Research option A ───┐
├─ Agent a2: Research option B ───┼─> Decision Agent
└─ Agent a3: Research option C ───┘
Good for: Independent features or components
┌─ Agent a1: Implement feature A ─┐
├─ Agent a2: Implement feature B ─┼─> Integration
└─ Agent a3: Implement feature C ─┘
Good for: Sequential transformation
Research Agent ─> Design Agent ─> Implementation Agent ─> Review Agent
| Type | Purpose | Tools |
|---|---|---|
| Explore | Find files, understand structure | Glob, Grep, Read |
| Research | Gather information, compare options | WebSearch, WebFetch, Read |
| Implement | Write code, make changes | Edit, Write, Bash |
| Review | Check quality, security, tests | Read, Grep, Bash |
Implementation agents should follow TDD:
After all agents complete:
Research agents output feeds into planning:
| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "I'll do it sequentially" | Wastes time on independent tasks | Parallelize |
| "Context is in my head" | Other agents can't read minds | Document in AGENTS.md |
| "Results are obvious" | Future reference needs explicit record | Write it down |
| "Dependencies are clear" | Implicit dependencies cause bugs | Document explicitly |
/agent-orchestration "Add OAuth authentication"
Analyzing task...
Identified subtasks:
1. Research OAuth providers (independent)
2. Explore existing auth code (independent)
3. Review security requirements (independent)
4. Implement OAuth (depends on 1, 2, 3)
5. Write tests (depends on 4)
Parallelization plan:
Phase 1 (parallel):
- a1: Research providers
- a2: Explore auth code
- a3: Review requirements
Phase 2 (sequential):
- a4: Implementation (after phase 1)
- a5: Tests (after a4)
Launch phase 1? [y/n]
For detailed guidance, see:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience