Orchestration patterns define how Commands, Agents, and Skills work together to handle complex development tasks. Each pattern solves specific coordination challenges.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rohitg00/pro-workflow/llms.txt
Use this file to discover all available pages before exploring further.
Pattern 1: Command > Agent > Skill
The most powerful pattern for complex features. Three layers with single responsibilities.Structure
Example: Feature Builder
- Command
- Agent
- Skill
commands/build-feature.mdFlow Diagram
How It Flows
Pattern 2: Multi-Phase Development (RPI)
Research > Plan > Implement with validation gates between phases.Structure
The Flow
Phase Agents
- Researcher
- Architect
- Implementer
Pattern 3: Agent Skills vs On-Demand Skills
Two ways to use skills—understand when to use each.Agent Skills (Preloaded)
- Full skill content injected into agent context at startup
- Always available, no invocation needed
- Use for: domain knowledge the agent always needs
- Cost: uses context tokens
On-Demand Skills (Invoked)
- User runs
/skill-nameor Claude invokes viaSkill()tool - Content loaded only when called
- Use for: procedures run occasionally
context: forkruns in isolated subagent context
Decision Matrix
| Scenario | Use |
|---|---|
| Agent always needs this knowledge | Agent skill (preloaded) |
| User triggers occasionally | On-demand skill |
| Heavy procedure, don’t pollute context | On-demand with context: fork |
| Background-only, never user-facing | user-invocable: false |
Pattern 4: Agent Teams Orchestration
For large tasks, coordinate multiple agents working in parallel.Team Composition
| Role | Agent | Responsibility |
|---|---|---|
| Lead | Main session | Coordinate, assign tasks, synthesize |
| Frontend | Teammate 1 | UI components, styling, client logic |
| Backend | Teammate 2 | API endpoints, database, server logic |
| Tests | Teammate 3 | Test coverage, integration tests |
Communication Flow
Key features:- Lead assigns tasks via shared task list
- Teammates work independently in their own context windows
- Teammates message each other directly (not just report back)
- Lead synthesizes results and handles conflicts
When to Use
| Factor | Subagents | Agent Teams |
|---|---|---|
| Context | Shares parent session | Independent windows |
| Communication | Returns result only | Direct messaging |
| Duration | Short tasks | Long sessions |
| Isolation | Optional worktree | Always isolated |
| Coordination | Parent manages | Shared task list |
Pattern 5: Dynamic Command Substitution
Commands support string substitution for dynamic context.- Command Output
- Environment Variables
- User Arguments
- Argument Array
!\`command\` — Execute command and inject outputFrontmatter Reference
Command Frontmatter
| Field | Type | Purpose |
|---|---|---|
description | string | Shown in / menu |
argument-hint | string | Placeholder text |
allowed-tools | string[] | Tool whitelist |
model | string | Override model |
Agent Frontmatter
| Field | Type | Purpose |
|---|---|---|
name | string | Agent identifier |
description | string | When to use (include PROACTIVELY for auto-invoke) |
tools | string[] | Allowed tools |
disallowedTools | string[] | Blocked tools |
model | string | Model override |
permissionMode | string | Permission level |
maxTurns | number | Turn limit |
skills | string[] | Preloaded skills |
memory | string | user / project / local |
background | boolean | Default to background execution |
isolation | string | worktree for git isolation |
color | string | Display color in agent teams |
Skill Frontmatter
| Field | Type | Purpose |
|---|---|---|
name | string | Skill identifier |
description | string | When to invoke |
argument-hint | string | Parameter hint |
disable-model-invocation | boolean | Prevent auto-invocation |
user-invocable | boolean | Show in / menu |
allowed-tools | string[] | Tool whitelist |
model | string | Model override |
context | string | fork for isolated execution |
agent | string | Delegate to specific agent |
Best Practices
Do
Use read-only agents for planning phases
Preload frequently-needed skills (< 10KB)
Use
context: fork for heavy proceduresSet
background: true for long explorationUse agent teams for parallel work domains
Include PROACTIVELY in agent descriptions for auto-invocation
Don’t
Real-World Examples
Feature Development
Feature Development
Use multi-phase orchestration:
Bug Investigation
Bug Investigation
Use specialized debugger agent:
Code Review
Code Review
Use read-only reviewer:
Parallel Exploration
Parallel Exploration
Use agent teams:
Next Steps
Multi-Phase Development
Deep dive into Research > Plan > Implement
Parallel Worktrees
Enable zero dead time with parallel sessions