Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add TheSimpleApp/agent-skills --skill "orchestrator"
Install specific skill from multi-skill repository
# Description
Meta-skill that analyzes complex tasks and spawns specialized agents with relevant skills. Use for multi-step features, large refactors, or any work requiring coordination across domains.
# SKILL.md
name: orchestrator
description: Meta-skill that analyzes complex tasks and spawns specialized agents with relevant skills. Use for multi-step features, large refactors, or any work requiring coordination across domains.
license: MIT
metadata:
author: thesimpleapp
version: "1.0"
Orchestrator
Meta-skill for intelligent task routing and parallel agent coordination.
When to Use
- Multi-step features spanning frontend + backend + database
- Large refactoring efforts
- Sprint planning with multiple parallel workstreams
- Any task requiring 3+ different skill domains
Task Analysis Framework
INPUT: User request
β
βββββββββββββββββββββββββββββββββββββββ
β ANALYZE TASK β
β β
β 1. What domains are involved? β
β β‘ Frontend (React/Flutter) β
β β‘ Backend (API/Edge Functions) β
β β‘ Database (Supabase/Postgres) β
β β‘ Testing (Unit/E2E) β
β β‘ Infrastructure (Deploy) β
β β
β 2. What's the dependency graph? β
β - Which tasks can run parallel? β
β - Which need sequential order? β
β β
β 3. What context is needed? β
β - Database schema β
β - Business rules β
β - Existing patterns β
βββββββββββββββββββββββββββββββββββββββ
β
SPAWN SPECIALIZED AGENTS
Skill-to-Domain Mapping
| Domain | Primary Skill | Supporting Skills |
|---|---|---|
| New Project | project-init | - |
| Codebase Understanding | codebase-analysis | - |
| Architecture Fix | architecture-cleanup | codebase-analysis |
| Flutter Feature | flutter-excellence | sprint-planning |
| React Feature | react-excellence | sprint-planning |
| Database Work | supabase-mastery | - |
| Sprint Planning | sprint-planning | project-init |
| Code Quality | code-review | - |
| Bug Investigation | debugging | codebase-analysis |
| Security Audit | security-review | code-review |
Agent Spawning Patterns
Pattern 1: Parallel Feature Development
## Task: Build user dashboard with analytics
### Batch 1 (Parallel - No Dependencies)
Agent A: flutter-excellence
β Build dashboard UI components
β Files: lib/features/dashboard/presentation/
Agent B: supabase-mastery
β Create analytics tables + RLS
β Files: supabase/migrations/
Agent C: react-excellence (if web dashboard)
β Build web dashboard components
β Files: src/features/dashboard/
### Batch 2 (Sequential - Needs Batch 1)
Agent D: flutter-excellence OR react-excellence
β Connect UI to Supabase
β Depends on: Agent A/C + Agent B complete
### Batch 3 (Parallel - Testing)
Agent E: Unit tests for components
Agent F: Integration tests for API
Agent G: E2E tests for user flows
Pattern 2: Codebase Improvement
## Task: Clean up messy codebase
### Phase 1: Analysis (Sequential)
Agent A: codebase-analysis
β Generate ANALYSIS_REPORT.md
β Identify tech debt and patterns
### Phase 2: Planning (Sequential)
Agent B: architecture-cleanup
β Create refactoring plan
β Batch tasks for parallel execution
### Phase 3: Execution (Parallel)
Agent C-F: Execute refactoring batches
β Each handles independent modules
### Phase 4: Verification (Sequential)
Agent G: code-review
β Verify changes maintain quality
Pattern 3: New Feature Sprint
## Task: Implement feature from spec
### Phase 1: Context Loading
Load: context-loader
β Database schema
β Business rules
β Existing patterns
### Phase 2: Design
Agent A: sprint-planning
β Break into tasks
β Identify parallel batches
### Phase 3: Implementation
Spawn agents per batch from sprint plan
### Phase 4: Quality
Agent X: code-review + security-review
β Final quality gate
Context Requirements
Before spawning agents, ensure context is loaded:
## Required Context Checklist
β‘ Database Schema
- Load from: supabase/schema.sql OR supabase/migrations/
- Key tables and relationships
β‘ Business Rules
- Load from: .claude/rules/business-logic.md
- Domain constraints and logic
β‘ Existing Patterns
- Load from: .claude/standards/ OR agent-os/standards/
- Code conventions to follow
β‘ Current Sprint
- Load from: docs/SPRINT.md (if exists)
- Active tasks and priorities
Agent Communication Protocol
Agents don't share context directly. Coordinate via:
- Shared Files - Write to agreed locations
- Task Completion Signals - Mark todos complete
- Handoff Documents - Create HANDOFF.md for next agent
Handoff Document Template
# Handoff: [Agent Name] β [Next Agent]
## Completed
- [x] Task 1
- [x] Task 2
## Files Created/Modified
- `path/to/file.ts` - Description
## Notes for Next Agent
- Important context
- Gotchas discovered
- Decisions made
## Blockers (if any)
- Issue and suggested resolution
Dynamic Skill Loading
When task domain is unclear, use discovery:
## Discovery Process
1. Search codebase for technology markers
- pubspec.yaml β Flutter project
- package.json + next.config β React/Next.js
- supabase/ folder β Supabase integration
2. Load appropriate skills based on discovery
- Flutter detected β flutter-excellence
- React detected β react-excellence
- Supabase detected β supabase-mastery
3. Check for existing standards
- .claude/standards/ β Load project conventions
- CLAUDE.md β Load project context
Orchestration Commands
Use these patterns when spawning agents:
# Spawn single specialized agent
"Use Task tool with subagent_type=Explore to analyze codebase structure"
# Spawn parallel agents
"Launch these agents in parallel:
- Agent A: [task] using [skill]
- Agent B: [task] using [skill]"
# Sequential with dependency
"After Agent A completes, spawn Agent B with context from HANDOFF.md"
Anti-Patterns
AVOID:
β Spawning too many agents (overwhelms coordination)
β Parallel agents modifying same files
β Agents without clear task boundaries
β Skipping context loading phase
β No handoff between dependent agents
PREFER:
β 2-4 parallel agents max per batch
β Clear file ownership per agent
β Specific, measurable task definitions
β Load context before spawning
β Explicit handoff documents
Integration with Sprint Planning
Orchestrator works with sprint-planning skill:
1. /sprint-planning β Creates task breakdown with batches
2. /orchestrator β Reads batches, spawns agents
3. Agents execute β Mark todos complete
4. Orchestrator monitors β Triggers next batch
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.