orchestrator
Use this skill when you need to orchestrate specialized Claude agents in separate sessions. Perfect for long-running tasks, specialized agents with MCP tools, and resumable workflows.
What this skill does
# Orchestrator Skill ## What & When **What**: Commands for managing specialized Claude AI agent sessions with optional agent blueprints and MCP server integration. **When to use**: - Delegate tasks to specialized sessions with different MCP configurations - Run long-running operations that can be resumed later - Use agent blueprints for specialized behavior (research, testing, etc.) - Manage multiple concurrent agent conversations - Work with persistent sessions using simple names (no session ID management) **Key Benefits**: - Session names instead of session IDs (simpler tracking) - Automatic session management via backend APIs - Built-in result extraction (no manual JSON parsing) - Optional agent blueprints for specialized capabilities - Sessions can be resumed (even after finished) **Prerequisites**: - Backend services must be running (Agent Coordinator and Agent Registry) --- ## Quick Reference ### `ao-start` - Start new session ```bash uv run --script commands/ao-start <session-name> ``` **Use when**: Starting a new Claude agent session. Reads prompt from stdin or `-p` flag. ### `ao-resume` - Continue existing session ```bash uv run --script commands/ao-resume <session-name> ``` **Use when**: Adding messages to an existing session. Reads prompt from stdin or `-p` flag. ### `ao-status` - Check session state ```bash uv run --script commands/ao-status <session-name> ``` **Use when**: Need to know if session is `running`, `finished`, or `not_existent`. ### `ao-get-result` - Extract result from finished session ```bash uv run --script commands/ao-get-result <session-name> ``` **Use when**: Session is finished and you need the final result text. ### `ao-list-sessions` - List all sessions ```bash uv run --script commands/ao-list-sessions ``` **Use when**: Need to see available sessions with their IDs and project directories. ### `ao-list-blueprints` - List available agent blueprints ```bash uv run --script commands/ao-list-blueprints ``` **Use when**: Need to see what specialized agent blueprints are available. ### `ao-show-config` - Display session configuration ```bash uv run --script commands/ao-show-config <session-name> ``` **Use when**: Need to see session metadata (project dir, agent used, timestamps, etc.). ### `ao-delete-all` - Delete all sessions ```bash uv run --script commands/ao-delete-all ``` **Use when**: Need to delete all session data. **Use with caution.** --- ## Command Location **IMPORTANT**: All commands are located in the `commands/` subdirectory of this skill folder. Don't use `cd` to change directories instead run them with their full path. Before using commands for the first time: 1. Locate this skill's root folder (same directory as this SKILL.md) 2. Commands are in: `<skill-root>/commands/ao-*` 3. Execute using: `uv run --script <skill-root>/commands/ao-<command> <args>` **Example**: ```bash # If skill is at /path/to/skills/orchestrator uv run --script /path/to/skills/orchestrator/commands/ao-start my-session -p "Research topic X" ``` --- ## Parameters Reference ### Required - `<session-name>` - Alphanumeric + dash/underscore, max 60 chars (e.g., `research-task`, `code_review_123`) ### Common Options - `-p "prompt"` or `--prompt "prompt"` - Provide prompt via CLI instead of stdin - `--agent <agent-name>` - Use specialized agent blueprint (only for `ao-start`) - `--project-dir <path>` - Override project directory (only for `ao-start`, default: current directory) --- ## Typical Workflows ### Basic Session Workflow ```bash # Start new session echo "Analyze this codebase structure" | uv run --script commands/ao-start analysis # Check status uv run --script commands/ao-status analysis # Output: finished # Get result uv run --script commands/ao-get-result analysis # Resume with follow-up echo "Now focus on security patterns" | uv run --script commands/ao-resume analysis ``` ### Using Specialized Agents ```bash # List available blueprints uv run --script commands/ao-list-blueprints # Start session with specific agent blueprint uv run --script commands/ao-start research-task --agent web-researcher -p "Research Claude AI capabilities" # View agent configuration uv run --script commands/ao-show-config research-task ``` ### Managing Sessions ```bash # List all active sessions uv run --script commands/ao-list-sessions # Check specific session uv run --script commands/ao-status my-session # Delete all sessions uv run --script commands/ao-delete-all ``` --- ## Key Concepts ### Session States - **`not_existent`** - Session doesn't exist - **`running`** - Session active, ready to resume - **`finished`** - Session complete, result available ### Working Directory - Sessions operate in the project directory set at creation (default: current directory) - All file operations within the session are relative to this directory - Use `--project-dir` with `ao-start` to override; other commands retrieve it from the session API ### Blueprints vs Sessions - **Blueprint**: Reusable configuration (system prompt + MCP tools) stored in Agent Registry - **Session**: Running conversation instance managed by Agent Coordinator - One blueprint can be used by multiple sessions - Sessions can run without blueprints (general purpose) --- ## Notes for AI Assistants 1. **Always check status** before resuming: `ao-status <name>` → only resume if `running` or `finished` 2. **Session names** must be unique and valid (no spaces, max 60 chars, alphanumeric + dash/underscore) 3. **Prompt input**: Use stdin (pipe) OR `-p` flag, not both (stdin takes precedence) 4. **Get result** only works on `finished` sessions - check status first 5. **Blueprints** - list them with `ao-list-blueprints` before using `--agent` 6. **Sessions are persistent** - stored in Agent Coordinator database 7. **Command location** - Always use commands from this skill's `commands/` folder 8. **Async execution** - Sessions run in Claude Code, commands return immediately after submission --- ## Error Handling Common errors and solutions: | Error | Cause | Solution | |-------|-------|----------| | "Cannot connect to Agent Coordinator" | Backend not running | Ask the user to the backend. | | "Cannot connect to Agent Registry" | Backend not running | Ask the user to the backend. | | "Session already exists" | Creating duplicate session | Use `ao-resume` or choose different name | | "Session not found" | Wrong name or doesn't exist | Check `ao-list-sessions` | | "Session is not finished" | Getting result from running session | Check `ao-status`, wait for `finished` | | "Invalid session name" | Bad characters or too long | Use alphanumeric + dash/underscore, max 60 chars | | "No prompt provided" | Missing `-p` and stdin | Provide prompt via stdin or `-p` flag | | "Agent not found" | Blueprint not in registry | Check `ao-list-blueprints` for available blueprints | --- ## Exit Codes - `0` - Success - `1` - Error (invalid input, session not found, etc.) --- ## Quick Decision Tree **Want to start a new agent conversation?** → `ao-start <name>` - With specialized agent? → Add `--agent <agent-name>` - In specific directory? → Add `--project-dir <path>` **Want to continue a conversation?** → `ao-resume <name>` - Not sure if it exists? → Check with `ao-status <name>` first **Want to see the result?** → `ao-get-result <name>` - Must check status first → `ao-status <name>` (must be `finished`) **Want to see what exists?** - Sessions → `ao-list-sessions` - Blueprints → `ao-list-blueprints` **Want session details?** → `ao-show-config <name>` **Want to delete all?** → `ao-delete-all` (removes all sessions) --- ## Additional Resources - **Architecture**: See `references/AGENT-ORCHESTRATOR.md` - **Environment Variables**: See `references/ENV_VARS.md`
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.