From claude-config-doctor
This skill should be used when the user asks to "Claude Code の設定方法を知りたい", "~/.claude/ のベストプラクティスを教えて", ".claude/ の設定を整理したい", "how to configure Claude Code", "CLAUDE.md の書き方", or needs guidance on structuring their ~/.claude/ or project .claude/ directory for optimal Claude Code usage. This skill provides general guidance and best practices only. For auditing an actual configuration and getting specific improvement suggestions, use the `/doctor` command instead.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-config-doctor:best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
`~/.claude/`(グローバル)および `.claude/`(プロジェクト)ディレクトリの各ファイルの役割と、効果的な設定方法のガイド。
~/.claude/(グローバル)および .claude/(プロジェクト)ディレクトリの各ファイルの役割と、効果的な設定方法のガイド。
Claude Code の設定は2つのレベルに分かれる:
~/.claude/): 個人のワークフロー・習慣。すべてのプロジェクトに影響.claude/): プロジェクト固有のルール。チームで git 共有この2つを適切に使い分けることで、開発体験が大きく変わる。
このガイドは、Claude Code の作成者やコミュニティの知見を評価・統合し、実践的なベストプラクティスとしてまとめたもの。詳細は references/ を参照。
Note: このスキルは設定の考え方・ベストプラクティスを提供するガイダンスです。実際の設定ファイルを読み取って問題点を診断するには、
/doctorコマンドを使用してください。
~/.claude/
├── CLAUDE.md # グローバル指示(全プロジェクト共通の行動ルール)
├── settings.json # 権限・許可設定
├── agents/ # カスタムエージェント定義
├── skills/ # グローバルスキル
├── plugins/ # プラグイン(シンボリックリンク or コピー)
├── keybindings.json # キーバインド設定
└── memory/ # 自動メモリ(Claude が自動管理)
.claude/
├── CLAUDE.md # プロジェクト固有の指示(コーディング規約、技術スタック等)
├── settings.json # チーム共有の権限設定(git 管理)
├── settings.local.json # 個人の権限設定(.gitignore に追加)
├── commands/ # プロジェクト固有のコマンド
├── agents/ # プロジェクト固有のエージェント
└── skills/ # プロジェクト固有のスキル
| 設定 | グローバル (~/.claude/) | プロジェクト (.claude/) |
|---|---|---|
| 目的 | 個人のワークフロー・習慣 | プロジェクト固有のルール |
| 共有 | 個人専用 | チームで git 共有 |
| CLAUDE.md | 言語設定、出力スタイル、汎用ルール | コーディング規約、禁止事項、技術スタック |
| agents/ | 汎用エージェント(レビュー、調査等) | プロジェクト固有エージェント |
| skills/ | 個人のワークフロー | プロジェクトのワークフロー |
| settings.json | 個人の権限設定 | チーム共有の権限設定 |
グローバルとプロジェクトのどちらに置くかは、チームの運用方針やプロジェクトの性質に応じて判断する。
グローバル CLAUDE.md に書くべきもの:
プロジェクト CLAUDE.md に書くべきもの:
どちらにも書くべきでないもの:
プロジェクトでは2つの設定ファイルを使い分ける:
.gitignore に追加グローバル CLAUDE.md は全セッションで読み込まれるため、肥大化するとコンテキストを圧迫する。定期的に見直し、不要な記述を削除することで品質を維持できる傾向がある。エージェント定義やスキル定義も同様に、スコープを絞り明確な指示にすることが推奨される。
✅ DO:
❌ DON'T:
references/checklist.md - 監査チェックリストの詳細基準npx claudepluginhub nyoki/my-claude-plugins --plugin claude-config-doctorReviews or designs Claude Code project configuration including `.claude/` directories and `CLAUDE.md` files. Assesses structural rationality, identifies gaps, and suggests improvements.
Generates Claude Code project setups including CLAUDE.md, hooks, permissions, commands, and agents. Analyzes stack (TypeScript, JavaScript, Python, Go, Rust, etc.) to create minimal/standard/full configs.
Guides users through configuring and optimizing Claude Code settings, workflows, and team rules across five learning levels.