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

creating-agents

Creates Claude Code subagents for task delegation. Guides through agent configuration, tool selection, and system prompts. Use this skill when the user wants to create a new agent, delegate tasks to specialists, or asks about subagents.

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して creating-agents.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → creating-agents フォルダができる
  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-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

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

エージェントの作成

タスク委譲のための Claude Code サブエージェントの作成に関するガイドです。

クイックスタート

  1. エージェントの目的を定義する(どのようなタスクを処理するか?)
  2. 場所を選択する(プロジェクトレベルまたはユーザーレベル)
  3. ツールを選択する(必要な最小限のセット)
  4. システムプロンプトを作成する
  5. .claude/agents/ に保存する

ワークフロー:新しいエージェントの作成

進捗状況:
- [ ] 目的とトリガーを定義する
- [ ] 保存場所を選択する
- [ ] ツールとモデルを選択する
- [ ] システムプロンプトを作成する
- [ ] エージェントファイルを作成する

ステップ 1:目的の定義

ユーザーに質問する:

  • このエージェントはどのような特定のタスクを処理すべきか?
  • いつ呼び出すべきか?(トリガーフレーズ)
  • プロアクティブに実行すべきか、オンデマンドで実行すべきか?

ステップ 2:場所の選択

場所 パス 用途
プロジェクト .claude/agents/ チーム共有、プロジェクト固有
ユーザー ~/.claude/agents/ 個人用、プロジェクト間

プロジェクトエージェントは、ユーザーエージェントよりも優先されます。

ステップ 3:ツールとモデルの選択

ツール - 必要な最小限のものを許可する:

ツール 目的
Read ファイルの読み込み
Write ファイルの作成
Edit ファイルの修正
Glob ファイルの検索
Grep コンテンツの検索
Bash コマンドの実行
Task サブエージェントの生成

モデル - タスクに基づいて選択する:

モデル 最適な用途
opus 複雑な推論、微妙な判断
sonnet 一般的なタスク(デフォルト)
haiku クイックルックアップ、単純な分析
inherit 親のモデルを使用

ステップ 4:システムプロンプトの作成

プロンプトは焦点を絞る:

  • エージェントの役割を明確に述べる
  • スコープと制約を定義する
  • 必要に応じて例を提供する
  • 不必要な詳細は避ける

ステップ 5:エージェントファイルの作成

---
name: {agent-name}
description: {when to use - include trigger words}
tools: Read, Grep, Glob
model: sonnet
---

{System prompt here}

.claude/agents/{name}.md に保存する

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

---
name: agent-name          # 必須:小文字、ハイフン
description: |            # 必須:いつ呼び出すか
  Reviews code for quality issues.
  Use when user asks for code review.
tools: Read, Grep, Glob   # オプション:すべてを継承する場合は省略
model: sonnet             # オプション:opus, sonnet, haiku, inherit
permissionMode: default   # オプション:権限処理
skills: skill1, skill2    # オプション:スキルを自動ロード
---

System prompt defining the agent's behavior.

組み込みエージェント

カスタムエージェントを作成する前に、組み込みのものを知っておく:

エージェント モデル ツール 目的
general-purpose sonnet All 複雑な複数ステップのタスク
plan haiku Read, Glob, Grep, Bash 調査と戦略
explore haiku Read, Glob, Grep 高速なコードベース探索

カスタムエージェントを作成する場合:

  • 異なるツールの制限が必要な場合
  • ドメイン固有のプロンプトが必要な場合
  • プロアクティブな呼び出しが必要な場合

各タイプの使い分け

ニーズ 使用
クイックファイル検索 組み込みの explore
計画前の調査 組み込みの plan
複数ステップのコード変更 組み込みの general-purpose
特定のルールによるコードレビュー カスタムレビューエージェント
セキュリティ分析 カスタムセキュリティエージェント
ドメインの専門知識(DB、APIなど) カスタムスペシャリストエージェント

プロアクティブな呼び出し

Claude にエージェントを自動的に使用させるには、説明に以下を含める:

  • "PROACTIVELY" または "MUST BE USED"
  • 明確なトリガー条件
description: |
  PROACTIVELY reviews all code changes before commit.
  MUST BE USED when user mentions "review" or "check code".

テンプレート

templates/ ディレクトリのテンプレートを使用する:

完全な構成の詳細については、reference.md を参照してください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Creating Agents

Guides creation of Claude Code subagents for task delegation.

Quick Start

  1. Define agent purpose (what task does it handle?)
  2. Choose location (project or user level)
  3. Select tools (minimal set needed)
  4. Write system prompt
  5. Save to .claude/agents/

Workflow: Create New Agent

Progress:
- [ ] Define purpose and triggers
- [ ] Choose storage location
- [ ] Select tools and model
- [ ] Write system prompt
- [ ] Create agent file

Step 1: Define Purpose

Ask user:

  • What specific task should this agent handle?
  • When should it be invoked? (trigger phrases)
  • Should it run proactively or on-demand?

Step 2: Choose Location

Location Path Use For
Project .claude/agents/ Team-shared, project-specific
User ~/.claude/agents/ Personal, cross-project

Project agents take priority over user agents.

Step 3: Select Tools and Model

Tools - Grant minimum needed:

Tool Purpose
Read Read files
Write Create files
Edit Modify files
Glob Find files
Grep Search content
Bash Run commands
Task Spawn subagents

Model - Choose based on task:

Model Best For
opus Complex reasoning, nuanced decisions
sonnet General tasks (default)
haiku Quick lookups, simple analysis
inherit Use parent's model

Step 4: Write System Prompt

Keep prompts focused:

  • State the agent's role clearly
  • Define scope and constraints
  • Provide examples if helpful
  • Avoid unnecessary detail

Step 5: Create Agent File

---
name: {agent-name}
description: {when to use - include trigger words}
tools: Read, Grep, Glob
model: sonnet
---

{System prompt here}

Save to .claude/agents/{name}.md

Agent File Format

---
name: agent-name          # Required: lowercase, hyphens
description: |            # Required: when to invoke
  Reviews code for quality issues.
  Use when user asks for code review.
tools: Read, Grep, Glob   # Optional: omit to inherit all
model: sonnet             # Optional: opus, sonnet, haiku, inherit
permissionMode: default   # Optional: permission handling
skills: skill1, skill2    # Optional: auto-load skills
---

System prompt defining the agent's behavior.

Built-in Agents

Before creating custom agents, know what's built-in:

Agent Model Tools Purpose
general-purpose sonnet All Complex multi-step tasks
plan haiku Read, Glob, Grep, Bash Research and strategy
explore haiku Read, Glob, Grep Fast codebase exploration

When to create custom agents:

  • Need different tool restrictions
  • Want domain-specific prompts
  • Need proactive invocation

When to Use Each Type

Need Use
Quick file search Built-in explore
Research before planning Built-in plan
Multi-step code changes Built-in general-purpose
Code review with specific rules Custom reviewer agent
Security analysis Custom security agent
Domain expertise (DB, API, etc.) Custom specialist agent

Proactive Invocation

To make Claude automatically use your agent, include in description:

  • "PROACTIVELY" or "MUST BE USED"
  • Clear trigger conditions
description: |
  PROACTIVELY reviews all code changes before commit.
  MUST BE USED when user mentions "review" or "check code".

Templates

Use templates from templates/ directory:

See reference.md for complete configuration details.