mcpField
P
parallel-agents

parallel-agents

github.com/davila7エージェントワークフロー33.0k450 回インストール今日更新
リポジトリ

parallel-agents について

Native Parallel Agentsは、Claude Code内蔵のAgent Toolを通じて専門エージェントを連携させるスキルです。段階的な分析、コンテキストの引き継ぎ、結果の統合に対応し、複数領域にまたがる作業に使えます。

主な機能

  1. 01Claude Codeで専門エージェントを連携
  2. 02順次実行とコンテキストの受け渡し
  3. 03以前のエージェント作業の再開
  4. 04調査結果を単一レポートに統合
  5. 05組み込みおよびカスタム役割の利用

活用シーン

  1. 01セキュリティと品質の観点からコードをレビュー
  2. 02領域別分析の前にコードベースを把握
  3. 03バックエンドとフロントエンドの機能開発を調整
  4. 04監査結果をまとめて修正の優先度を整理

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/davila7/claude-code-templates --skill parallel-agents

インストール後、Claude Code で/parallel-agentsを入力して読み込まれたか確認します。

詳細

ネイティブ並列エージェント

Claude Code に組み込まれた Agent Tool によるオーケストレーション

概要

このスキルは、Claude Code のネイティブエージェントシステムを通じて、複数の専門エージェントを連携させることを可能にします。外部スクリプトとは異なり、この方式ではすべてのオーケストレーションが Claude の管理下に置かれます。

オーケストレーションを使うべき場面

✅ 適しているケース:

  • 複数の専門分野を必要とする複雑なタスク
  • セキュリティ、パフォーマンス、品質の観点からのコード分析
  • 包括的なレビュー(アーキテクチャ + セキュリティ + テスト)
  • バックエンド + フロントエンド + データベース作業を必要とする機能実装

❌ 適していないケース:

  • 単一分野の単純なタスク
  • 簡単な修正や小さな変更
  • 1 つのエージェントで足りるタスク

ネイティブエージェントの呼び出し

単一エージェント
Use the security-auditor agent to review authentication
逐次チェーン
First, use the explorer-agent to discover project structure.
Then, use the backend-specialist to review API endpoints.
Finally, use the test-engineer to identify test gaps.
コンテキストの受け渡し
Use the frontend-specialist to analyze React components.
Based on those findings, have the test-engineer generate component tests.
前回の作業の再開
Resume agent [agentId] and continue with additional requirements.

オーケストレーションパターン

パターン 1: 包括的分析
Agents: explorer-agent → [domain-agents] → synthesis

1. explorer-agent: Map codebase structure
2. security-auditor: Security posture
3. backend-specialist: API quality
4. frontend-specialist: UI/UX patterns
5. test-engineer: Test coverage
6. Synthesize all findings
パターン 2: 機能レビュー
Agents: affected-domain-agents → test-engineer

1. Identify affected domains (backend? frontend? both?)
2. Invoke relevant domain agents
3. test-engineer verifies changes
4. Synthesize recommendations
パターン 3: セキュリティ監査
Agents: security-auditor → penetration-tester → synthesis

1. security-auditor: Configuration and code review
2. penetration-tester: Active vulnerability testing
3. Synthesize with prioritized remediation

利用可能なエージェント

エージェント専門分野トリガーフレーズ
orchestratorコーディネーション"comprehensive", "multi-perspective"
security-auditorセキュリティ"security", "auth", "vulnerabilities"
penetration-testerセキュリティテスト"pentest", "red team", "exploit"
backend-specialistバックエンド"API", "server", "Node.js", "Express"
frontend-specialistフロントエンド"React", "UI", "components", "Next.js"
test-engineerテスト"tests", "coverage", "TDD"
devops-engineerDevOps"deploy", "CI/CD", "infrastructure"
database-architectデータベース"schema", "Prisma", "migrations"
mobile-developerモバイル"React Native", "Flutter", "mobile"
api-designerAPI 設計"REST", "GraphQL", "OpenAPI"
debuggerデバッグ"bug", "error", "not working"
explorer-agent探索"explore", "map", "structure"
documentation-writerドキュメント"write docs", "create README", "generate API docs"
performance-optimizerパフォーマンス"slow", "optimize", "profiling"
project-planner計画"plan", "roadmap", "milestones"
seo-specialistSEO"SEO", "meta tags", "search ranking"
game-developerゲーム開発"game", "Unity", "Godot", "Phaser"

Claude Code の組み込みエージェント

これらはカスタムエージェントと並行して動作します:

エージェントモデル用途
ExploreHaiku高速な読み取り専用のコードベース検索
PlanSonnetプランモード中の調査
General-purposeSonnet複雑な複数ステップの変更

簡単な検索には Explore を、分野固有の専門知識が必要な場合には カスタムエージェント を使用してください。


統合プロトコル

すべてのエージェントが完了したら、結果を統合します:

## Orchestration Synthesis

### Task Summary
[What was accomplished]

### Agent Contributions
| Agent | Finding |
|-------|---------|
| security-auditor | Found X |
| backend-specialist | Identified Y |

### Consolidated Recommendations
1. **Critical**: [Issue from Agent A]
2. **Important**: [Issue from Agent B]
3. **Nice-to-have**: [Enhancement from Agent C]

### Action Items
- [ ] Fix critical security issue
- [ ] Refactor API endpoint
- [ ] Add missing tests

ベストプラクティス

  1. 利用可能なエージェント - 17 種類の専門エージェントをオーケストレーションできます
  2. 論理的な順序 - 探索 → 分析 → 実装 → テスト
  3. コンテキストを共有 - 関連する調査結果を後続のエージェントに渡します
  4. 単一の統合結果 - 個別の出力ではなく、1 つにまとめた統一レポートにします
  5. 変更の検証 - コードを変更する場合は必ず test-engineer を含めてください

主なメリット

  • ✅ 単一セッション - すべてのエージェントがコンテキストを共有します
  • ✅ AI による制御 - Claude が自律的にオーケストレーションします
  • ✅ ネイティブ統合 - 組み込みの Explore、Plan エージェントと連携します
  • ✅ 再開のサポート - 以前のエージェントの作業を続行できます
  • ✅ コンテキストの受け渡し - エージェント間で調査結果が引き継がれます

コメント