agent-subagent-wiring
Coordinates edits across orchestrators and subagents when adding new specialized roles.
Install
mkdir -p .claude/skills/agent-subagent-wiring && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15913" && unzip -o skill.zip -d .claude/skills/agent-subagent-wiring && rm skill.zipInstalls to .claude/skills/agent-subagent-wiring
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create and wire new subagents into an existing Ralph Orchestrator agent family, including the new subagent prompt, orchestrator agent registration, routing table updates, result-code handling, ordering constraints, reviewer loops, and downstream prompt references. Use this skill whenever someone wants to add a subagent, split work out of an orchestrator, introduce a new reviewer/scout/scribe/coder/analyst role, or asks what prompt files and routing sections must change when a new agent is introduced.Key capabilities
- →Create new subagent prompts
- →Register orchestrator agents
- →Update routing tables
- →Handle result codes
- →Update sibling subagents
How it works
The skill provides a default process and references for coordinating edits across the orchestrator and affected subagents to integrate a new subagent.
Inputs & outputs
When to use agent-subagent-wiring
- →Add new subagent
- →Update routing tables
- →Split work from orchestrator
- →Wire new researcher agent
About this skill
Agent Subagent Wiring
Use this skill when the task is not just "write a new .agent.md file", but "make the new subagent actually work inside the existing orchestration setup."
This skill is about coordinated edits across the orchestrator and the affected subagents. A new subagent is not complete until the owning orchestrator can dispatch it, route on its result codes, and the relevant sibling agents know when to read or ignore its artifacts.
This skill complements other agent-architecture skills:
agent-as-functionexplains the architectural pattern and ownership model.agent-workflow-phase-editorcovers workflow-table and phase-skill renumbering when the change alters the phase sequence.
Read the bundled references before editing files.
Read These References
| File | Purpose |
|---|---|
references/decision-guide.md | Decide whether the new responsibility should become a subagent at all, and what kind of subagent it should be |
references/wiring-checklist.md | File-by-file checklist for every prompt update required to wire a new subagent into an existing orchestrator |
references/role-patterns.md | Wiring differences for researchers, writers/coders, reviewers, scouts, validators, and scribes |
references/templates.md | Reusable prompt snippets for frontmatter, subagent tables, routing rows, result codes, and artifact sections |
references/validation.md | Final verification steps so the new subagent is reachable, routable, and non-conflicting |
Default Process
- Decide whether the new work belongs in a dedicated subagent or should stay inside an existing agent.
- Classify the new subagent role: phase owner, helper, reviewer, scout, validator, or scribe-like formatter.
- Create the new
.agent.mdprompt with a narrow mission, clear input artifacts, output artifacts, and fixed result codes. - Update the orchestrator prompt so it knows:
- the new agent exists
- when to dispatch it
- how to route on each result
- whether ordering constraints or retry loops changed
- Update any sibling subagents that need to consume the new subagent's artifacts or defer responsibility to it.
- If the workflow phases changed, use
agent-workflow-phase-editoras well. - Validate names, routes, loops, and artifact contracts.
What This Skill Covers
Use this skill for changes such as:
- adding a new reviewer to an existing review gate
- splitting research into scout plus analyst
- extracting handoff composition into a scribe
- adding a validator/helper subagent used by a writer or coder
- introducing a new domain specialist subagent that owns one phase in the pipeline
- converting hybrid orchestrator logic into a proper routed subagent
What This Skill Does Not Replace
- It does not decide the high-level multi-agent architecture from scratch. Use
agent-as-functionfirst when the architecture itself is still unclear. - It does not handle phase renumbering or workflow-table surgery in detail. Use
agent-workflow-phase-editorwhen the phase sequence changes. - It does not generate domain knowledge skills for the new subagent. If the new role needs domain knowledge, create or update the relevant skill separately.
Rules
- Keep the orchestrator as a pure router. Do not let the orchestrator absorb the new subagent's substantive work.
- Give the new subagent a small, explicit job with stable result codes.
- Route on
status.json, not onoutput.mdparsing. - Update all ownership declarations, not just the first routing table you find.
- If the new subagent changes who reads which artifacts, update those downstream prompts explicitly.
- If the change touches both standard and revision variants, audit both.
Expected Outcome
After using this skill, the new subagent should be fully integrated:
- declared in the orchestrator frontmatter
- described in the orchestrator subagent roster
- reachable from the routing rules
- covered by ordering or retry logic where needed
- referenced by sibling prompts that depend on it
- validated so there are no dangling names, unreachable result codes, or silent ownership overlaps
When not to use it
- →When deciding high-level multi-agent architecture from scratch
- →When handling phase renumbering or workflow-table surgery in detail
- →When generating domain knowledge skills for the new subagent
Limitations
- →Does not decide high-level multi-agent architecture
- →Does not handle phase renumbering or workflow-table surgery in detail
- →Does not generate domain knowledge skills for the new subagent
How it compares
This skill offers a structured approach to integrating new subagents into an existing orchestration, unlike simply creating a new agent file.
Compared to similar skills
agent-subagent-wiring side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| agent-subagent-wiring (this skill) | 0 | 4mo | No flags | Advanced |
| opencode-cli | 14 | 7mo | Review | Advanced |
| claude-automation-recommender | 47 | 2mo | Review | Beginner |
| mcp-integration | 21 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
opencode-cli
SpillwaveSolutions
This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to "configure opencode", "use opencode cli", "set up opencode", "opencode run command", "opencode model selection", "opencode providers", "opencode vertex ai", "opencode mcp servers", "opencode ollama", "opencode local models", "opencode deepseek", "opencode kimi", "opencode mistral", "fallback cli tool", or "headless llm cli". Covers command syntax, provider configuration, Vertex AI setup, MCP servers, local models, cloud providers, and subprocess integration patterns.
claude-automation-recommender
anthropics
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.
mcp-integration
anthropics
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.
hook-development
anthropics
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
agent-factory
alirezarezvani
Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns
swarm-advanced
ruvnet
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows