本文へスキップ
Skillpedia
プロンプトとLLM10k · #11905

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ykdojo/claude-code-tips/blob/main/skills/review-claudemd/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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:

  1. Instructions violated - existing rules that weren't followed (need stronger wording)
  2. Suggested additions - LOCAL - project-specific patterns
  3. Suggested additions - GLOBAL - patterns that apply everywhere
  4. 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル