.claude/skills/skill-orchestrator/SKILL.md
--- name: skill-orchestrator version: 1.0.0 author: claude-command-control created: 2025-11-22 status: active complexity: complex --- # Skill Orchestrator ## Description Coordinates execution of multiple specialized skills in complex workflows, managing dependencies, parallel execution, and result synthesis. ## When to Use This Skill - When workflow requires 3+ different specialized skills - When skills have dependencies on each other's outputs - When parallel skill execution would improve pe
npx skillsauth add enuno/claude-command-and-control skill-orchestratorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Coordinates execution of multiple specialized skills in complex workflows, managing dependencies, parallel execution, and result synthesis.
Create workflow specification:
## Workflow Spec: [Workflow Name]
**Goal**: [High-level objective]
**Skills Involved:**
1.
2.
3.
4.
**Dependency Graph:**
skill-1 (start) ↓ skill-2 (depends on skill-1) ├→ skill-3 (parallel A, depends on skill-2) └→ skill-4 (parallel B, depends on skill-2) ↓ skill-5 (depends on skill-3 AND skill-4) ↓ skill-6 (finalization)
**Success Criteria:**
- [Criterion 1]
- [Criterion 2]
Analyze dependency graph for:
Parallelization Plan:
**Parallel Groups:**
- Group 1: [skill-3, skill-4] (both depend only on skill-2)
- Group 2: [skill-7, skill-8] (independent of each other)
**Sequential Constraints:**
- skill-5 MUST wait for Group 1 completion
- skill-6 MUST wait for skill-5
## Execution Plan
### Phase 1: Initialization
**Skills**: [skill-1](%5BPurpose%5D)
**Estimated Duration**: [X min]
**Output**: [Description]
### Phase 2: Parallel Processing
**Skills**: [skill-3, skill-4] (parallel)
**Dependencies**: Phase 1 complete
**Estimated Duration**: max([skill-3 duration], [skill-4 duration])
**Outputs**:
- skill-3: [output]
- skill-4: [output]
### Phase 3: Synthesis
**Skills**: [skill-5]
**Dependencies**: Phase 2 complete
**Inputs**: Outputs from skill-3 AND skill-4
**Estimated Duration**: [Y min]
**Output**: [Description]
### Phase 4: Finalization
**Skills**: [skill-6]
**Dependencies**: Phase 3 complete
**Estimated Duration**: [Z min]
**Output**: [Final deliverable]
**Total Estimated Duration**: [X + max(skill-3,skill-4) + Y + Z] min
## Resource Budget
**Token Budget**: [Total tokens]
- skill-1: [tokens]
- skill-2: [tokens]
- ...
- Orchestration overhead: [tokens]
**Time Budget**: [Total time]
- Sequential time: [sum of sequential]
- Parallelization savings: [time saved]
- Net time: [actual estimated time]
**External Resources:**
- MCP Server calls: [count]
- Agent invocations: [count]
For each sequential skill:
### Execute: [skill-name]
1. **Prepare Input:**
```json
{
"parameter1": "value from previous skill or requirement",
"parameter2": "value",
"context": {
// Context from previous steps
}
}
{
"execution_id": "[skill-exec-id]",
"status": "success | failure",
"output": {
// Skill output
},
"metadata": {
"duration": "[X min]",
"tokens_used": "[Y]"
}
}
{
"workflow_context": {
"[skill-name]_output": {
// Output data
}
}
}
#### Step 3.2: Execute Parallel Skills
For parallel skill groups:
Skills in Group: [skill-A, skill-B, skill-C]
Launch All:
Track Completion:
{
"parallel_group_status": {
"skill-A": "running",
"skill-B": "running",
"skill-C": "running"
}
}
Wait for All Completions: Monitor each skill until all complete
Collect Results:
{
"parallel_group_results": {
"skill-A": {
"status": "success",
"output": {},
"duration": "X min"
},
"skill-B": {
"status": "success",
"output": {},
"duration": "Y min"
},
"skill-C": {
"status": "success",
"output": {},
"duration": "Z min"
}
},
"group_duration": "max(X,Y,Z) min"
}
Validate All Outputs:
#### Step 3.3: Handle Errors and Recovery
IF any skill fails:
IF retryable error:
Retry skill (max 2 retries)
IF retry succeeds:
Continue workflow
ELSE:
Proceed to Step 3
IF critical skill failed:
- Use fallback approach if available
- Request human intervention
- Abort workflow with detailed error report
IF optional skill failed:
- Log warning
- Continue with partial results
- Note limitation in final output
{
"workflow_errors": [
{
"skill": "skill-name",
"phase": "phase-N",
"error": "error message",
"recovery_attempted": true,
"recovery_successful": false,
"impact": "critical | degraded | minimal"
}
]
}
### Phase 4: Result Synthesis
#### Step 4.1: Aggregate Outputs
Collect all skill outputs:
{
"workflow_results": {
"skill-1": { "output": {} },
"skill-2": { "output": {} },
"skill-3": { "output": {} },
"skill-4": { "output": {} },
"skill-5": { "output": {} }
}
}
Synthesize into final deliverable:
#### Step 4.2: Quality Validation
Run validation checks:
Completeness:
Consistency:
Quality:
IF validation fails:
### Phase 5: Reporting and Handoff
Workflow: [Workflow Name] Execution ID: [unique-id] Timestamp: [ISO 8601] Total Duration: [X min] Total Tokens: [Y tokens]
Execution Trace:
| Phase | Skills | Status | Duration | Tokens | | :-- | :-- | :-- | :-- | :-- | | 1 | skill-1 | ✅ Success | X min | Y tokens | | 2 | skill-3, skill-4 | ✅ Success | Z min | W tokens | | 3 | skill-5 | ✅ Success | A min | B tokens | | 4 | skill-6 | ✅ Success | C min | D tokens |
Parallelization Savings: [Time saved by parallel execution]
Quality Metrics:
Outputs:
Issues Encountered:
Recommendations:
## Examples
### Example 1: Multi-Skill Content Generation Workflow
**Workflow**: Generate technical blog post with code examples, diagrams, and SEO optimization
**Skills Involved:**
1. `research-skill`: Gather technical information
2. `code-example-generator`: Create code snippets
3. `diagram-generator`: Create architecture diagrams
4. `content-writer`: Write blog post content
5. `seo-optimizer`: Optimize for search engines
6. `proofreader`: Final quality check
**Execution:**
Execute: research-skill Input: "Gather information on microservices architecture patterns" Output: research-notes.md (3500 words of research)
Execute in parallel:
Wait for both to complete Duration: max(code gen: 8min, diagrams: 12min) = 12min
Execute: content-writer Inputs:
Execute in parallel:
Wait for both Duration: max(SEO: 5min, proof: 7min) = 7min
Synthesize:
Final Output: published-blog-post.md
Total Duration:
### Example 2: Code Review Orchestration
**Workflow**: Comprehensive PR review using multiple specialized skills
**Skills:**
1. `pr-analyzer`: Extract PR metadata
2. `security-scanner`: Security vulnerability scan
3. `performance-profiler`: Performance analysis
4. `test-coverage-checker`: Test coverage validation
5. `code-quality-checker`: Code quality metrics
6. `review-synthesizer`: Compile final review
**Orchestration:**
skill-1 (pr-analyzer) Output: PR metadata, changed files, commit history
Parallel execution: ├─ skill-2 (security-scanner) ├─ skill-3 (performance-profiler) ├─ skill-4 (test-coverage-checker) └─ skill-5 (code-quality-checker)
All use PR metadata from Phase 1 Wait for all 4 to complete
skill-6 (review-synthesizer) Inputs: All 4 reports from Phase 2 Output: Comprehensive review document
Result:
Security: ⚠️ 1 medium vulnerability found
Performance: ✅ No issues
Test Coverage: ✅ 94%
Code Quality: ✅ High
Overall: APPROVED WITH COMMENTS Merge after addressing security finding
## Quality Standards
- All skill invocations must include unique execution_id
- Parallel skills must be truly independent (no hidden dependencies)
- Token budget must account for orchestration overhead (+20%)
- Error recovery must be implemented for each skill
- Final synthesis must resolve conflicts between skill outputs
## Common Pitfalls
### Pitfall 1: Hidden Dependencies in "Parallel" Skills
**Issue**: Skills marked as parallel actually depend on each other
**Example**: skill-A modifies file that skill-B reads
**Solution**: Carefully analyze data dependencies before parallelizing
### Pitfall 2: No Timeout for Long-Running Skills
**Issue**: Workflow hangs waiting for stuck skill
**Solution**: Implement timeout for each skill with fallback
timeout = 15 minutes start_time = now()
invoke skill-X
while skill-X not complete: if (now() - start_time) > timeout: log error attempt graceful degradation break
### Pitfall 3: Poor Error Aggregation
**Issue**: One skill failure causes unclear error
**Solution**: Aggregate errors with context
{ "workflow_status": "partial_failure", "successful_skills": ["skill-1", "skill-3", "skill-5"], "failed_skills": [ { "skill": "skill-4", "error": "API timeout", "impact": "missing performance analysis in final report", "workaround": "manual performance review recommended" } ], "final_output": "available with noted limitations" }
## Version History
- 1.0.0 (2025-11-22): Initial release
tools
MemPalace local-first AI memory system. Use when setting up persistent memory for Claude Code sessions, mining project files or conversation transcripts, querying past context, configuring MCP tools, managing the knowledge graph, or troubleshooting palace operations.
tools
LangSmith Python SDK — trace, evaluate, and monitor LLM applications. Covers @traceable decorator, trace context manager, Client API, evaluate() / aevaluate(), comparative evaluation, custom evaluators, dataset management, prompt caching, ASGI middleware, and pytest plugin.
development
LangGraph (Python) — build stateful, controllable agent graphs with checkpointing, streaming, persistence, interrupts, fault tolerance, and durable execution. Covers both Graph API (StateGraph) and Functional API (@entrypoint/@task).
development
LangGraph Graph API (Python) — build explicit DAG agent workflows with StateGraph, typed state, nodes, edges, Command routing, Send fan-out, checkpointers, interrupts, and streaming. Use when you need explicit control flow and graph topology.