orchestration-prompts
Write prompts for orchestrator workflows with phases and aggregation. Use when designing multi-phase workflows, writing agent command prompts, or implementing result aggregation patterns.
What this skill does
# Orchestration Prompts Skill Write prompts for orchestrator workflows with proper phase design and result aggregation. ## Purpose Guide the creation of prompts for multi-agent orchestration workflows, including phase transitions, agent commands, and result aggregation. ## When to Use - Writing orchestrator system prompts - Designing phase-specific agent commands - Creating aggregation and reporting prompts - Building workflow transition logic ## Prerequisites - Understanding of orchestrator architecture (@single-interface-pattern.md) - Familiarity with lifecycle patterns (@agent-lifecycle-crud.md) - Knowledge of result patterns (@results-oriented-engineering.md) ## Prompt Types ### 1. Orchestrator System Prompt The identity prompt that defines orchestrator behavior: ```markdown # Orchestrator Agent ## Purpose Manage and coordinate specialized agents to accomplish complex tasks. You do NOT perform work directly - you orchestrate other agents. ## Capabilities - Create specialized agents from templates - Command agents with detailed prompts - Monitor agent progress - Aggregate and report results - Delete agents when work is complete ## Workflow Pattern 1. Analyze task requirements 2. Create appropriate agents 3. Command agents with detailed instructions 4. Monitor progress 5. Aggregate results 6. Report to user 7. Delete agents ## Context Protection - Keep your context focused on orchestration - Delegate detailed work to specialized agents - Do not read files directly - Do not write code ## Available Templates - scout-fast: Quick reconnaissance (haiku) - builder: Code implementation (sonnet) - reviewer: Code review (sonnet) - planner: Task planning (sonnet) ## Available Tools - create_agent(template, name) - command_agent(agent_id, prompt) - check_agent_status(agent_id) - list_agents() - delete_agent(agent_id) - read_agent_logs(agent_id) ``` ### 2. Scout Command Prompts Commands to send to reconnaissance agents: ```markdown ## Scout Command: Codebase Analysis Analyze the codebase for [SPECIFIC_AREA]. Focus on: 1. File structure and organization 2. Key patterns and conventions 3. Dependencies and relationships 4. Potential issues or concerns Provide results in this format: ### Files Analyzed [List of files examined] ### Key Findings 1. [Finding with file reference] 2. [Finding with file reference] ### Patterns Observed - [Pattern 1] - [Pattern 2] ### Recommendations 1. [Actionable recommendation] 2. [Actionable recommendation] ### Status [completed/partial/blocked] ``` ### 3. Builder Command Prompts Commands to send to implementation agents: ```markdown ## Builder Command: Implementation Implement [FEATURE] based on the scout report. ### Requirements [From scout findings or user request] ### Approach [Suggested implementation approach] ### Files to Modify - [file1.ts]: [changes needed] - [file2.ts]: [changes needed] ### Files to Create - [new-file.ts]: [purpose] ### Constraints - Follow existing patterns - Maintain backwards compatibility - Add appropriate tests Provide results in this format: ### Consumed Assets [Files read, reports used] ### Produced Assets [Files created or modified] ### Changes Summary [Brief description of changes] ### Tests [Test results if applicable] ### Status [completed/partial/blocked] ``` ### 4. Reviewer Command Prompts Commands to send to review agents: ```markdown ## Reviewer Command: Verification Review the implementation from [BUILDER_AGENT]. ### Context [Scout findings and builder changes] ### Review Criteria 1. Correctness: Does it meet requirements? 2. Quality: Does it follow patterns? 3. Security: Are there vulnerabilities? 4. Performance: Are there concerns? 5. Tests: Is coverage adequate? Provide results in this format: ### Consumed Assets [Files reviewed, reports referenced] ### Findings by Severity **Blocker:** [Issues that must be fixed] **High Risk:** [Significant concerns] **Medium Risk:** [Should be addressed] **Low Risk:** [Nice to fix] ### Verdict [Pass/Pass with recommendations/Fail] ### Recommendations [Prioritized list of improvements] ### Status [completed] ``` ### 5. Aggregation Prompts Prompts for combining results: ```markdown ## Aggregation: Final Report Compile final report from all agent results. ### Input - Scout report: [summary] - Builder report: [summary] - Reviewer report: [summary] ### Output Format ## Task Completion Report **Task:** [Original task] **Duration:** [Total time] **Cost:** [Total cost] ### Phase Summary | Phase | Agents | Duration | Status | | --- | --- | --- | --- | | Scout | [n] | [time] | [status] | | Build | [n] | [time] | [status] | | Review | [n] | [time] | [status] | ### Results **Files Created:** [List] **Files Modified:** [List] ### Review Summary [From reviewer] ### Outstanding Items [Any remaining work] ### Conclusion [1-2 sentence summary] ``` ## Workflow Phase Design ### Standard Phases | Phase | Purpose | Agents | Output | | --- | --- | --- | --- | | Scout | Understand | 1-3 scouts | Findings report | | Plan | Design | 1 planner | Implementation plan | | Build | Implement | 1-2 builders | Code changes | | Review | Verify | 1 reviewer | Review report | | Report | Summarize | Orchestrator | Final report | ### Phase Transitions ```text Scout Complete --> Aggregate Findings --> Plan Phase Plan Complete --> Validate Plan --> Build Phase Build Complete --> Aggregate Changes --> Review Phase Review Complete --> Check Verdict --> Report or Iterate ``` ### Conditional Flows ```markdown ## Conditional: Review Failure If reviewer verdict is "Fail": 1. Parse blocking issues 2. Create builder agent 3. Command: Fix specific issues 4. Re-run review phase 5. Maximum 3 iterations If still failing after 3 iterations: 1. Report partial completion 2. List unresolved issues 3. Request user intervention ``` ## Prompt Engineering Tips ### For Orchestrator Prompts - Be explicit about not doing work directly - List available tools and templates - Define clear workflow pattern - Emphasize context protection ### For Agent Commands - Include all needed context - Specify exact output format - List files to examine/modify - Set clear scope boundaries ### For Aggregation - Define input sources - Specify output structure - Include metrics to calculate - Handle partial results ## Output Format When writing orchestration prompts, provide: ```markdown ## Orchestration Prompt Design ### Orchestrator System Prompt [Full system prompt] ### Agent Command Templates **Scout Commands:** [Template with placeholders] **Builder Commands:** [Template with placeholders] **Reviewer Commands:** [Template with placeholders] ### Phase Transitions [Flow diagram or description] ### Aggregation Format [Final report template] ### Error Handling [Failure scenarios and responses] ``` ## Design Checklist - [ ] Orchestrator system prompt complete - [ ] Scout command template created - [ ] Builder command template created - [ ] Reviewer command template created - [ ] Aggregation format defined - [ ] Phase transitions documented - [ ] Error handling covered - [ ] Output formats standardized ## Anti-Patterns | Anti-Pattern | Problem | Solution | | --- | --- | --- | | Vague commands | Poor agent output | Specific instructions | | No output format | Unparseable results | Standard templates | | Missing context | Agent re-discovers info | Include scout findings | | No error handling | Workflow breaks | Conditional flows | | Orchestrator doing work | Context pollution | Strict delegation | ## Cross-References - @single-interface-pattern.md - Orchestrator architecture - @results-oriented-engineering.md - Result formats - @multi-agent-context-protection.md - Context boundaries - @orchestrator-design skill - System design ## Version History - **v1.0.0** (2025-12-26): Initial release --- ## Last Updated **Date:** 2025-12-26 **Model:** claude-opus-4-5-20251101
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.