design-sub-agent

design-sub-agent is a skill for Claude Code from ne11nn/cantos-plugin. It costs 34 tokens per session (2,337 once invoked), scanned A, original, MIT.

A planning guide for creating a sub-agent: a separate agent configured to handle a focused task. It covers when a sub-agent is appropriate, how to configure it, and which design mistakes to check before writing its file.

In plain words
What is it for?
Use it when deciding whether to create a sub-agent, designing its instructions and settings, or reviewing a sub-agent configuration.
Why use it?
It helps prevent unnecessary sub-agents and unclear instructions. It also checks whether an existing sub-agent already covers most of the need.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ln -s ../../.assistants/<owner>/sub-agents/<file>.md <name>.md.

Part of the cantos plugin — 25 skills, 2 commands, 11 agents, 2 hooks shipped together

Good fit Use it when deciding whether to create a sub-agent, designing its instructions and settings, or reviewing a sub-agent configuration.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ne11nn/cantos-plugin
agentmods
npx agentmods add skills/ne11nn/cantos-plugin/design-sub-agent

Made for: Claude Code.

Or install cantos, the plugin that ships this one along with the rest of its 25 skills, 2 commands, 11 agents, 2 hooks.

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 design-sub-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/ne11nn/cantos-plugin/design-sub-agent/github.svg)](https://agentmods.dev/skills/ne11nn/cantos-plugin/design-sub-agent)
Your own site
<a href="https://agentmods.dev/skills/ne11nn/cantos-plugin/design-sub-agent"><img src="https://agentmods.dev/badge/skills/ne11nn/cantos-plugin/design-sub-agent/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 design-sub-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/ne11nn/cantos-plugin/design-sub-agent"><img src="https://agentmods.dev/badge/skills/ne11nn/cantos-plugin/design-sub-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,337 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.
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.00034 $0.02337
Opus 5.5 $0.00014 $0.00935
Sonnet 5.5 $0.00007 $0.00467
Haiku 4.5 $0.00003 $0.00234

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

Security

Grade A, and why

design-sub-agent 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 3mo ago.

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.

skills/design-sub-agent/SKILL.md · 241 lines

How it starts

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

Designing Sub-agents

A reasoning skill — no file writes. Think before you build.

Work through every question and checklist item before drafting anything. If any answer is "I'm not sure," resolve it first.


When to Build a Sub-agent at All

Build a sub-agent when:

  • The task produces verbose output you don't need in the main context (test runs, log processing, research)
  • You want to enforce specific tool restrictions or permission modes
  • The work is completely self-contained and can return a summary
  • The same task type recurs across sessions and benefits from a persistent configuration

Don't build one when:

  • The task fits in the current context window without quality loss
  • The task needs frequent back-and-forth or iterative refinement with the user
  • Multiple phases share significant context — sub-agents start fresh each time
  • A skill would work — skills run in the main conversation context and are simpler

Check registry/index.md first. If something covers 80%+ of this task, extend that instead.

Critical constraint: Sub-agents cannot spawn other sub-agents. If a workflow requires nested delegation, chain sub-agents from the main conversation or use skills.


Frontmatter Fields — Complete Reference

Sub-agent files use YAML frontmatter for configuration. The markdown body after the frontmatter becomes the system prompt. Only name and description are required.

---
name: my-agent           # Required. Lowercase, hyphens only.
description: ...         # Required. When Claude should delegate here.
tools: Read, Glob, Bash  # Optional. Allowlist — only these tools. Omit to inherit all.
disallowedTools: Write   # Optional. Denylist — removes from inherited set.
model: haiku             # Optional. haiku | sonnet | opus | inherit (default)
permissionMode: auto     # Optional. default | acceptEdits | auto | dontAsk | bypassPermissions | plan
maxTurns: 20             # Optional. Cap on agentic turns before stopping.
memory: project          # Optional. user | project | local — enables persistent memory.
skills:                  # Optional. Preload skill content into context at startup.
  - skill-name
background: true         # Optional. Always run as background task.
mcpServers:              # Optional. MCP servers scoped to this sub-agent only.
  - server-name
isolation: worktree      # Optional. Give sub-agent isolated git worktree copy.
---

System prompt body goes here.

Read the full file on GitHub · 241 lines

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. 3mo ago First seen · 241 lines · 34 tokens per session scan A 22ae676057cb

Subscribe to this mod's changes

design-sub-agent is a skill published in the GitHub repository ne11nn/cantos-plugin (1 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 2,337 once invoked, about $0.0001 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-08-31.

Related

design-sub-agent compared with skills from other repositories

design-sub-agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-sub-agentne11nn/cantos-pluginSkill1yesterdayMITA34Claude Code
stream-chainspencermarx/open-code-reviewSkill39822d agoApache-2.0A18Claude Code
runmoruno21/agents-concertoSkill24mo agononeA77Claude Code
setupmoruno21/agents-concertoSkill24mo agononeA73Claude Code
shapemoruno21/agents-concertoSkill24mo agononeA68Claude Code
foundry-hosted-agent-validationmicrosoft/agent-frameworkSkill146todayMITA82Claude Code, Codex
python-feature-lifecyclemicrosoft/agent-frameworkSkill146todayMITA43Claude Code, Codex