subagent-delegation

subagent-delegation is a skill for Codex from PracticalSwan/agent-skills. It costs 40 tokens per session (1,291 once invoked), scanned A, original, MIT.

A set of patterns for delegating routine coding work to subagents, which are smaller agents assigned focused tasks. It covers boilerplate, data conversion, file analysis, documentation, and utility code.

In plain words
What is it for?
Use it to plan parallel subagent work, define focused tasks and success checks, and avoid combining unrelated work into one assignment.
Why use it?
It helps split larger jobs into clear independent pieces that can be checked separately.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it to plan parallel subagent work, define focused tasks and success checks, and avoid combining unrelated work into one assignment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/subagent-delegation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PracticalSwan/agent-skills --skill subagent-delegation
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for subagent-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/subagent-delegation/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/subagent-delegation)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/subagent-delegation"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/subagent-delegation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for subagent-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/subagent-delegation"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/subagent-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,291 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 109
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01291
Opus 5.5 $0.00016 $0.00516
Sonnet 5.5 $0.00008 $0.00258
Haiku 4.5 $0.00004 $0.00129

Measured 2mo ago against content hash f8c44ac22368, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

subagent-delegation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/delegation-template.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

subagent-delegation/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subagent Delegation Patterns

  • Leverage native parallel subagent dispatch and 200k+ context windows where available.

Activation Conditions

Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.

Activate this skill when:

  • Creating repetitive code structures or boilerplate
  • Performing data transformation tasks
  • Analyzing codebase for patterns or information
  • Generating documentation from existing code
  • Creating simple utility functions
  • Breaking down complex features into manageable subtasks

Core Delegation Patterns

See Delegation Patterns for detailed examples of:

  • Boilerplate generation (API routes, CRUD operations, component structures)
  • Data transformations between formats
  • File analysis and pattern extraction
  • Documentation generation from code
  • Utility function creation

Anti-Patterns

  • Delegating or evaluating without a scoped success condition: The output becomes hard to review and easy to overbuild.
  • Skipping the evidence step: A workflow that cannot be re-checked quickly is not ready for handoff.
  • Bundling unrelated subtasks together: It creates noisy prompts, weaker ownership, and avoidable integration risk.

Verification Protocol

Before claiming "skill applied successfully":

  1. Pass/fail: The Subagent Delegation workflow names the agent boundary, delegated scope, and expected return artifact.
  2. Pass/fail: Context passed to helpers is minimal, task-local, and free of hidden expected answers.
  3. Pass/fail: Results are integrated only after evidence, diffs, or citations are checked by the controller.
  4. Pressure-test scenario: Run the workflow on two similar tasks that must not share assumptions or leaked context.
  5. Success metric: Zero context leakage; every delegated output is independently reviewable.

Examples & Scripts

Read the full file on GitHub · 140 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 140 lines · 40 tokens per session scan A f8c44ac22368

Subscribe to this mod's changes

subagent-delegation is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 14d ago), licensed MIT. It adds 40 tokens to every session and 1,291 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

subagent-delegation compared with skills from other repositories

subagent-delegation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
subagent-delegationPracticalSwan/agent-skillsSkill2514d agoMITA40Codex
flow-like-uiRheosoph/flow-likeSkill985yesterdaynoneA95Claude Code, Codex
subagent-driven-developmentmateaix/mateclawSkill1.2k3d agoApache-2.0A17Claude Code, Codex
task-routingMadAppGang/claude-codeSkill2908mo agoMITA70Claude Code
agent-orchestratorpinkpixel-dev/skills-collection-1Skill93mo agoApache-2.0A41Claude Code, Codex
agent-self-schedulingsickn33/agentic-awesome-skillsSkill51kyesterdayMITA24Claude Code
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex