プロジェクトの `.claude/agents/` に新しいサブエージェントを作成します。
Create a new specialized subagent in your project's `.claude/agents/` directory. Use this when you need an AI assistant with focused expertise for specific tasks like code review, security analysis, or performance testing.
/plugin marketplace add shiiman/claude-code-plugins/plugin install shiiman-shiiman-claude-plugins-shiiman-claude@shiiman/claude-code-pluginsプロジェクトの .claude/agents/ に新しいサブエージェントを作成します。
/shiiman-claude:create-subagent
/shiiman-claude:create-subagent --help
| オプション | 説明 |
|---|---|
--help | このコマンドのヘルプを表示 |
# 基本的な使用
/shiiman-claude:create-subagent
→ サブエージェント名: code-reviewer
→ 説明: Clean Code 原則に基づいてコードレビューを実施
→ 何をする?: コーディング規約、潜在的バグ、セキュリティリスクをチェック
# 結果: .claude/agents/code-reviewer.md が作成される
--help が指定された場合: このファイルの内容を要約して表示し、終了。
ユーザーに以下を聞く:
サブエージェント名(小文字、ハイフン可)
code-reviewer, test-writer, security-auditor説明(1-2 文)
このサブエージェントで何をする?(詳細な指示)
.claude/agents/ ディレクトリが存在するか確認(なければ作成)| パターン | 例 | 説明 |
|---|---|---|
| 役割ベース | reviewer, analyzer | 役割を表す |
| 専門分野付 | code-reviewer, performance-analyzer | 役割 + 専門分野 |
| ドメイン固 | frontend-specialist, backend-developer | 特定の領域の専門家 |
code-reviewer, architecture-reviewerperformance-analyzer, security-analyzerfrontend-specialist, backend-specialistarchitect, qa-engineer, devops-engineer.claude/agents/{subagent-name}.md を作成:
# {サブエージェント名}
{説明}
## 実行内容
このサブエージェントが実行する具体的なタスク:
- タスク 1
- タスク 2
- タスク 3
## 使用タイミング
どのような場面で使用するべきか:
- ケース 1
- ケース 2
## 専門知識
このサブエージェントが持つ専門知識:
- 知識 1(例: Clean Code 原則)
- 知識 2(例: OWASP Top 10)
## 出力形式
### 問題点
| 重要度 | ファイル | 行 | 問題 |
|--------|----------|-----|------|
| 高 | foo.ts | 42 | ... |
### 改善提案
1. **foo.ts:42** - 改善内容
作成されたファイルと次のステップを表示:
サブエージェントを作成しました: {subagent-name}
ファイル:
- .claude/agents/{subagent-name}.md
次のステップ:
- /shiiman-claude:create-subagent で別のサブエージェントを追加
- /shiiman-claude:create-skill でスキルを追加
- /shiiman-claude:create-command でコマンドを追加
- /shiiman-claude:create-hook でフックを追加
/create-subagentCreate specialized Claude Code subagents with expert guidance