jpskill.com
🛠️ 開発・MCP コミュニティ

spawn

Claude Code向けに、詳細なパターン、コード例、ベストプラクティスを含む500〜1000行の専門家レベルのエージェントプロンプトを生成するSkill。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Claude Code向けに、詳細なパターン、コード例、ベストプラクティスを含む500〜1000行の専門家レベルのエージェントプロンプトを生成するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o spawn.zip https://jpskill.com/download/5939.zip && unzip -o spawn.zip && rm spawn.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5939.zip -OutFile "$d\spawn.zip"; Expand-Archive "$d\spawn.zip" -DestinationPath $d -Force; ri "$d\spawn.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して spawn.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → spawn フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[スキル名] spawn

Spawn - エキスパートエージェントジェネレーター

Claude Code 用に、世界クラスの包括的なエキスパートエージェントプロンプトを生成します。各エージェントは、そのドメインの決定的なリファレンスとなるべきです。博士号レベルの実務家が作成するようなガイドを目指します。

目標品質: エージェントあたり 500~1000 行で、実際のコード例、完全な設定、詳細なパターンを含みます。

ベンチマークエージェント: python-expert.md (1600 行)、claude-architect.md (1242 行)、react-expert.md (440 行)

使用モード

モード 1: 単一エージェント生成

特定のテクノロジー・プラットフォーム向けに、1つのエキスパートエージェントプロンプトを生成します。

プロンプトの対象:

  • テクノロジー・プラットフォーム/フレームワーク名
  • スコープ (プロジェクトレベルまたはグローバル/ユーザーレベル)
  • 焦点領域 (オプション: 特定の機能、パターン、ユースケース)
  • 出力形式 (Markdown ファイルまたはクリップボード対応テキスト)

モード 2: バッチエージェント生成

テクノロジー・プラットフォームのリストから複数のエージェントプロンプトを作成します。

受け入れるもの:

  • テクノロジー・プラットフォームの複数行リスト
  • スコープ (プロジェクトレベルまたはグローバル/ユーザーレベル)
  • 共通の焦点領域 (オプション)
  • 出力形式 (個別の .md ファイルまたは統合されたテキスト)

モード 3: アーキテクチャ分析

技術スタックまたはアーキテクチャ記述を分析し、関連するエージェントを提案します。

プロセス:

  1. アーキテクチャ記述を読み込む (ユーザー入力またはファイルから)
  2. すべてのテクノロジー・プラットフォーム/サービスを特定する
  3. スコープを尋ねる (プロジェクトまたはグローバル)
  4. エージェント作成用のチェックボックスセレクターを提示する
  5. 選択されたエージェントを生成する

エージェントファイル形式

すべてのエージェントは、YAML フロントマターを含む Markdown ファイルとして作成されなければなりません。

  • プロジェクトレベル: .claude/agents/ (現在のプロジェクトのみ)
  • グローバル/ユーザーレベル: ~/.claude/agents/ または C:\Users\[username]\.claude\agents\ (すべてのプロジェクト)

ファイル構造:

---
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 フロントマターフィールド:

  • name (必須): 一意の識別子、ハイフン区切りの小文字 (例: "asus-router-expert")
  • description (必須): このエージェントを使用すべき時を明確かつ具体的に記述します
    • 厳密な文字数制限はありません。簡潔さよりも明確さを優先してください
    • 例、ユースケース、コンテキストを含めることができます
    • 自動呼び出しを促すために "use PROACTIVELY" または "MUST BE USED" を使用してください
    • 長い記述には複数行の YAML 文字列形式で問題ありません
  • tools (オプション): 許可されるツールのコンマ区切りリスト (例: "Read, Grep, Glob, Bash")
    • 省略した場合、エージェントはメインセッションのすべてのツールを継承します
    • ベストプラクティス: エージェントの目的に必要なツールのみを付与してください (セキュリティと集中力を向上させます)
  • model (オプション): モデルを指定します ("sonnet", "opus", "haiku", またはメインセッションモデルを使用する場合は "inherit")
  • color (オプション): UI での視覚的識別子 ("blue", "green", "purple" など)

ファイル作成: エージェントは Write ツールを使用してプログラムで作成できます。

Project-level: .claude/agents/[platform]-expert.md
Global/User-level: ~/.claude/agents/[platform]-expert.md (or C:\Users\[username]\.claude\agents\ on Windows)

スコープの選択:

  • プロジェクトエージェント (.claude/agents/): 現在のプロジェクトに固有で、バージョン管理されチームと共有できます
  • グローバルエージェント (~/.claude/agents/): マシン上のすべてのプロジェクトで利用可能です

作成後、エージェントは Task ツールですぐに利用可能になります。

Claude Code エージェントドキュメント

必読:

ドキュメントからの主要な概念:

  • サブエージェントは、カスタマイズされたシステムプロンプトを持つ個別のコンテキストウィンドウで動作します
  • 各サブエージェントは、集中した機能のためにツールアクセスを制限できます
  • 複数のサブエージェントを並行処理のために同時に実行できます
  • ユーザーレベルエージェント (~/.claude/agents/) は、すべてのプロジェクトで利用可能です
  • プロジェクトレベルエージェント (.claude/agents/) は、プロジェクト固有で共有可能です
  • エージェントを管理するための推奨 UI には /agents コマンドを使用します
  • まず Claude が生成したエージェントから始め、その後、最良の結果を得るためにカスタマイズしてください
  • チームコラボレーションのためにプロジェクトレベルのサブエージェントをバージョン管理してください

生成要件

各エージェントについて、以下の内容を含む包括的なエキスパートプロンプトを作成してください。

エージェントコンテンツ構造 (10部構成テンプレート):

生成されるすべてのエージェントは、この包括的な10部構成の構造に従わなければなりません。

  1. パート 1: コアコンセプト - 基本原則、メンタルモデル、アーキテクチャ概要
  2. パート 2: 必須パターン (5~10パターン) - それぞれに: 使用時期、完全な実装 (20~50行)、バリエーション、よくある間違い
  3. パート 3: 高度なテクニック (3~5テクニック) - 完全な例を含む詳細な解説
  4. パート 4: 設定 - 完全な開発設定、完全な本番設定、環境変数テーブル
  5. パート 5: 統合パターン - 2~3の一般的なテクノロジーとの統合コード
  6. パート 6: テスト戦略 - モックを使用した単体テスト、統合テスト、テスト設定
  7. パート 7: エラー処理
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Spawn - Expert Agent Generator

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)

Usage Modes

Mode 1: Single Agent Generation

Generate one expert agent prompt for a specific technology platform.

Prompt for:

  • Technology platform/framework name
  • Scope (project-level or global/user-level)
  • Focus areas (optional: specific features, patterns, use cases)
  • Output format (markdown file or clipboard-ready text)

Mode 2: Batch Agent Generation

Create multiple agent prompts from a list of technology platforms.

Accept:

  • Multi-line list of technology platforms
  • Scope (project-level or global/user-level)
  • Common focus areas (optional)
  • Output format (individual .md files or consolidated text)

Mode 3: Architecture Analysis

Analyze a tech stack or architecture description and suggest relevant agents.

Process:

  1. Read architecture description (from user input or file)
  2. Identify all technology platforms/services
  3. Ask for scope (project or global)
  4. Present checkbox selector for agent creation
  5. Generate selected agents

Agent File Format

All agents MUST be created as Markdown files with YAML frontmatter:

  • Project-level: .claude/agents/ (current project only)
  • Global/User-level: ~/.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
    • No strict length limit - prioritize clarity over brevity
    • Can include examples, use cases, and context
    • Use "use PROACTIVELY" or "MUST BE USED" to encourage automatic invocation
    • Multi-line YAML string format is fine for lengthy descriptions
  • tools (optional): Comma-separated list of allowed tools (e.g., "Read, Grep, Glob, Bash")
    • If omitted, agent inherits all tools from main session
    • Best practice: Only grant tools necessary for the agent's purpose (improves security and focus)
  • 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:

  • Project Agent (.claude/agents/): Specific to the current project, can be version controlled and shared with team
  • Global Agent (~/.claude/agents/): Available across all projects on your machine

After creation, the agent is immediately available for use with the Task tool.

Claude Code Agent Documentation

Essential Reading:

Key Concepts from Documentation:

  • Subagents operate in separate context windows with customized system prompts
  • Each subagent can have restricted tool access for focused capabilities
  • Multiple subagents can run concurrently for parallel processing
  • User-level agents (~/.claude/agents/) are available across all projects
  • Project-level agents (.claude/agents/) are project-specific and shareable
  • Use /agents command for the recommended UI to manage agents
  • Start with Claude-generated agents, then customize for best results
  • Version control project-level subagents for team collaboration

Generation Requirements

For each agent, create a comprehensive expert prompt with:

Agent Content Structure (10-Part Template):

Every generated agent MUST follow this comprehensive 10-part structure:

  1. Part 1: Core Concepts - Fundamental principles, mental model, architecture overview
  2. Part 2: Essential Patterns (5-10 patterns) - Each with: when to use, full implementation (20-50 lines), variations, common mistakes
  3. Part 3: Advanced Techniques (3-5 techniques) - Deep dives with complete examples
  4. Part 4: Configuration - Complete dev config, complete prod config, environment variables table
  5. Part 5: Integration Patterns - Integration code for 2-3 common technologies
  6. Part 6: Testing Strategies - Unit tests with mocks, integration tests, test configuration
  7. Part 7: Error Handling - Custom exception hierarchy, retry/circuit breaker patterns, structured logging
  8. Part 8: Performance Optimization - Profiling techniques, optimization table, caching strategies
  9. Part 9: Security Considerations - Common vulnerabilities, security hardening checklist
  10. Part 10: Quick Reference - Common operations cheat sheet (20-30 snippets), CLI commands, troubleshooting table

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:

  • YAML frontmatter at top with required fields (name, description)
  • Concise, actionable system prompt (not verbose)
  • Minimum 10 official/authoritative URLs
  • Include real, production-ready code examples (10+ code blocks)
  • Include complete configuration files (dev + prod)
  • Include testing patterns with actual test code
  • Focus on patterns, best practices, architecture
  • Include canonical references for expansion
  • Markdown formatted for direct use
  • Description field can be lengthy with examples if needed for clarity

Output Options

Ask user to choose scope:

  1. Project Agent - Save to .claude/agents/ (project-specific, version controlled)
  2. Global Agent - Save to ~/.claude/agents/ or C:\Users\[username]\.claude\agents\ (all projects)

Ask user to choose format:

  1. Clipboard-ready - Output complete markdown (with YAML frontmatter) in code block
  2. File creation - Use Write tool to save to appropriate agents directory based on scope
  3. Both - Create file using Write tool AND show complete content in chat for review

File Creation Process: When creating files programmatically:

  1. Generate complete agent content with YAML frontmatter
  2. Determine path based on scope selection:
    • Project: .claude/agents/[platform-name]-expert.md
    • Global: ~/.claude/agents/[platform-name]-expert.md (or Windows equivalent)
  3. Use Write tool with appropriate path
  4. Verify file was created successfully
  5. Agent is immediately available for use

Examples

Example 1: Single Agent

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]

Example 2: Batch Generation

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)]

Example 3: Architecture Analysis

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/]

Implementation Steps

  1. Ask All Questions at Once using a single multi-question AskUserQuestion call:

    • Question 1 (header: "Mode"): Single Agent / Batch Generation / Architecture Analysis
    • Question 2 (header: "Scope"): Project Agent (this project only) / Global Agent (all projects)
    • Question 3 (header: "Output"): Create File / Show in Chat / Both

    For Single Mode, also ask in the same call:

    • Question 4 (header: "Platform"): Offer "Custom Platform" option (user types in Other field)
    • Question 5 (header: "Focus", multiSelect: true): General Coverage / [2-3 common focus areas for that tech]
  2. For Single Mode:

    • If user selected "Custom Platform", prompt for the platform name in chat
    • Generate comprehensive prompt based on answers
    • Create file and/or display based on output preference
  3. For Batch Mode:

    • Ask user to provide multi-line platform list in chat
    • For each platform:
      • Generate expert prompt
      • Save to .claude/agents/[platform]-expert.md
    • Report completion with file paths
  4. For Architecture Analysis:

    • Ask user for architecture description in chat
    • Parse and identify technologies
    • Present checkbox selector using AskUserQuestion (multiSelect: true)
    • Generate selected agents
    • Save to files based on output preference
  5. Generate Each Agent Prompt:

    • Research official docs (WebSearch or WebFetch)
    • Find 10+ authoritative URLs
    • Structure according to template above
    • Focus on patterns and best practices
    • Target 500-1000 lines with comprehensive patterns
    • Markdown formatted
  6. Output:

    • Determine file path based on Scope selection:
      • Project Agent: .claude/agents/[platform]-expert.md
      • Global Agent: ~/.claude/agents/[platform]-expert.md (Unix/Mac) or C:\Users\[username]\.claude\agents\[platform]-expert.md (Windows)
    • If "Create File" or "Both": Use Write tool with appropriate path and complete YAML frontmatter + system prompt
    • If "Show in Chat" or "Both": Display complete markdown (including frontmatter) in code block
    • Confirm creation with full file path
    • Remind user agent is immediately available via Task tool

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.

Quality Checklist

Before outputting each agent prompt, verify:

  • YAML frontmatter present with required fields (name, description)
  • Name uses lowercase-with-hyphens format
  • Description is clear and specific (length is flexible)
  • Tools field specified if restricting access (best practice: limit to necessary tools)
  • 10+ authoritative URLs included in system prompt
  • 10+ production-ready code examples included
  • Complete dev and prod configuration files
  • Testing patterns with actual test code
  • Error handling patterns and exception hierarchy
  • 5+ anti-patterns with bad/good code comparison
  • Concise and scannable system prompt
  • Clear use cases defined
  • Integration points identified
  • Common patterns referenced
  • Anti-patterns listed
  • Proper markdown formatting throughout
  • Filename matches name field: [name].md
  • Follows Claude Code subagent best practices (see documentation links above)

Post-Generation

After creating agents, remind user:

  1. Review generated prompts
  2. Test agent with sample questions
  3. Refine based on actual usage
  4. Add to version control if satisfied
  5. Consult Claude Code documentation links above for advanced features and best practices

Additional Resources: