Skip to content

Structured review of recent conversation history to improve global and project CLAUDE.md files.

CCM score
69 of 100
skills.sh installs
249
GitHub stars
10.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers finding project conversation logs in ~/.claude/projects/, extracting the 15-20 most recent sessions, and aggregating subagent findings
  • Includes a jq extraction script that writes readable USER and ASSISTANT transcripts to a temp directory, plus a batching guide by file size
  • Checks existing global and local CLAUDE.md rules against actual conversations to flag violated, missing, or outdated instructions
  • Designed for maintaining CLAUDE.md files that guide Claude Code behavior across a project and across all projects

Install

$ npx -y skills add ykdojo/claude-code-tips --skill review-claudemd -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/ykdojo/claude-code-tips
Categories
Agent Workflow & Planning, Memory & Context
First seen
Jun 3, 2026

Questions

What does the review-claudemd skill do?

The review-claudemd skill analyzes recent Claude Code conversation history to find improvements for CLAUDE.md files. It checks both the global and the project CLAUDE.md, finds rules that were violated, and suggests additions or outdated items to remove.

How do I install the review-claudemd skill?

Run npx -y skills add ykdojo/claude-code-tips --skill review-claudemd -y in a project to install it. Once installed, the agent can read your past conversations and review your CLAUDE.md files against them.

Where does review-claudemd look for conversation history?

It reads the project's conversation history from the ~/.claude/projects/ folder, where the folder name is the project path with slashes replaced by dashes. It extracts the 15 to 20 most recent conversations to a temporary directory before analyzing them.

Which other skills are in the Agent Workflow & Planning category?

In the Agent Workflow & Planning category, review-claudemd sits alongside grill-me, grill-with-docs, setup-matt-pocock-skills, grilling and prototype. Its own focus is turning past conversations into concrete CLAUDE.md edits.

More from ykdojo/claude-code-tips

All 2

Similar to Review Claudemd

More Agent Workflow & Planning