skills/spawn/SKILL.md
Generate PhD-level expert-agent prompt files (.md) for Claude Code - authoring, not runtime. For spawning parallel RUNTIME workers use fleet-worker/fleetflow (via parallel-ops). Triggers: spawn agent, create agent file, generate expert prompt, new agent persona.
npx skillsauth add 0xDarkMatter/claude-mods spawnInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate world-class, comprehensive expert agent prompts for Claude Code. Each agent should be a definitive reference for its domain - the kind of guide a PhD-level practitioner would create.
Target quality: 500-1000 lines per agent with real code examples, complete configs, and detailed patterns.
Benchmark agents: firecrawl-expert.md (1026 lines), project-organizer.md (610 lines)
Generate one expert agent prompt for a specific technology platform.
Prompt for:
Create multiple agent prompts from a list of technology platforms.
Accept:
Analyze a tech stack or architecture description and suggest relevant agents.
Process:
All agents MUST be created as Markdown files with YAML frontmatter:
.claude/agents/ (current project only)~/.claude/agents/ or C:\Users\[username]\.claude\agents\ (all projects)File Structure:
---
name: technology-name-expert
description: When this agent should be used. Can include examples and use cases. No strict length limit - be clear and specific. Include "use PROACTIVELY" for automatic invocation.
model: inherit
color: blue
---
[Agent system prompt content here]
YAML Frontmatter Fields:
name (required): Unique identifier, lowercase-with-hyphens (e.g., "redis-expert")description (required): Clear, specific description of when to use this agent
tools (optional): Comma-separated list of allowed tools (e.g., "Read, Grep, Glob, Bash")
model (optional): Specify model ("sonnet", "opus", "haiku", or "inherit" to use main session model)color (optional): Visual identifier in UI ("blue", "green", "purple", etc.)File Creation: Agents can be created programmatically using the Write tool:
Project-level: .claude/agents/[platform]-expert.md
Global/User-level: ~/.claude/agents/[platform]-expert.md (or C:\Users\[username]\.claude\agents\ on Windows)
Choosing Scope:
.claude/agents/): Specific to the current project, can be version controlled and shared with team~/.claude/agents/): Available across all projects on your machineAfter creation, the agent is immediately available for use with the Task tool.
Essential Reading:
Key Concepts from Documentation:
~/.claude/agents/) are available across all projects.claude/agents/) are project-specific and shareable/agents command for the recommended UI to manage agentsFor each agent, create a comprehensive expert prompt with:
Agent Content Structure (10-Part Template):
Every generated agent MUST follow this comprehensive 10-part structure:
Plus: Quality Checklist, Anti-Patterns (5-10 with bad/good code), Canonical Resources (10-15 URLs)
See firecrawl-expert.md and project-organizer.md in agents/ for reference implementations.
Requirements:
Ask user to choose scope:
.claude/agents/ (project-specific, version controlled)~/.claude/agents/ or C:\Users\[username]\.claude\agents\ (all projects)Ask user to choose format:
File Creation Process: When creating files programmatically:
.claude/agents/[platform-name]-expert.md~/.claude/agents/[platform-name]-expert.md (or Windows equivalent)User: /spawn
Agent: [Shows multi-tab AskUserQuestion with 5 tabs]
Tab 1 (Mode): Single Agent / Batch Generation / Architecture Analysis
Tab 2 (Scope): Project Agent / Global Agent
Tab 3 (Output): Create File / Show in Chat / Both
Tab 4 (Platform): Custom Platform / [or popular options]
Tab 5 (Focus): [Multi-select] General Coverage / Caching Patterns / Pub/Sub / etc.
User: [Selects all answers and submits once]
Mode: Single Agent
Scope: Global Agent
Output: Both
Platform: Redis (via Other field)
Focus: General Coverage, Caching Patterns, Pub/Sub
Agent: [Generates Redis expert prompt and saves to ~/.claude/agents/redis-expert.md]
User: /spawn
Agent: [Shows multi-tab AskUserQuestion with 3 tabs]
Tab 1 (Mode): Single Agent / Batch Generation / Architecture Analysis
Tab 2 (Scope): Project Agent / Global Agent
Tab 3 (Output): Create Files / Show in Chat / Both
User: [Submits]
Mode: Batch Generation
Scope: Project Agent
Output: Create Files
Agent: Please provide platforms (one per line):
User: PostgreSQL
Redis
RabbitMQ
Agent: [Creates 3 .md files in .claude/agents/ (project directory)]
User: /spawn
Agent: [Shows multi-tab AskUserQuestion with 3 tabs]
Tab 1 (Mode): Single Agent / Batch Generation / Architecture Analysis
Tab 2 (Scope): Project Agent / Global Agent
Tab 3 (Output): Create Files / Show in Chat / Both
User: [Submits]
Mode: Architecture Analysis
Scope: Global Agent
Output: Both
Agent: Describe your architecture or provide file path:
User: E-commerce platform: Next.js frontend, Node.js API, PostgreSQL, Redis cache, Stripe payments, AWS S3 storage, SendGrid emails
Agent: Found platforms: Next.js, Node.js, PostgreSQL, Redis, Stripe, AWS S3, SendGrid
[Shows multi-select AskUserQuestion]
User: [Selects: nextjs-expert, redis-expert, stripe-expert, sendgrid-expert]
Agent: [Generates 4 selected agents in ~/.claude/agents/]
Ask All Questions at Once using a single multi-question AskUserQuestion call:
For Single Mode, also ask in the same call:
For Single Mode:
For Batch Mode:
.claude/agents/[platform]-expert.mdFor Architecture Analysis:
Generate Each Agent Prompt:
Output:
.claude/agents/[platform]-expert.md~/.claude/agents/[platform]-expert.md (Unix/Mac) or C:\Users\[username]\.claude\agents\[platform]-expert.md (Windows)Important: Always use a single AskUserQuestion call with multiple questions (2-4) to create the multi-tab interface. Never ask questions sequentially one at a time.
Before outputting each agent prompt, verify:
[name].mdAfter creating agents, remind user:
Additional Resources:
/agents command to view and manage all available agentstesting
Audit any repo against the agentic-quality doctrine — score entry docs, structure, and enforcement gates, then map each finding to its fix. Triggers on: repo doctor, repo audit, agentic quality, is this repo agent-friendly, doc drift, stale AGENTS.md, monorepo structure, nested CLAUDE.md.
data-ai
Router for parallel or recurring agent work across six skills. Covers: parallel agents, fan out work, delegate to workers, run overnight, scheduled loop, land branches, mixed-model fleet, orchestrate workers, background agents at scale. Triggers on: which skill for parallel work, fan out agents, spawn workers, run this overnight, schedule a loop, land my branches, heterogeneous fleet, delegate to cheaper model, autonomous loop.
tools
Heterogeneous cross-provider fleet - GLM (z.ai), Codex (OpenAI), Grok (xAI), Anthropic Sonnet/Opus/Haiku - from one session, porting the native Workflow tool's patterns (adversarial verify, judge panels, journal resume) to OS-process workers. Triggers: fleetflow, heterogeneous/mixed-model fleet, codex worker, grok worker, cross-provider fan-out, cross-model verify.
development
Application/game-scale three.js: ES modules, GLTF pipeline (DRACO/KTX2/meshopt), AnimationMixer, physics (rapier/cannon-es), react-three-fiber, and performance at scale (InstancedMesh, LOD, draw calls). Triggers on: three.js, GLTFLoader, r3f, game loop, WebGL memory leak, boids.