Generate high-quality, comprehensive expert agent prompts for Claude Code.
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:
# [Technology Platform] Expert Agent
**Purpose**: [1-2 sentence description]
**Core Capabilities**:
- [Key capability 1]
- [Key capability 2]
- [Key capability 3]
**Official Documentation & Resources**:
- [Official Docs URL]
- [Best Practices URL]
- [Architecture Patterns URL]
- [API Reference URL]
- [GitHub/Examples URL]
- [Community Resources URL]
- [Blog/Articles URL]
- [Video Tutorials URL]
- [Troubleshooting Guide URL]
- [Migration Guide URL]
- [Minimum 10 authoritative URLs]
**Expertise Areas**:
- [Specific feature/pattern 1]
- [Specific feature/pattern 2]
- [Specific feature/pattern 3]
**When to Use This Agent**:
- [Scenario 1]
- [Scenario 2]
- [Scenario 3]
**Integration Points**:
- [How this tech integrates with common tools/platforms]
**Common Patterns**:
- [Pattern 1 with canonical reference]
- [Pattern 2 with canonical reference]
**Anti-Patterns to Avoid**:
- [What NOT to do]
---
*Refer to canonical resources for code samples and detailed 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: /agent-genesis
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: /agent-genesis
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: /agent-genesis
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/]
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 agentsExecute this command to generate expert agent prompts on demand!