Help us improve
Share bugs, ideas, or general feedback.
From claude-mods
Generates comprehensive, PhD-level expert agent prompts for Claude Code with code examples, patterns, and best practices. Supports single, batch, and architecture-driven agent creation.
npx claudepluginhub 0xdarkmatter/claude-mods --plugin claude-modsHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-mods:spawnThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
Creates Claude Code agents from scratch or by adapting templates. Guides requirements gathering, template selection, and file generation following Anthropic best practices (v2.1.63+).
Create custom agents for Claude Code including YAML frontmatter, system prompts, tool restrictions, and discovery optimization. Use when creating, building, or designing agents, or when asked about agent creation, subagent configuration, Task tool delegation, or agent best practices.
Generates markdown agent files with YAML frontmatter for Claude Code, configuring system prompts, tools, and isolation for autonomous task delegation in plugins.
Share bugs, ideas, or general feedback.
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 agents