Skip to main content
skill CX Codex

subagent-delegation · sammcj — Claude Code skill: what it does, how to install

subagent-delegation guides Claude Code in scoping sub-tasks, assigning file ownership, and choosing between clean named sub-agents or session forks.

Apache-2.0 ★ 173 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sammcj/agentic-coding --skill subagent-delegation -a claude-code
Open on GitHub

What subagent-delegation does

The skill provides rules for delegating work via the Agent tool. It requires setting strict file ownership per worker, preventing concurrent sub-agents from overwriting shared code. Instructions must tell sub-agents they are one of several workers and request only key findings in return.

It establishes named sub-agents as the default choice because they operate in an isolated context window. Forking clones the entire conversation history, system prompt, and tools. Forking code reviews or premise checks will fail because the fork inherits the main session's bias.

For basic tasks that skip heavy reasoning, the instructions allow switching to the sonnet model. When a forked agent needs to touch project files speculatively, the skill enforces isolation: "worktree" so edits stay in an isolated git worktree.

What it helps with

  • Enforce file boundaries across concurrent agents
  • Select between isolated named agents and session forks
  • Keep speculative code edits inside a separate git worktree
  • Formulate concise briefs with explicit success criteria

Example prompts for the agent

  • Delegate backend and frontend refactoring across two sub-agents with strict file boundaries
  • Spawn a session fork with worktree isolation to test an alternative architecture
  • Run background research using a named sub-agent with its own fresh context

How to install subagent-delegation

1Skills CLI (Vercel)

npx skills add sammcj/agentic-coding --skill subagent-delegation -a claude-code

2Manually: put the files in place

~/.claude/skills/subagent-delegation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/subagent-delegation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about subagent-delegation

How to install subagent-delegation in Claude Code?

Run npx skills add sammcj/agentic-coding --skill subagent-delegation -a claude-code or save the skill file to ~/.claude/skills/subagent-delegation/SKILL.md.

What does subagent-delegation do?

It outlines how to brief helper agents, prevent file conflicts, pick suitable models, and decide when session forking is appropriate.

When is a session fork the wrong choice?

Never fork code review or premise verification. The forked agent brings along the session's prior assumptions, losing the objective adversarial perspective needed for audits.

Source text

SKILL.md · Apache-2.0
---
name: subagent-delegation
description: How to scope, brief and choose sub-agents when delegating work with the Agent tool - named vs forked agents, file ownership boundaries, model selection, and when a fork is the wrong choice. Use when delegating to one or more sub-agents, deciding between a named agent and a fork, or splitting parallel work across agents.
---

# Sub-agent delegation

Delegation is authorised standingly (see CLAUDE.md). This skill covers how to do it well.

## Briefing a sub-agent

- Instruct them to return only key information
- Define clear boundaries per agent. Specify which files each agent owns
- Include "you are one of several agents" in instructions
- Set explicit success criteria. Combine small updates to prevent over-splitting
- Sub-agents can compete and erase each other's changes - ensure no overlap
- If the task is simple and does not require careful consideration, reasoning or creativity (for example summarising simple web searches) you may use the sonnet model

## Named vs forked

**Named** (standard) sub-agents have their own context window - good for parallel research, inspection, or separate features. Default to a named sub-agent.

A **fork** inherits the main session's full conversation history, system prompt, tools, and model. Output isolation is preserved (only the final result returns) but input isolation is lost.

Fork only when the accumulated nuance of the main conversation is genuinely useful to the subtask AND the task doesn't benefit from a fresh perspective.

- Never fork code review, premise-checking, or any task that needs an adversarial reading - the fork inherits its own bias along with its context
- Fork suits: parallel design variations that must respect prior decisions, MCP queries whose answer depends on session context, multi-step tangents you'd otherwise need to recap
- Pass `isolation: "worktree"` when a fork will edit files speculatively, so its changes land in a separate git worktree instead of the working tree

© sammcj · Apache-2.0 · sammcj/agentic-coding

Similar skills

All skills for Agent setup: memory, context, orchestration →

subagent-delegation by other authors comes first.

subagent-delegation chrisbanes The subagent-delegation skill for Claude Code manages subagent task distribution and reassignment. It runs when the user invokes the playbook or explicitly requests delegation. CX Codex +1 123installs competition-kerberos-delegation zhaoxuya520 competition-kerberos-delegation — a skill for Claude Code that automates Kerberos delegation analysis in CTF scenarios. It runs after context setup via $ctf-sandbox-orchestrator to verify exploitation paths. CX Codex +1 109installs delegation-core athola delegation-core delegates tasks to eight external CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer). Keeps design and architecture local, sends execution out. CX Codex +1 1installs delegation Paweł Huryn delegation — a Claude Code skill for briefing subagents and assessing their reports. It applies before handing off a build, review, or research task. CX Codex +1 ★ 741repo stars delegation-audit Son Nguyen delegation-audit is a Claude Code skill that reviews which models handled each subagent type and how those assignments performed. It flags weak results, repeated failures, and possible model mismatches. CX Codex +1 ★ 1,198repo stars subagent-driven-development Hermes Agent (adapted from obra/superpowers) subagent-driven-development runs an implementation plan task by task. Each task goes to a fresh subagent via delegate_task, then gets a spec review and a code quality review. CX Codex +1 106installs cross-agent-delegation alinaqi cross-agent-delegation routes coding tasks across Claude, Kimi, and Codex using iCPG graph complexity metrics and Mnemos checkpoints. CX Codex +1 122installs

From the same set73

The whole set →
llm-prompting-guide llm-prompting-guide is a Claude Code skill with prompt format rules for MiniMax H3 and MiniMax Music 3. Consult it when drafting prompts for these models in ComfyUI or other tools. CX Codex +1 ★ 173repo stars backlog Tracks bugs and features in local Markdown files or GitHub Issues. Keeps backlogs tidy without drafting heavy PRDs or specifications. CX Codex +1 ★ 173repo stars github This skill sets rules for using gh to work with GitHub, from reading PR feedback to checking GitHub Actions. It fits tasks involving issues and code review. CX Codex +1 ★ 173repo stars compact-prep compact-prep — a Claude slash command that tidies the work state before the context window fills up, then hands you prompts for compacting the session and resuming it. CX Codex +1 ★ 173repo stars openspeccer openspeccer opens a read-only local dashboard for an OpenSpec repository and reports active changes, artifacts, and tasks. Useful when you need project status. CX Codex +1 ★ 173repo stars json-schema-lookup json-schema-lookup — a skill that points Claude at the SchemaStore catalog so it can validate config files and look up allowed options. CX Codex +1 ★ 173repo stars deferred-task-execution deferred-task-execution delays command execution in Claude Code for a specific duration or until a chosen time. Handy when builds or scripts need to wait. CX Codex +1 ★ 173repo stars compression-editor compression-editor is a Claude Code subagent that shortens prose, instructions, skills, and docs without losing meaning. It skips source code and summarisation. CX Codex ★ 173repo stars

Project sponsors

Companies that keep this analytics open