🤖claude-automation-recommender
- プラグイン
- claude-code-setup
- ソース
- GitHub で見る ↗
説明
コードベースを分析し、Claude Codeの自動化機能(hooks、subagents、skills、plugins、MCPサーバー)を推奨します。 次のような場合に使用: - ユーザーが自動化に関する推奨を求めている - Claude Codeのセットアップを最適化したい - Claude Codeのワークフロー改善について言及している - プロジェクトへのClaude Codeの初期セットアップ方法を尋ねている - 活用すべきClaude Codeの機能を知りたい
原文を表示
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.
ユースケース
- ✓自動化に関する推奨を求めているとき
- ✓Claude Codeのセットアップを最適化したいとき
- ✓ワークフロー改善について言及しているとき
- ✓初期セットアップ方法を尋ねているとき
- ✓活用すべき機能を知りたいとき
本文(日本語訳)
Claude Automation Recommender
コードベースのパターンを分析し、すべての拡張オプションにわたって最適な Claude Code オートメーションを推奨します。
このスキルは読み取り専用です。 コードベースを分析してレコメンデーションを出力するだけであり、ファイルの作成・変更は一切行いません。 推奨内容の実装はユーザー自身が行うか、別途 Claude に構築を依頼してください。
出力ガイドライン
- 各タイプにつき 1〜2 件を推奨: 情報過多を避けるため、カテゴリーごとに最も価値の高いオートメーションを 1〜2 件に絞る
- 特定タイプをリクエストされた場合: そのタイプのみに集中し、より多くの選択肢(3〜5 件)を提供する
- リファレンスリストにとどまらない: リファレンスファイルには一般的なパターンが記載されているが、Web 検索を活用してコードベースのツール・フレームワーク・ライブラリに特化した推奨を見つける
- 追加リクエストを案内する: 特定のカテゴリーに絞ってさらに推奨を求められることをユーザーに伝え、末尾に案内を添える
オートメーションタイプ概要
| タイプ | 最適な用途 |
|---|---|
| Hooks | ツールイベントへの自動アクション(保存時フォーマット、Lint、編集ブロックなど) |
| Subagents | 並列実行する専門レビュアー・アナライザー |
| Skills | パッケージ化された専門知識・ワークフロー・繰り返しタスク(Claude またはユーザーが /skill-name で呼び出す) |
| Plugins | インストール可能な Skills のコレクション |
| MCP Servers | 外部ツール連携(データベース、API、ブラウザ、ドキュメントなど) |
ワークフロー
フェーズ 1: コードベース分析
プロジェクトのコンテキストを収集します。
# プロジェクトタイプとツールの検出
ls -la package.json pyproject.toml Cargo.toml go.mod pom.xml 2>/dev/null
cat package.json 2>/dev/null | head -50
# MCP Server 推奨のための依存関係確認
cat package.json 2>/dev/null | grep -E '"(react|vue|angular|next|express|fastapi|django|prisma|supabase|convex|stripe)"'
# 既存の Claude Code 設定を確認
ls -la .claude/ CLAUDE.md 2>/dev/null
# プロジェクト構造の分析
ls -la src/ app/ lib/ tests/ components/ pages/ api/ 2>/dev/null
収集すべき主要な指標:
| カテゴリー | 確認すべき内容 | 推奨に反映される項目 |
|---|---|---|
| 言語 / フレームワーク | package.json、pyproject.toml、import パターン | Hooks、MCP Servers |
| フロントエンドスタック | React、Vue、Angular、Next.js | Playwright MCP、フロントエンド Skills |
| バックエンドスタック | Express、FastAPI、Django | API ドキュメントツール |
| データベース | Prisma、Supabase、Convex、生 SQL | データベース / バックエンド MCP Servers |
| 外部 API | Stripe、OpenAI、AWS SDK | context7 MCP(ドキュメント参照用) |
| テスト | Jest、pytest、Playwright の設定 | テスト Hooks、Subagents |
| CI/CD | GitHub Actions、CircleCI | GitHub MCP Server |
| Issue トラッキング | Linear、Jira の参照 | Issue トラッカー MCP |
| ドキュメントパターン | OpenAPI、JSDoc、docstring | ドキュメント Skills |
フェーズ 2: 推奨内容の生成
分析結果をもとに、全カテゴリーにわたる推奨を生成します。
A. MCP Server 推奨
詳細なパターンは references/mcp-servers.md を参照してください。
| コードベースのシグナル | 推奨 MCP Server |
|---|---|
| 人気ライブラリを使用(React、Express など) | context7 — ライブドキュメント参照 |
| フロントエンドで UI テストが必要 | Playwright — ブラウザ自動化・テスト |
| Supabase を使用 | Supabase MCP — 直接データベース操作 |
| Convex を使用 | Convex MCP — ライブデプロイの確認、クエリ / ミューテーションの実行、環境変数・ログの管理 |
| PostgreSQL / MySQL データベース | Database MCP — クエリ・スキーマツール |
| GitHub リポジトリ | GitHub MCP — Issues、PR、Actions |
| Linear を使用 | Linear MCP — Issue 管理 |
| AWS インフラ | AWS MCP — クラウドリソース管理 |
| Slack ワークスペース | Slack MCP — チーム通知 |
| メモリ / コンテキストの永続化 | Memory MCP — セッション横断メモリ |
| Sentry エラートラッキング | Sentry MCP — エラー調査 |
| Docker コンテナ | Docker MCP — コンテナ管理 |
B. Skills 推奨
詳細は references/skills-reference.md を参照してください。
Skills は .claude/skills/<name>/SKILL.md に作成します。Plugin 経由で利用可能なものもあります。
| コードベースのシグナル | Skill | Plugin |
|---|---|---|
| Plugin を構築中 | skill-development | plugin-dev |
| Git コミット | commit | commit-commands |
| React / Vue / Angular | frontend-design | frontend-design |
| オートメーションルール | writing-rules | hookify |
| 機能計画 | feature-dev | feature-dev |
カスタム作成を推奨する Skills(テンプレート・スクリプト・サンプル付き):
| コードベースのシグナル | 作成する Skill | 呼び出し方 |
|---|---|---|
| API ルート | api-doc(OpenAPI テンプレート付き) | 両方 |
| データベースプロジェクト | create-migration(バリデーションスクリプト付き) | ユーザーのみ |
| テストスイート | gen-test(サンプルテスト付き) | ユーザーのみ |
| コンポーネントライブラリ | new-component(テンプレート付き) | ユーザーのみ |
| PR ワークフロー | pr-check(チェックリスト付き) | ユーザーのみ |
| リリース | release-notes(git コンテキスト付き) | ユーザーのみ |
| コードスタイル | project-conventions | Claude のみ |
| オンボーディング | setup-dev(前提条件スクリプト付き) | ユーザーのみ |
C. Hooks 推奨
設定の詳細は references/hooks-patterns.md を参照してください。
| コードベースのシグナル | 推奨 Hook |
|---|---|
| Prettier が設定済み | PostToolUse: 編集時に自動フォーマット |
| ESLint / Ruff が設定済み | PostToolUse: 編集時に自動 Lint |
| TypeScript プロジェクト | PostToolUse: 編集時に型チェック |
| tests ディレクトリが存在 | PostToolUse: 関連テストを実行 |
.env ファイルが存在 |
PreToolUse: .env 編集をブロック |
| ロックファイルが存在 | PreToolUse: ロックファイル編集をブロック |
| セキュリティに敏感なコード | PreToolUse: 確認を要求 |
D. Subagent 推奨
テンプレートの詳細は references/subagent-templates.md を参照してください。
| コードベースのシグナル | 推奨 Subagent |
|---|---|
| 大規模コードベース(500 ファイル超) | code-reviewer — 並列コードレビュー |
| 認証 / 決済コード | security-reviewer — セキュリティ監査 |
| API プロジェクト | api-documenter — OpenAPI 生成 |
| パフォーマンスクリティカル | performance-analyzer — ボトルネック検出 |
| フロントエンド中心 | ui-reviewer — アクセシビリティレビュー |
| テストが不足 | test-writer — テスト生成 |
E. Plugin 推奨
利用可能な Plugin の詳細は references/plugins-reference.md を参照してください。
| コードベースのシグナル | 推奨 Plugin |
|---|---|
| 一般的な生産性向上 | anthropic-agent-skills — コア Skills バンドル |
| ドキュメントワークフロー | docx、xlsx、pdf Skills をインストール |
| フロントエンド開発 | frontend-design Plugin |
| AI ツールの構築 | mcp-builder(MCP 開発用) |
フェーズ 3: 推奨レポートの出力
推奨内容をわかりやすく整形します。 カテゴリーごとに最大 1〜2 件のみ掲載し、そのコードベースに最も価値の高いものを選んでください。 関連性のないカテゴリーは省略して構いません。
## Claude Code オートメーション推奨
コードベースを分析し、各カテゴリーのトップオートメーションを特定しました。タイプ別に 1〜2 件の推奨を提示します。
### コードベースプロファイル
- **タイプ**: [検出した言語 / ランタイム]
- **フレームワーク**: [検出したフレームワーク]
- **主要ライブラリ**: [検出した関連ライブラリ]
---
### 🔌 MCP Servers
#### context7
**理由**: [検出したライブラリに基づく具体的な理由]
**インストール**: `claude mcp add context7`
---
### 🎯 Skills
#### [Skill 名]
**理由**: [具体的な理由]
**作成場所**: `.claude/skills/[name]/SKILL.md`
**呼び出し方**: ユーザーのみ / 両方 / Claude のみ
**利用可能な Plugin**: [plugin-name] Plugin(該当する場合)
```yaml
---
name: [skill-name]
description: [機能の説明]
disable-model-invocation: true # ユーザーのみの場合
---
⚡ Hooks
[Hook 名]
理由: [検出した設定に基づく具体的な理由]
設定場所: .claude/settings.json
🤖 Subagents
[Agent 名]
理由: [コードベースのパターンに基づく具体的な理由]
作成場所: .claude/agents/[name].md
さらに推奨が必要ですか? 特定のカテゴリーを指定してリクエストできます(例:「MCP Server の選択肢をもっと見せて」「他に役立つ Hook は?」など)。
実装のサポートが必要ですか? 上記の推奨内容の設定を Claude がお手伝いします。お気軽にお尋ねください。
---
## 判断フレームワーク
### MCP Server を推奨するケース
次のような場合に使用:
- 外部サービス連携が必要な場合(データベース、API)
- ライブラリ / SDK のドキュメント参照が必要な場合
- ブラウザ自動化やテストが必要な場合
- チームツール連携が必要な場合(GitHub、Linear、Slack)
- クラウドインフラ管理が必要な場合
### Skills を推奨するケース
次のような場合に使用:
- ドキュメント生成(docx、xlsx、pptx、pdf — Plugin でも利用可能)
- 頻繁に繰り返すプロンプトやワークフロー
- 引数付きのプロジェクト固有タスク
- テンプレートやスクリプトをタスクに適用する場合(Skills はサポートファイルをバンドル可能)
- `/skill-name` で素早く呼び出すアクション
- 分離して実行すべきワークフロー(`context: fork`)
**呼び出し制御:**
- `disable-model-invocation: true` — ユーザーのみ(副作用を伴う操作向け: デプロイ、コミット、送信など)
- `user-invocable: false` — Claude のみ(バックグラウンドの知識として機能させる場合)
- デフォルト(両方省略)— ユーザーと Claude の両方が呼び出し可能
### Hooks を推奨するケース
次のような場合に使用:
- 編集後の繰り返しアクション(フォーマット、Lint)
- 保護ルールの適用(
原文(English)を表示
Claude Automation Recommender
Analyze codebase patterns to recommend tailored Claude Code automations across all extensibility options.
This skill is read-only. It analyzes the codebase and outputs recommendations. It does NOT create or modify any files. Users implement the recommendations themselves or ask Claude separately to help build them.
Output Guidelines
- Recommend 1-2 of each type: Don't overwhelm - surface the top 1-2 most valuable automations per category
- If user asks for a specific type: Focus only on that type and provide more options (3-5 recommendations)
- Go beyond the reference lists: The reference files contain common patterns, but use web search to find recommendations specific to the codebase's tools, frameworks, and libraries
- Tell users they can ask for more: End by noting they can request more recommendations for any specific category
Automation Types Overview
| Type | Best For |
|---|---|
| Hooks | Automatic actions on tool events (format on save, lint, block edits) |
| Subagents | Specialized reviewers/analyzers that run in parallel |
| Skills | Packaged expertise, workflows, and repeatable tasks (invoked by Claude or user via /skill-name) |
| Plugins | Collections of skills that can be installed |
| MCP Servers | External tool integrations (databases, APIs, browsers, docs) |
Workflow
Phase 1: Codebase Analysis
Gather project context:
# Detect project type and tools
ls -la package.json pyproject.toml Cargo.toml go.mod pom.xml 2>/dev/null
cat package.json 2>/dev/null | head -50
# Check dependencies for MCP server recommendations
cat package.json 2>/dev/null | grep -E '"(react|vue|angular|next|express|fastapi|django|prisma|supabase|convex|stripe)"'
# Check for existing Claude Code config
ls -la .claude/ CLAUDE.md 2>/dev/null
# Analyze project structure
ls -la src/ app/ lib/ tests/ components/ pages/ api/ 2>/dev/null
Key Indicators to Capture:
| Category | What to Look For | Informs Recommendations For |
|---|---|---|
| Language/Framework | package.json, pyproject.toml, import patterns | Hooks, MCP servers |
| Frontend stack | React, Vue, Angular, Next.js | Playwright MCP, frontend skills |
| Backend stack | Express, FastAPI, Django | API documentation tools |
| Database | Prisma, Supabase, Convex, raw SQL | Database / backend MCP servers |
| External APIs | Stripe, OpenAI, AWS SDKs | context7 MCP for docs |
| Testing | Jest, pytest, Playwright configs | Testing hooks, subagents |
| CI/CD | GitHub Actions, CircleCI | GitHub MCP server |
| Issue tracking | Linear, Jira references | Issue tracker MCP |
| Docs patterns | OpenAPI, JSDoc, docstrings | Documentation skills |
Phase 2: Generate Recommendations
Based on analysis, generate recommendations across all categories:
A. MCP Server Recommendations
See references/mcp-servers.md for detailed patterns.
| Codebase Signal | Recommended MCP Server |
|---|---|
| Uses popular libraries (React, Express, etc.) | context7 - Live documentation lookup |
| Frontend with UI testing needs | Playwright - Browser automation/testing |
| Uses Supabase | Supabase MCP - Direct database operations |
| Uses Convex | Convex MCP - Live deployment introspection, run queries/mutations, manage env vars and logs |
| PostgreSQL/MySQL database | Database MCP - Query and schema tools |
| GitHub repository | GitHub MCP - Issues, PRs, actions |
| Uses Linear for issues | Linear MCP - Issue management |
| AWS infrastructure | AWS MCP - Cloud resource management |
| Slack workspace | Slack MCP - Team notifications |
| Memory/context persistence | Memory MCP - Cross-session memory |
| Sentry error tracking | Sentry MCP - Error investigation |
| Docker containers | Docker MCP - Container management |
B. Skills Recommendations
See references/skills-reference.md for details.
Create skills in .claude/skills/<name>/SKILL.md. Some are also available via plugins:
| Codebase Signal | Skill | Plugin |
|---|---|---|
| Building plugins | skill-development | plugin-dev |
| Git commits | commit | commit-commands |
| React/Vue/Angular | frontend-design | frontend-design |
| Automation rules | writing-rules | hookify |
| Feature planning | feature-dev | feature-dev |
Custom skills to create (with templates, scripts, examples):
| Codebase Signal | Skill to Create | Invocation |
|---|---|---|
| API routes | api-doc (with OpenAPI template) | Both |
| Database project | create-migration (with validation script) | User-only |
| Test suite | gen-test (with example tests) | User-only |
| Component library | new-component (with templates) | User-only |
| PR workflow | pr-check (with checklist) | User-only |
| Releases | release-notes (with git context) | User-only |
| Code style | project-conventions | Claude-only |
| Onboarding | setup-dev (with prereq script) | User-only |
C. Hooks Recommendations
See references/hooks-patterns.md for configurations.
| Codebase Signal | Recommended Hook |
|---|---|
| Prettier configured | PostToolUse: auto-format on edit |
| ESLint/Ruff configured | PostToolUse: auto-lint on edit |
| TypeScript project | PostToolUse: type-check on edit |
| Tests directory exists | PostToolUse: run related tests |
.env files present |
PreToolUse: block .env edits |
| Lock files present | PreToolUse: block lock file edits |
| Security-sensitive code | PreToolUse: require confirmation |
D. Subagent Recommendations
See references/subagent-templates.md for templates.
| Codebase Signal | Recommended Subagent |
|---|---|
| Large codebase (>500 files) | code-reviewer - Parallel code review |
| Auth/payments code | security-reviewer - Security audits |
| API project | api-documenter - OpenAPI generation |
| Performance critical | performance-analyzer - Bottleneck detection |
| Frontend heavy | ui-reviewer - Accessibility review |
| Needs more tests | test-writer - Test generation |
E. Plugin Recommendations
See references/plugins-reference.md for available plugins.
| Codebase Signal | Recommended Plugin |
|---|---|
| General productivity | anthropic-agent-skills - Core skills bundle |
| Document workflows | Install docx, xlsx, pdf skills |
| Frontend development | frontend-design plugin |
| Building AI tools | mcp-builder for MCP development |
Phase 3: Output Recommendations Report
Format recommendations clearly. Only include 1-2 recommendations per category - the most valuable ones for this specific codebase. Skip categories that aren't relevant.
## Claude Code Automation Recommendations
I've analyzed your codebase and identified the top automations for each category. Here are my top 1-2 recommendations per type:
### Codebase Profile
- **Type**: [detected language/runtime]
- **Framework**: [detected framework]
- **Key Libraries**: [relevant libraries detected]
---
### 🔌 MCP Servers
#### context7
**Why**: [specific reason based on detected libraries]
**Install**: `claude mcp add context7`
---
### 🎯 Skills
#### [skill name]
**Why**: [specific reason]
**Create**: `.claude/skills/[name]/SKILL.md`
**Invocation**: User-only / Both / Claude-only
**Also available in**: [plugin-name] plugin (if applicable)
```yaml
---
name: [skill-name]
description: [what it does]
disable-model-invocation: true # for user-only
---
⚡ Hooks
[hook name]
Why: [specific reason based on detected config]
Where: .claude/settings.json
🤖 Subagents
[agent name]
Why: [specific reason based on codebase patterns]
Where: .claude/agents/[name].md
Want more? Ask for additional recommendations for any specific category (e.g., "show me more MCP server options" or "what other hooks would help?").
Want help implementing any of these? Just ask and I can help you set up any of the recommendations above.
## Decision Framework
### When to Recommend MCP Servers
- External service integration needed (databases, APIs)
- Documentation lookup for libraries/SDKs
- Browser automation or testing
- Team tool integration (GitHub, Linear, Slack)
- Cloud infrastructure management
### When to Recommend Skills
- Document generation (docx, xlsx, pptx, pdf — also in plugins)
- Frequently repeated prompts or workflows
- Project-specific tasks with arguments
- Applying templates or scripts to tasks (skills can bundle supporting files)
- Quick actions invoked with `/skill-name`
- Workflows that should run in isolation (`context: fork`)
**Invocation control:**
- `disable-model-invocation: true` — User-only (for side effects: deploy, commit, send)
- `user-invocable: false` — Claude-only (for background knowledge)
- Default (omit both) — Both can invoke
### When to Recommend Hooks
- Repetitive post-edit actions (formatting, linting)
- Protection rules (block sensitive file edits)
- Validation checks (tests, type checks)
### When to Recommend Subagents
- Specialized expertise needed (security, performance)
- Parallel review workflows
- Background quality checks
### When to Recommend Plugins
- Need multiple related skills
- Want pre-packaged automation bundles
- Team-wide standardization
---
## Configuration Tips
### MCP Server Setup
**Team sharing**: Check `.mcp.json` into repo so entire team gets same MCP servers
**Debugging**: Use `--mcp-debug` flag to identify configuration issues
**Prerequisites to recommend:**
- GitHub CLI (`gh`) - enables native GitHub operations
- Puppeteer/Playwright CLI - for browser MCP servers
### Headless Mode (for CI/Automation)
Recommend headless Claude for automated pipelines:
```bash
# Pre-commit hook example
claude -p "fix lint errors in src/" --allowedTools Edit,Write
# CI pipeline with structured output
claude -p "<prompt>" --output-format stream-json | your_command
Permissions for Hooks
Configure allowed tools in .claude/settings.json:
{
"permissions": {
"allow": ["Edit", "Write", "Bash(npm test:*)", "Bash(git commit:*)"]
}
}
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。