/octocode-subagent
Use when spawning workers, parallel agents, Task/subagents, specialist handoffs, or A2A peers: gate spawn vs solo, decompose into bounded objectives, pick topology and model tier, write sealed packets, coordinate shared state, recover failures, and synthesize trustworthy results.
$ npx -y skills add bgauryy/octocode-mcp --skill octocode-subagent --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/octocode-subagent
Context preview
The summary Claude sees to decide when to auto-load this skill.
Use when spawning workers, parallel agents, Task/subagents, specialist handoffs, or A2A peers: gate spawn vs solo, decompose into bounded objectives, pick topology and model tier, write sealed packets, coordinate shared state, recover failures, and synthesize trustworthy results.
SKILL.md
octocode-subagent.SKILL.mdname: octocode-subagent
description: "Use when spawning workers, parallel agents, Task/subagents, specialist handoffs, or A2A peers: gate spawn vs solo, decompose into bounded objectives, pick topology and model tier, write sealed packets, coordinate shared state, recover failures, and synthesize trustworthy results."
Octocode Subagent
Host-agnostic delegation for local workers or independent remote agents. Flow: `GATE → DECOMPOSE → ROUTE → PACKET → SPAWN → COORDINATE → SYNTHESIZE → CLEANUP`.
Lobby rules
1. Spawn only when delegation changes speed, expertise, isolation, or context quality; otherwise keep work in the parent. 2. One bounded objective per worker; no nested spawning unless the host explicitly allows it. 3. Workers inherit no parent chat: every packet carries goal, scope, context, authority, constraints, evidence needs, and return shape. 4. Treat worker output as claims; re-check load-bearing anchors. 5. Barrier before synthesize — wait/list every live worker (or stop+remove); merge conflicts first; then answer. 6. Parent owns the user, synthesis, and mutations unless a packet explicitly transfers write ownership. 7. Pick the smallest capable configured model; declare file ownership before parallel writes. Stop when solo work finishes, two High options need a winner, three angles add nothing, a user/auth gate is pending, or no live workers remain.
Smart routes — load only what the current step needs
- When deciding solo, batch, specialist, or clean worker, load `references/spawn-gate.md` — delegation must earn its coordination cost.
- When splitting work, load `references/decompose.md`; when choosing supervisor, pipeline, handoff, or swarm load `references/patterns.md` — create a dependency-aware topology.
- Before spawning, load `references/packets.md`; when delegating technical research load `references/octocode.md` — make worker context and tool routing self-contained.
- When selecting model/thinking effort, load `references/model-routing.md` — match capability and cost to objective difficulty.
- When waiting, steering, messaging, or stopping workers, load `references/coordinate.md`; for independent remote peers load `references/a2a.md` — use the correct lifecycle contract.
- When parallel writers share mutable state, load `references/workspace.md` — assign ownership and prevent collisions.
- When workers stall, fail, or conflict, load `references/recovery.md`; before final output load `references/synthesize.md` — reconcile claims, gaps, and live workers.
- When grounding orchestration guidance in sources, load `references/references.md` — preserve provenance.
- When improving this skill, prefer `octocode-graph-eval`; otherwise load `references/improve-loop.md` — require measurable acceptance.
Related routes
- Use `octocode-research` for worker evidence; `octocode-awareness` for shared-repo coordination; `octocode-graph-eval` to judge worker quality.
- Local Ollama one-shots / save-tokens → `octocode-orchestrator-local-worker` (not this skill).
- Use `octocode-rfc-generator` before changing a multi-agent architecture; `octocode-prompt-optimizer` for packet contracts; `octocode-skills` when changing this folder.
Read more
name: octocode-subagent description: "Use when spawning workers, parallel agents, Task/subagents, specialist handoffs, or A2A peers: gate spawn vs solo, decompose into bounded objectives, pick topology and model tier, write sealed packets, coordinate shared state, recover failures, and synthesize trustworthy results."
Octocode Subagent
Host-agnostic delegation for local workers or independent remote agents. Flow: `GATE → DECOMPOSE → ROUTE → PACKET → SPAWN → COORDINATE → SYNTHESIZE → CLEANUP`.
Lobby rules
1. Spawn only when delegation changes speed, expertise, isolation, or context quality; otherwise keep work in the parent. 2. One bounded objective per worker; no nested spawning unless the host explicitly allows it. 3. Workers inherit no parent chat: every packet carries goal, scope, context, authority, constraints, evidence needs, and return shape. 4. Treat worker output as claims; re-check load-bearing anchors. 5. Barrier before synthesize — wait/list every live worker (or stop+remove); merge conflicts first; then answer. 6. Parent owns the user, synthesis, and mutations unless a packet explicitly transfers write ownership. 7. Pick the smallest capable configured model; declare file ownership before parallel writes. Stop when solo work finishes, two High options need a winner, three angles add nothing, a user/auth gate is pending, or no live workers remain.
Smart routes — load only what the current step needs
- When deciding solo, batch, specialist, or clean worker, load `references/spawn-gate.md` — delegation must earn its coordination cost.
- When splitting work, load `references/decompose.md`; when choosing supervisor, pipeline, handoff, or swarm load `references/patterns.md` — create a dependency-aware topology.
- Before spawning, load `references/packets.md`; when delegating technical research load `references/octocode.md` — make worker context and tool routing self-contained.
- When selecting model/thinking effort, load `references/model-routing.md` — match capability and cost to objective difficulty.
- When waiting, steering, messaging, or stopping workers, load `references/coordinate.md`; for independent remote peers load `references/a2a.md` — use the correct lifecycle contract.
- When parallel writers share mutable state, load `references/workspace.md` — assign ownership and prevent collisions.
- When workers stall, fail, or conflict, load `references/recovery.md`; before final output load `references/synthesize.md` — reconcile claims, gaps, and live workers.
- When grounding orchestration guidance in sources, load `references/references.md` — preserve provenance.
- When improving this skill, prefer `octocode-graph-eval`; otherwise load `references/improve-loop.md` — require measurable acceptance.
Related routes
- Use `octocode-research` for worker evidence; `octocode-awareness` for shared-repo coordination; `octocode-graph-eval` to judge worker quality.
- Local Ollama one-shots / save-tokens → `octocode-orchestrator-local-worker` (not this skill).
- Use `octocode-rfc-generator` before changing a multi-agent architecture; `octocode-prompt-optimizer` for packet contracts; `octocode-skills` when changing this folder.
Evidence-first code research for AI agents and developers. Octocode researches your local code and external code alike (GitHub repos, PRs, npm) with one toolset: ripgrep + AST search, trees, precise reads, and LSP.
Repo: bgauryy/octocode-mcp
Other skills on octocode.
- /octocode-benchmark
Use when planning, running, grading, or reporting the by-hand Octocode research benchmark — pairwise matchups (Octocode anchor vs one baseline: gh+RTK, gh+Headroom, or plain gh) over markdown questions, with a fresh isolated runner agent per (question, arm, pass), one blind
Open skill - /octocode-awareness
Use when coordinating work in a shared repo — multi-agent or solo across sessions: collision avoidance, handoffs, verification debt, durable memory/wiki, hooks setup/debug, and repo learning before planning, editing, reviewing, or testing.
Open skill - /octocode-brainstorming
Use when an idea needs disciplined exploration before building: generate options, test worth-building, map adjacent solutions, challenge assumptions, narrow scope, or choose Build RFC / Prototype / Narrow / Park — even without saying brainstorm.
Open skill - /octocode-chrome-devtools
Use when browser debugging, scraping a known URL efficiently, or running a multi-step page workflow needs real Chrome DevTools evidence: network, console, performance, DOM/CSS, screenshots/PDF, security, cookies/storage, click/fill/search flows, or auth-gated live pages via CDP
Open skill - /octocode-documentation
Use when writing or updating docs: README, API docs, runbooks, AGENTS.md, CLAUDE.md, ADRs, Diátaxis restructuring, or codebase documentation for humans or coding agents.
Open skill - /octocode-graph-eval
Use when measuring whether a change helped or looping until a target metric is hit — for one agent loop or a graph of loops (multi-agent workflow): ACCEPT/REVERT, keep/discard, goal→KPI contracts, eval suites, graders, held-out checks, benchmarks, TDD failing-case-first,
Open skill

