claude-md-improver
Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o claude-md-improver.zip https://jpskill.com/download/22472.zip && unzip -o claude-md-improver.zip && rm claude-md-improver.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22472.zip -OutFile "$d\claude-md-improver.zip"; Expand-Archive "$d\claude-md-improver.zip" -DestinationPath $d -Force; ri "$d\claude-md-improver.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
claude-md-improver.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
claude-md-improverフォルダができる - 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
- 同梱ファイル
- 4
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
CLAUDE.md Improver
コードベース全体の CLAUDE.md ファイルを監査、評価、改善し、Claude Code が最適なプロジェクトコンテキストを持つようにします。
このスキルは CLAUDE.md ファイルに書き込むことができます。 品質レポートを提示し、ユーザーの承認を得た後、CLAUDE.md ファイルを対象を絞った改善で更新します。
ワークフロー
フェーズ 1: 発見
リポジトリ内のすべての CLAUDE.md ファイルを見つけます。
find . -name "CLAUDE.md" -o -name ".claude.md" -o -name ".claude.local.md" 2>/dev/null | head -50
ファイルの種類と場所:
| 種類 | 場所 | 目的 |
|---|---|---|
| プロジェクトルート | ./CLAUDE.md |
主要なプロジェクトコンテキスト (git にチェックインされ、チームと共有されます) |
| ローカルオーバーライド | ./.claude.local.md |
個人/ローカル設定 (gitignored、共有されません) |
| グローバルデフォルト | ~/.claude/CLAUDE.md |
すべてのプロジェクトにわたるユーザー全体のデフォルト |
| パッケージ固有 | ./packages/*/CLAUDE.md |
モノレポ内のモジュールレベルのコンテキスト |
| サブディレクトリ | 任意のネストされた場所 | 機能/ドメイン固有のコンテキスト |
注: Claude は親ディレクトリ内の CLAUDE.md ファイルを自動的に検出するため、モノレポのセットアップが自動的に機能します。
フェーズ 2: 品質評価
各 CLAUDE.md ファイルについて、品質基準に照らして評価します。詳細な評価基準については、references/quality-criteria.md を参照してください。
簡易評価チェックリスト:
| 基準 | 重み | チェック |
|---|---|---|
| コマンド/ワークフローが文書化されているか | 高 | ビルド/テスト/デプロイコマンドは存在しますか? |
| アーキテクチャの明確さ | 高 | Claude はコードベースの構造を理解できますか? |
| 自明でないパターン | 中 | 落とし穴や癖は文書化されていますか? |
| 簡潔さ | 中 | 冗長な説明や自明な情報はありませんか? |
| 最新性 | 高 | 現在のコードベースの状態を反映していますか? |
| 実行可能性 | 高 | 指示は実行可能で、曖昧ではありませんか? |
品質スコア:
- A (90-100): 包括的、最新、実行可能
- B (70-89): 良好な網羅性、軽微なギャップ
- C (50-69): 基本情報、主要なセクションが欠落
- D (30-49): 乏しい、または古くなっている
- F (0-29): 欠落している、または著しく古くなっている
フェーズ 3: 品質レポート出力
更新を行う前に、必ず品質レポートを出力してください。
形式:
## CLAUDE.md 品質レポート
### 概要
- 見つかったファイル数: X
- 平均スコア: X/100
- 更新が必要なファイル数: X
### ファイルごとの評価
#### 1. ./CLAUDE.md (プロジェクトルート)
**スコア: XX/100 (グレード: X)**
| 基準 | スコア | 注記 |
|-----------|-------|-------|
| コマンド/ワークフロー | X/20 | ... |
| アーキテクチャの明確さ | X/20 | ... |
| 自明でないパターン | X/15 | ... |
| 簡潔さ | X/15 | ... |
| 最新性 | X/15 | ... |
| 実行可能性 | X/15 | ... |
**問題点:**
- [具体的な問題をリスト]
**推奨される追加点:**
- [追加すべき内容をリスト]
#### 2. ./packages/api/CLAUDE.md (パッケージ固有)
...
フェーズ 4: 対象を絞った更新
品質レポートを出力した後、更新する前にユーザーに確認を求めます。
更新ガイドライン (重要):
-
対象を絞った追加のみを提案する - 真に役立つ情報に焦点を当てます。
- 分析中に発見されたコマンドまたはワークフロー
- コード内で見つかった落とし穴や自明でないパターン
- 明確でなかったパッケージ間の関係
- 機能するテストアプローチ
- 設定の癖
-
最小限に抑える - 以下のことは避けてください。
- コードから明らかなことを繰り返す
- すでにカバーされている一般的なベストプラクティス
- 再発する可能性の低い一時的な修正
- 1行で済む場合に冗長な説明
-
差分を表示する - 各変更について、以下を表示します。
- 更新する CLAUDE.md ファイル
- 具体的な追加 (差分または引用ブロックとして)
- 将来のセッションに役立つ理由の簡単な説明
差分形式:
### 更新: ./CLAUDE.md
**理由:** ビルドコマンドが欠落しており、プロジェクトの実行方法について混乱が生じていました。
```diff
+ ## クイックスタート
+
+ ```bash
+ npm install
+ npm run dev # 開発サーバーをポート 3000 で起動
+ ```
フェーズ 5: 更新の適用
ユーザーの承認後、Edit ツールを使用して変更を適用します。既存のコンテンツ構造を保持します。
テンプレート
プロジェクトタイプ別の CLAUDE.md テンプレートについては、references/templates.md を参照してください。
報告すべき一般的な問題
- 古いコマンド: 機能しなくなったビルドコマンド
- 不足している依存関係: 必要なツールが言及されていない
- 古いアーキテクチャ: 変更されたファイル構造
- 不足している環境設定: 必要な環境変数または設定
- 壊れたテストコマンド: 変更されたテストスクリプト
- 文書化されていない落とし穴: 捕捉されていない自明でないパターン
ユーザーに共有すべきヒント
推奨事項を提示する際、ユーザーに以下のことを思い出させてください。
#キーショートカット: Claude セッション中に#を押すと、Claude が学習内容を CLAUDE.md に自動的に組み込みます。- 簡潔に保つ: CLAUDE.md は人間が読めるようにすべきです。冗長であるよりも、密度の高い方が良いです。
- 実行可能なコマンド: 文書化されているすべてのコマンドは、コピー&ペーストでそのまま使えるようにすべきです。
.claude.local.mdを使用する: チームと共有しない個人的な設定用です (.gitignoreに追加してください)。- グローバルデフォルト: ユーザー全体の好みは
~/.claude/CLAUDE.mdに配置します。
優れた CLAUDE.md とは
主要な原則:
- 簡潔で人間が読めること
- コピー&ペーストできる実行可能なコマンド
- 一般的なアドバイスではなく、プロジェクト固有のパターン
- 自明でない落とし穴と警告
推奨されるセクション (関連するもののみを使用):
- コマンド (ビルド、テスト、開発、リンティング)
- アーキテクチャ (ディレクトリ構造)
- 主要ファイル (エントリポイント、設定)
- コードスタイル (プロジェクトの慣例)
- 環境 (必要な変数、セットアップ)
- テスト (コマンド、パターン)
- 落とし穴 (癖、よくある間違い)
- ワークフロー (いつ何をするか)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
CLAUDE.md Improver
Audit, evaluate, and improve CLAUDE.md files across a codebase to ensure Claude Code has optimal project context.
This skill can write to CLAUDE.md files. After presenting a quality report and getting user approval, it updates CLAUDE.md files with targeted improvements.
Workflow
Phase 1: Discovery
Find all CLAUDE.md files in the repository:
find . -name "CLAUDE.md" -o -name ".claude.md" -o -name ".claude.local.md" 2>/dev/null | head -50
File Types & Locations:
| Type | Location | Purpose |
|---|---|---|
| Project root | ./CLAUDE.md |
Primary project context (checked into git, shared with team) |
| Local overrides | ./.claude.local.md |
Personal/local settings (gitignored, not shared) |
| Global defaults | ~/.claude/CLAUDE.md |
User-wide defaults across all projects |
| Package-specific | ./packages/*/CLAUDE.md |
Module-level context in monorepos |
| Subdirectory | Any nested location | Feature/domain-specific context |
Note: Claude auto-discovers CLAUDE.md files in parent directories, making monorepo setups work automatically.
Phase 2: Quality Assessment
For each CLAUDE.md file, evaluate against quality criteria. See references/quality-criteria.md for detailed rubrics.
Quick Assessment Checklist:
| Criterion | Weight | Check |
|---|---|---|
| Commands/workflows documented | High | Are build/test/deploy commands present? |
| Architecture clarity | High | Can Claude understand the codebase structure? |
| Non-obvious patterns | Medium | Are gotchas and quirks documented? |
| Conciseness | Medium | No verbose explanations or obvious info? |
| Currency | High | Does it reflect current codebase state? |
| Actionability | High | Are instructions executable, not vague? |
Quality Scores:
- A (90-100): Comprehensive, current, actionable
- B (70-89): Good coverage, minor gaps
- C (50-69): Basic info, missing key sections
- D (30-49): Sparse or outdated
- F (0-29): Missing or severely outdated
Phase 3: Quality Report Output
ALWAYS output the quality report BEFORE making any updates.
Format:
## CLAUDE.md Quality Report
### Summary
- Files found: X
- Average score: X/100
- Files needing update: X
### File-by-File Assessment
#### 1. ./CLAUDE.md (Project Root)
**Score: XX/100 (Grade: X)**
| Criterion | Score | Notes |
|-----------|-------|-------|
| Commands/workflows | X/20 | ... |
| Architecture clarity | X/20 | ... |
| Non-obvious patterns | X/15 | ... |
| Conciseness | X/15 | ... |
| Currency | X/15 | ... |
| Actionability | X/15 | ... |
**Issues:**
- [List specific problems]
**Recommended additions:**
- [List what should be added]
#### 2. ./packages/api/CLAUDE.md (Package-specific)
...
Phase 4: Targeted Updates
After outputting the quality report, ask user for confirmation before updating.
Update Guidelines (Critical):
-
Propose targeted additions only - Focus on genuinely useful info:
- Commands or workflows discovered during analysis
- Gotchas or non-obvious patterns found in code
- Package relationships that weren't clear
- Testing approaches that work
- Configuration quirks
-
Keep it minimal - Avoid:
- Restating what's obvious from the code
- Generic best practices already covered
- One-off fixes unlikely to recur
- Verbose explanations when a one-liner suffices
-
Show diffs - For each change, show:
- Which CLAUDE.md file to update
- The specific addition (as a diff or quoted block)
- Brief explanation of why this helps future sessions
Diff Format:
### Update: ./CLAUDE.md
**Why:** Build command was missing, causing confusion about how to run the project.
```diff
+ ## Quick Start
+
+ ```bash
+ npm install
+ npm run dev # Start development server on port 3000
+ ```
### Phase 5: Apply Updates
After user approval, apply changes using the Edit tool. Preserve existing content structure.
## Templates
See [references/templates.md](references/templates.md) for CLAUDE.md templates by project type.
## Common Issues to Flag
1. **Stale commands**: Build commands that no longer work
2. **Missing dependencies**: Required tools not mentioned
3. **Outdated architecture**: File structure that's changed
4. **Missing environment setup**: Required env vars or config
5. **Broken test commands**: Test scripts that have changed
6. **Undocumented gotchas**: Non-obvious patterns not captured
## User Tips to Share
When presenting recommendations, remind users:
- **`#` key shortcut**: During a Claude session, press `#` to have Claude auto-incorporate learnings into CLAUDE.md
- **Keep it concise**: CLAUDE.md should be human-readable; dense is better than verbose
- **Actionable commands**: All documented commands should be copy-paste ready
- **Use `.claude.local.md`**: For personal preferences not shared with team (add to `.gitignore`)
- **Global defaults**: Put user-wide preferences in `~/.claude/CLAUDE.md`
## What Makes a Great CLAUDE.md
**Key principles:**
- Concise and human-readable
- Actionable commands that can be copy-pasted
- Project-specific patterns, not generic advice
- Non-obvious gotchas and warnings
**Recommended sections** (use only what's relevant):
- Commands (build, test, dev, lint)
- Architecture (directory structure)
- Key Files (entry points, config)
- Code Style (project conventions)
- Environment (required vars, setup)
- Testing (commands, patterns)
- Gotchas (quirks, common mistakes)
- Workflow (when to do what) 同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (6,028 bytes)
- 📎 references/quality-criteria.md (2,617 bytes)
- 📎 references/templates.md (3,687 bytes)
- 📎 references/update-guidelines.md (3,197 bytes)