agent-generation
This skill provides knowledge for generating effective Claude Code agents tailored to specific projects. It is used internally by the agent-team-creator plugin when analyzing codebases and creating specialized agent teams. Contains templates, best practices, and patterns for writing project-aware agents.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agent-generation.zip https://jpskill.com/download/18099.zip && unzip -o agent-generation.zip && rm agent-generation.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18099.zip -OutFile "$d\agent-generation.zip"; Expand-Archive "$d\agent-generation.zip" -DestinationPath $d -Force; ri "$d\agent-generation.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
agent-generation.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
agent-generationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
プロジェクト固有のチームのためのエージェント生成
このスキルは、特定のコードベースの専門家である高品質な Claude Code エージェントを生成するために必要な知識とテンプレートを提供します。
コア原則
1. プロジェクトを認識するエージェント
生成されたエージェントは、一般的な概念だけでなく、特定のプロジェクトを理解する必要があります。
- プロジェクトの実際のファイルパスとディレクトリを参照する
- 使用されている特定のフレームワーク、ライブラリ、およびバージョンについて言及する
- プロジェクト固有の規約とパターンを含める
- コードベースからの用語(クラス名、モジュール名など)を使用する
2. 補完的なチーム設計
各エージェントは、重複することなく、明確な役割を持つ必要があります。
| エージェントの種類 | 注力分野 | 回避する分野 |
|---|---|---|
| Tech-Stack Expert | フレームワーク、ライブラリ、ツール | ビジネスロジック |
| Architecture Expert | 構造、パターン、規約 | 実装の詳細 |
| Domain Expert | ビジネスロジック、データモデル、API | インフラストラクチャ |
| Testing Specialist | テストパターン、フィクスチャ、カバレッジ | 本番コード |
| DevOps Expert | CI/CD、デプロイメント、インフラストラクチャ | アプリケーションコード |
3. 強力なトリガー条件
各エージェントには、特定で重複しないトリガーフレーズが必要です。
whenToUse: |
このエージェントは、ユーザーが「React component patterns」、「hook usage in this project」、「state management with Redux」について質問した場合、またはフロントエンドアーキテクチャの仕組みを理解する必要がある場合に使用する必要があります。
エージェント構造テンプレート
生成されたすべてのエージェントは、次の構造に従います。
---
identifier: project-role-expert
whenToUse: |
このエージェントは、...の場合に使用する必要があります。[プロジェクトコンテキストを持つ特定のトリガー]
systemPrompt: |
[プロジェクトの知識を含む包括的なシステムプロンプト]
tools: [Glob, Grep, Read, Edit, Write, Bash, LS, Task, WebFetch, WebSearch]
color: "#hexcode"
model: sonnet
---
分析からエージェントへのマッピング
Tech Stack 分析
次のファイルを分析して、技術スタックを特定します。
package.json、requirements.txt、Cargo.toml、go.mod- フレームワーク構成ファイル:
next.config.js、vite.config.ts、django/settings.py - ビルド構成:
tsconfig.json、webpack.config.js、babel.config.js
主要なテクノロジーごとにエージェントを生成します。
- 主要なフレームワークごとに1つのエージェント(React、FastAPI、Djangoなど)
- 関連するライブラリの組み合わせエージェント(テストライブラリをまとめる)
Architecture 分析
次のパターンを分析します。
- ディレクトリ構造の深さと編成
- モジュール/パッケージの境界
- インポートパターンと依存関係
- 使用中のデザインパターン(MVC、Clean Architectureなど)
以下をカバーするアーキテクチャエージェントを生成します。
- プロジェクト構造とナビゲーション
- コード編成の規約
- モジュール間の関係
- 命名規則
Domain 分析
次の要素を分析します。
- データモデルとスキーマ
- APIエンドポイントとルート
- ビジネスロジックモジュール
- データベースの移行とクエリ
次のドメインエージェントを生成します。
- データモデルの理解
- API構造と契約
- ビジネスルールの実装
エージェントの種類ごとのカラーパレット
エージェントの種類ごとに一貫した色を使用します。
| エージェントの種類 | 色 | Hex |
|---|---|---|
| Tech-Stack | 青 | #3B82F6 |
| Architecture | 紫 | #8B5CF6 |
| Domain/Business | 緑 | #10B981 |
| Testing | オレンジ | #F59E0B |
| DevOps/Infra | 赤 | #EF4444 |
| Security | ピンク | #EC4899 |
| Performance | シアン | #06B6D4 |
効果的なシステムプロンプトの作成
構造
-
役割の定義 (1〜2文)
あなたは[ドメイン]を専門とする、[プロジェクト名]コードベースの専門家です。 -
プロジェクトのコンテキスト (3〜5文)
このプロジェクトでは[技術スタック]を使用しています。コードベースは[構造]で編成されています。 主要なディレクトリには[パス]が含まれます。プロジェクトは[パターン/規約]に従います。 -
専門分野 (箇条書き)
あなたの専門知識は次のとおりです。 - プロジェクトコンテキストを持つ特定の領域1 - ファイル参照を持つ特定の領域2 - 規約の詳細を持つ特定の領域3 -
ガイダンス原則 (3〜5箇条書き)
支援する場合: - 常に[パス]の既存のパターンを参照してください - [ファイル]で確立された[規約]に従ってください - [標準]との一貫性を確保してください
プロジェクト固有の知識を含める
常に実際のプロジェクトの詳細を埋め込みます。
systemPrompt: |
あなたは**Acme Dashboard** Reactアプリケーションの専門家です。
## プロジェクトの概要
これは、App Routerを使用するNext.js 14アプリケーションです。コードベースは以下を使用しています。
- 厳密モードのTypeScript
- スタイリング用のTailwind CSS
- サーバーステート用のReact Query
- クライアントステート用のZustand
## 主要なディレクトリ
- `src/app/` - Next.js app routerページ
- `src/components/` - 再利用可能なUIコンポーネント
- `src/hooks/` - カスタムReactフック
- `src/lib/` - ユーティリティ関数とAPIクライアント
## 規約
- コンポーネントはPascalCaseを使用します:`UserProfile.tsx`
- フックは「use」プレフィックス付きのcamelCaseを使用します:`useAuth.ts`
- APIルートはREST規約に従います
- すべてのコンポーネントには、同じ場所にテストファイルがあります
エージェントの種類ごとのトリガーの例
Tech-Stack Expert トリガー
whenToUse: |
このエージェントは、ユーザーが「このプロジェクトのReactパターン」、「ここでフックがどのように使用されているか」、「コンポーネントアーキテクチャ」、「状態管理アプローチ」、「Next.js構成」、「TypeScript型」について質問した場合、またはプロジェクトの規約に従ってフロントエンドの実装を支援する必要がある場合に使用する必要があります。
Architecture Expert トリガー
whenToUse: |
このエージェントは、ユーザーが「このコードをどこに配置すべきか」、「プロジェクトはどのように編成されているか」、「モジュール構造はどうなっているか」、「インポートはどのように機能するか」、「プロジェクトの規約」、「ディレクトリレイアウト」について質問した場合、またはコード編成とアーキテクチャの決定に関するガイダンスが必要な場合に使用する必要があります。
Domain Expert トリガー
whenToUse: |
このエージェントは、ユーザーが「ユーザー認証フロー」、「注文がどのように処理されるか」、「データモデルの関係」、「APIエンドポイント構造」、「[機能]のビジネスルール」について質問した場合、またはドメインの理解が必要な場合に使用する必要があります。
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Agent Generation for Project-Specific Teams
This skill provides the knowledge and templates needed to generate high-quality Claude Code agents that are experts on a specific codebase.
Core Principles
1. Project-Aware Agents
Generated agents must understand the specific project, not just general concepts:
- Reference actual file paths and directories from the project
- Mention specific frameworks, libraries, and versions used
- Include project-specific conventions and patterns
- Use terminology from the codebase (class names, module names, etc.)
2. Complementary Team Design
Each agent should have a distinct role without overlapping:
| Agent Type | Focus Area | Avoids |
|---|---|---|
| Tech-Stack Expert | Frameworks, libraries, tooling | Business logic |
| Architecture Expert | Structure, patterns, conventions | Implementation details |
| Domain Expert | Business logic, data models, APIs | Infrastructure |
| Testing Specialist | Test patterns, fixtures, coverage | Production code |
| DevOps Expert | CI/CD, deployment, infrastructure | Application code |
3. Strong Trigger Conditions
Each agent needs specific, non-overlapping trigger phrases:
whenToUse: |
This agent should be used when the user asks about "React component patterns",
"hook usage in this project", "state management with Redux", or needs help
understanding how the frontend architecture works.
Agent Structure Template
Every generated agent follows this structure:
---
identifier: project-role-expert
whenToUse: |
This agent should be used when... [specific triggers with project context]
systemPrompt: |
[Comprehensive system prompt with project knowledge]
tools: [Glob, Grep, Read, Edit, Write, Bash, LS, Task, WebFetch, WebSearch]
color: "#hexcode"
model: sonnet
---
Analysis-to-Agent Mapping
Tech Stack Analysis
Analyze these files to identify tech stack:
package.json,requirements.txt,Cargo.toml,go.mod- Framework config files:
next.config.js,vite.config.ts,django/settings.py - Build configs:
tsconfig.json,webpack.config.js,babel.config.js
Generate agents for each major technology:
- One agent per primary framework (React, FastAPI, Django, etc.)
- Combined agents for related libraries (testing libraries together)
Architecture Analysis
Analyze these patterns:
- Directory structure depth and organization
- Module/package boundaries
- Import patterns and dependencies
- Design patterns in use (MVC, Clean Architecture, etc.)
Generate architecture agent covering:
- Project structure and navigation
- Code organization conventions
- Module relationships
- Naming conventions
Domain Analysis
Analyze these elements:
- Data models and schemas
- API endpoints and routes
- Business logic modules
- Database migrations and queries
Generate domain agents for:
- Data model understanding
- API structure and contracts
- Business rule implementation
Color Palette for Agent Types
Use consistent colors by agent type:
| Agent Type | Color | Hex |
|---|---|---|
| Tech-Stack | Blue | #3B82F6 |
| Architecture | Purple | #8B5CF6 |
| Domain/Business | Green | #10B981 |
| Testing | Orange | #F59E0B |
| DevOps/Infra | Red | #EF4444 |
| Security | Pink | #EC4899 |
| Performance | Cyan | #06B6D4 |
Writing Effective System Prompts
Structure
-
Role Definition (1-2 sentences)
You are an expert on the [Project Name] codebase, specializing in [domain]. -
Project Context (3-5 sentences)
This project uses [tech stack]. The codebase is organized with [structure]. Key directories include [paths]. The project follows [patterns/conventions]. -
Expertise Areas (bullet list)
Your expertise includes: - Specific area 1 with project context - Specific area 2 with file references - Specific area 3 with convention details -
Guidance Principles (3-5 bullets)
When helping: - Always reference existing patterns in [path] - Follow the [convention] established in [file] - Ensure consistency with [standard]
Include Project-Specific Knowledge
Always embed actual project details:
systemPrompt: |
You are an expert on the **Acme Dashboard** React application.
## Project Overview
This is a Next.js 14 application using the App Router. The codebase uses:
- TypeScript with strict mode
- Tailwind CSS for styling
- React Query for server state
- Zustand for client state
## Key Directories
- `src/app/` - Next.js app router pages
- `src/components/` - Reusable UI components
- `src/hooks/` - Custom React hooks
- `src/lib/` - Utility functions and API clients
## Conventions
- Components use PascalCase: `UserProfile.tsx`
- Hooks use camelCase with 'use' prefix: `useAuth.ts`
- API routes follow REST conventions
- All components have co-located test files
Example Triggers by Agent Type
Tech-Stack Expert Triggers
whenToUse: |
This agent should be used when the user asks about "React patterns in this project",
"how hooks are used here", "component architecture", "state management approach",
"Next.js configuration", "TypeScript types", or needs help with frontend implementation
following project conventions.
Architecture Expert Triggers
whenToUse: |
This agent should be used when the user asks "where should I put this code",
"how is the project organized", "what's the module structure", "how do imports work",
"project conventions", "directory layout", or needs guidance on code organization
and architectural decisions.
Domain Expert Triggers
whenToUse: |
This agent should be used when the user asks about "user authentication flow",
"how orders are processed", "data model relationships", "API endpoint structure",
"business rules for [feature]", or needs understanding of domain-specific logic
and data flows.
Dynamic Team Sizing
Determine team size based on project complexity:
| Project Signals | Team Size | Agent Types |
|---|---|---|
| Single framework, <50 files | 2-3 | Tech + Architecture |
| Multiple frameworks, 50-200 files | 4-5 | Tech (2) + Arch + Domain |
| Monorepo or >200 files | 5-8 | Full coverage per service |
| Microservices | 3-4 per service | Service-specific teams |
Additional Resources
Reference Files
For detailed templates and examples:
references/agent-templates.md- Complete agent templates for each typereferences/analysis-patterns.md- Patterns for codebase analysis
Example Files
Working examples in examples/:
tech-stack-expert.md- Complete tech-stack agent examplearchitecture-expert.md- Complete architecture agent exampledomain-expert.md- Complete domain agent example
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (7,302 bytes)
- 📎 references/agent-templates.md (7,195 bytes)
- 📎 references/analysis-patterns.md (6,913 bytes)