create-subagents

create-subagents is a skill for Claude Code from marcusgoll/Spec-Flow. It costs 49 tokens per session (2,284 once invoked), scanned A, a copy of create-subagents, MIT.

Guidance for creating specialized helper agents that handle parts of a coding task independently. These agents can be configured for a project or for all projects and can focus on areas such as code quality, security, or performance.

In plain words
What is it for?
Use it to create agent configurations, choose their available tools or model, and define how they should report findings with actionable file and line references.
Why use it?
It helps divide complex work into focused assignments and gives each helper clear instructions and output expectations. This can make specialized reviews easier to organize.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Good fit Use it to create agent configurations, choose their available tools or model, and define how they should report findings with actionable file and line references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marcusgoll/spec-flow/create-subagents
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 marcusgoll/Spec-Flow --skill create-subagents
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code.

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 create-subagents

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcusgoll/spec-flow/create-subagents/github.svg)](https://agentmods.dev/skills/marcusgoll/spec-flow/create-subagents)
Your own site
<a href="https://agentmods.dev/skills/marcusgoll/spec-flow/create-subagents"><img src="https://agentmods.dev/badge/skills/marcusgoll/spec-flow/create-subagents/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 create-subagents

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcusgoll/spec-flow/create-subagents"><img src="https://agentmods.dev/badge/skills/marcusgoll/spec-flow/create-subagents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,284 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 100% copy Near-identical to another mod 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.00049 $0.02284
Opus 5.5 $0.00020 $0.00914
Sonnet 5.5 $0.00010 $0.00457
Haiku 4.5 $0.00005 $0.00228

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

Security

Grade A, and why

create-subagents 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.

Origin

This is a copy

100% identical to create-subagents — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/create-subagents/SKILL.md · 308 lines

How it starts

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

Subagents enable delegation of complex tasks to specialized agents that operate autonomously without user interaction, returning their final output to the main conversation.

<quick_start>

  1. Run /agents command
  2. Select "Create New Agent"
  3. Choose project-level (.claude/agents/) or user-level (~/.claude/agents/)
  4. Define the subagent:
    • name: lowercase-with-hyphens
    • description: When should this subagent be used?
    • tools: Optional comma-separated list (inherits all if omitted)
    • model: Optional (sonnet, opus, haiku, or inherit)
  5. Write the system prompt (the subagent's instructions)

<focus_areas>

  • Code quality and maintainability
  • Security vulnerabilities
  • Performance issues
  • Best practices adherence </focus_areas>

<output_format> Provide specific, actionable feedback with file:line references. </output_format>

</example>
</quick_start>

<file_structure>
| Type | Location | Scope | Priority |
|------|----------|-------|----------|
| **Project** | `.claude/agents/` | Current project only | Highest |
| **User** | `~/.claude/agents/` | All projects | Lower |
| **Plugin** | Plugin's `agents/` dir | All projects | Lowest |

Project-level subagents override user-level when names conflict.
</file_structure>

<configuration>
<field name="name">
- Lowercase letters and hyphens only
- Must be unique
</field>

<field name="description">
- Natural language description of purpose
- Include when Claude should invoke this subagent
- Used for automatic subagent selection
</field>

<field name="tools">
- Comma-separated list: `Read, Write, Edit, Bash, Grep`
- If omitted: inherits all tools from main thread
- Use `/agents` interface to see all available tools
</field>

<field name="model">
- `sonnet`, `opus`, `haiku`, or `inherit`
- `inherit`: uses same model as main conversation
- If omitted: defaults to configured subagent model (usually sonnet)
</field>
</configuration>

<execution_model>
<critical_constraint>
**Subagents are black boxes that cannot interact with users.**

Subagents run in isolated contexts and return their final output to the main conversation. They:
- ✅ Can use tools like Read, Write, Edit, Bash, Grep, Glob
- ✅ Can access MCP servers and other non-interactive tools
- ❌ **Cannot use AskUserQuestion** or any tool requiring user interaction
- ❌ **Cannot present options or wait for user input**
- ❌ **User never sees subagent's intermediate steps**

The main conversation sees only the subagent's final report/output.
</critical_constraint>

<workflow_design>
**Designing workflows with subagents:**

Use **main chat** for:
- Gathering requirements from user (AskUserQuestion)
- Presenting options or decisions to user
- Any task requiring user confirmation/input
- Work where user needs visibility into progress

Use **subagents** for:
- Research tasks (API documentation lookup, code analysis)
- Code generation based on pre-defined requirements
- Analysis and reporting (security review, test coverage)
- Context-heavy operations that don't need user interaction

**Example workflow pattern:**

Main Chat: Ask user for requirements (AskUserQuestion) ↓ Subagent: Research API and create documentation (no user interaction) ↓ Main Chat: Review research with user, confirm approach ↓ Subagent: Generate code based on confirmed plan ↓ Main Chat: Present results, handle testing/deployment

</workflow_design>
</execution_model>

Read the full file on GitHub · 308 lines

Files

What ships with it

7 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. 3mo ago First seen · 308 lines · 49 tokens per session scan A 2f11e2dc66e7

Subscribe to this mod's changes

create-subagents is a skill published in the GitHub repository marcusgoll/Spec-Flow (97 stars, last pushed 2mo ago), licensed MIT. It adds 49 tokens to every session and 2,284 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to create-subagents, differing in 0 lines, and is treated as a copy.

Related

create-subagents compared with skills from other repositories

create-subagents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-subagentsmarcusgoll/Spec-FlowSkill972mo agoMITA49Claude Code
llm-evaluationsickn33/agentic-awesome-skillsSkill51kyesterdayMITA25Claude Code
agent-harness-fault-injectionsickn33/agentic-awesome-skillsSkill51kyesterdayMITA34Claude Code
apify-youtube-transcript-scrapersickn33/agentic-awesome-skillsSkill51kyesterdayMITA48Claude Code
ariasickn33/agentic-awesome-skillsSkill51kyesterdayMITA18Claude Code
apify-competitor-intelligencesickn33/agentic-awesome-skillsSkill51kyesterdayMITA39Claude Code
mcp-tool-developersickn33/agentic-awesome-skillsSkill51kyesterdayMITA38Claude Code