review-claudemd
できること
このスキルは、最近の会話を読み、グローバルとプロジェクトのCLAUDE.mdファイルを確認します。エージェントの働きを良くする変更を提案します。Claude Codeを使い、指示ファイルを管理している人向けです。
使う場面
- ✓CLAUDE.mdの指示が、実際のセッションでの作業を反映するようにしたいとき。
- ✓エージェントが同じ間違いを繰り返し、指示を更新したいとき。
- ✓グローバルとプロジェクトの指示ファイルを見直し、整理したいとき。
スキルのリンク
https://github.com/ykdojo/claude-code-tips/blob/main/skills/review-claudemd/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“最近の会話を見直し、私のCLAUDE.mdファイルの改善案を提案してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、そのプロジェクトの最近の会話履歴を集め、読み取りを複数の補助エージェントに分担させます。彼らは2つの指示ファイルと会話を読み、改善案を提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Review CLAUDE.md from conversation history
Analyze recent conversations to improve both global (~/.claude/CLAUDE.md) and local (project) CLAUDE.md files.
Step 1: Find conversation history
The project's conversation history is in ~/.claude/projects/. The folder name is the project path with slashes replaced by dashes.
# Find the project folder (replace / with -)
PROJECT_PATH=$(pwd | sed 's|/|-|g' | sed 's|^-||')
CONVO_DIR=~/.claude/projects/-${PROJECT_PATH}
ls -lt "$CONVO_DIR"/*.jsonl | head -20
Step 2: Extract recent conversations
Extract the 15-20 most recent conversations (excluding the current one) to a temp directory:
SCRATCH=/tmp/claudemd-review-$(date +%s)
mkdir -p "$SCRATCH"
for f in $(ls -t "$CONVO_DIR"/*.jsonl | head -20); do
basename=$(basename "$f" .jsonl)
# Skip current conversation if known
cat "$f" | jq -r '
if .type == "user" then
"USER: " + (.message.content // "")
elif .type == "assistant" then
"ASSISTANT: " + ((.message.content // []) | map(select(.type == "text") | .text) | join("\n"))
else
empty
end
' 2>/dev/null | grep -v "^ASSISTANT: $" > "$SCRATCH/${basename}.txt"
done
ls -lhS "$SCRATCH"
Step 3: Spin up subagents
Launch parallel subagents to analyze conversations. Each agent should read:
- Global CLAUDE.md:
~/.claude/CLAUDE.md - Local CLAUDE.md:
./CLAUDE.md(if exists) - Batch of conversation files
Give each agent this prompt template:
Read:
1. Global CLAUDE.md: ~/.claude/CLAUDE.md
2. Local CLAUDE.md: [project]/CLAUDE.md
3. Conversations: [list of files]
Analyze the conversations against BOTH CLAUDE.md files. Find:
1. Instructions that exist but were violated (need reinforcement or rewording)
2. Patterns that should be added to LOCAL CLAUDE.md (project-specific)
3. Patterns that should be added to GLOBAL CLAUDE.md (applies everywhere)
4. Anything in either file that seems outdated or unnecessary
Be specific. Output bullet points only.
Batch conversations by size:
- Large (>100KB): 1-2 per agent
- Medium (10-100KB): 3-5 per agent
- Small (<10KB): 5-10 per agent
Step 4: Aggregate findings
Combine results from all agents into a summary with these sections:
- Instructions violated - existing rules that weren't followed (need stronger wording)
- Suggested additions - LOCAL - project-specific patterns
- Suggested additions - GLOBAL - patterns that apply everywhere
- Potentially outdated - items that may no longer be relevant
Present as tables or bullet points. Ask user if they want edits drafted.
よくある質問
どの会話を読みますか?
そのプロジェクトの最近の会話を読みますが、現在の会話は除きます。
確認なしにファイルを変更しますか?
いいえ。このスキルは改善案を提案し、あなたがそれを確認します。
どのファイルを確認しますか?
Claudeフォルダ内のグローバルなCLAUDE.mdと、現在のプロジェクトのCLAUDE.mdを確認します。
詳細
作者による元の説明
Review recent conversations to find improvements for CLAUDE.md files.
repo: ykdojo/claude-code-tips
人気
- GitHubのスター
- 10k
- ランキング
- #11905
- ライセンス
- —
- 更新日
- 2026/9/25
コメント
- …
このリポジトリの他のスキル
gha
10kエージェントが、GitHub Actionsのワークフローが失敗した理由と、同じジョブが繰り返し失敗しているかどうかを調べられるよう支援します。
half-clone
10kエージェントが、長いチャットの後半を新しいセッションにコピーできるよう支援します。最近の作業を残しつつ、使用するトークンを減らせます。
handoff
10kエージェントが、新しいチャットがプロジェクトを、明確な目標、進捗、次のステップとともに引き継げるように、引き継ぎ文書を書けるよう支援します。
hn-summarize
10kエージェントが、公式のHacker Newsのデータを使い、人気の記事の上位、または指定した1つの記事とそのコメントを要約できるよう支援します。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。