Generate PhD-level expert agent prompts for Claude Code. Creates comprehensive 500-1000 line agents with detailed patterns, code examples, and best practices. Triggers on: spawn agent, create agent, generate expert, new agent, agent genesis.
90
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
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: python-expert.md (1600 lines), claude-architect.md (1242 lines), react-expert.md (440 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., "asus-router-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 python-expert.md and react-expert.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, postgres-expert, redis-expert, stripe-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 agents5c15b3d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.