LegendaryTeam_For_Claude: Command for Claude Code

.claude/commands/spawn-subagent.md

spawn-subagent is a command for Claude Code from RegardV/LegendaryTeam_For_Claude. It costs 0 tokens per session (1,780 once invoked), scanned A, original, MIT.

A command that starts a specialized helper agent for a named task, such as coding, database work, security review, or testing.

In plain words
What is it for?
Use it to delegate implementation, API or database work, interface work, reviews, tests, documentation, refactoring, planning, or verification.
Why use it?
It lets you assign focused work without manually setting up each helper or deciding its role from scratch.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is RegardV/LegendaryTeam_For_Claude's own configuration. It tells Claude Code how to work on LegendaryTeam_For_Claude itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything LegendaryTeam_For_Claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RegardV/LegendaryTeam_For_Claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/RegardV/LegendaryTeam_For_Claude/main/.claude/commands/spawn-subagent.md
Clone the repo
git clone --depth 1 https://github.com/RegardV/LegendaryTeam_For_Claude

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 spawn-subagent

README.md
[![agentmods](https://agentmods.dev/badge/commands/regardv/legendaryteam_for_claude/spawn-subagent.svg)](https://agentmods.dev/commands/regardv/legendaryteam_for_claude/spawn-subagent)
Your own site
<a href="https://agentmods.dev/commands/regardv/legendaryteam_for_claude/spawn-subagent"><img src="https://agentmods.dev/badge/commands/regardv/legendaryteam_for_claude/spawn-subagent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,780 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.00000 $0.01780
Opus 5 $0.00000 $0.00890
Sonnet 5 $0.00000 $0.00356
Haiku 4.5 $0.00000 $0.00178

Measured 7d ago against content hash 9fea744ec636, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

spawn-subagent 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 7d 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.

.claude/commands/spawn-subagent.md · 276 lines

How it starts

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

/spawn-subagent - Dynamic Agent Spawning

Purpose

Spawns a specialized subagent dynamically for a specific task, enabling flexible team composition based on runtime requirements.

Usage

/spawn-subagent [role] [task]
/spawn-subagent coder "Implement user profile API"
/spawn-subagent security "Review authentication flow"
/spawn-subagent database "Optimize slow queries"

Available Roles

Role Agent Specialization
coder @CodeAgent General implementation
database @DatabaseAgent Schema, migrations, queries
api @APIAgent REST/GraphQL endpoints
ui @UIAgent Frontend components
security @SecurityAgent Security review, auth
test @TestAgent Unit/integration tests
e2e @E2ERunner End-to-end tests
perf @PerformanceOptimizer Performance optimization
doc @DocAgent Documentation
refactor @RefactorAgent Code refactoring
architect @ArchitectureAgent Architecture decisions
planner @Planner Task decomposition
verifier @Verifier Quality assurance
reflect @ReflectionAgent Self-critique

Options

Option Description
--confidence N Override confidence (0-100)
--iterate Enable iteration mode
--max-iterations N Max iterations (default: 3)
--priority high/med/low Task priority
--depends-on ID Declare dependency
--blocking Wait for completion
--background Run in background

Workflow

1. Agent Spawning

/spawn-subagent security "Review new payment endpoint"

Spawning @SecurityAgent...

Configuration:
├─ Task: Review new payment endpoint
├─ Confidence: Auto-detected (analyzing...)
├─ Priority: High (security-related)
├─ Mode: Standard (no iteration)
└─ Timeout: 30 minutes

Agent spawned successfully.
Team ID: team-sec-001

2. Confidence Analysis

Before execution, confidence is assessed:

@ConfidenceAgent analyzing task...

Analysis:
├─ Task type: Security review
├─ Codebase familiarity: High (similar patterns exist)
├─ Complexity: Medium
├─ Risk level: High (payment-related)
└─ Precedent: 3 similar reviews completed

Confidence Score: 65%
Routing: QUEUE FOR REVIEW (security-critical)

Human approval required. Added to review queue.
Run /approve-task team-sec-001 to proceed.

Read the full file on GitHub · 276 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. 7d ago First seen · 276 lines · 0 tokens per session scan A 9fea744ec636

Subscribe to this mod's changes

spawn-subagent is a command published in the GitHub repository RegardV/LegendaryTeam_For_Claude (19 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,780 tokens. 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-30.