/claude-md:reflectfrom claude-md
Analyzes conversation history to suggest improvements to CLAUDE.md memory files. Detects repeated corrections, misunderstandings, and missing context to refine Claude's instructions.
Ships in claude-md. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Analyze recent conversation history to identify improvements for CLAUDE.md memory files.
Find all CLAUDE.md files:
python scripts/find_claude_md.py
Analyze conversation for:
Read reference materials:
references/memory-locations.md - Memory file hierarchy and placementreferences/anti-patterns.md - Common mistakes to avoidPresent findings using AskUserQuestion with checkboxes.
For each suggestion:
Example:
Issue: Repeatedly used 'var' instead of 'const' in JavaScript
Proposal: Add "NEVER use var in JavaScript, use const or let"
File: ./frontend/CLAUDE.md
Wait for user approval before implementing.
For approved changes:
Select correct memory file:
./CLAUDE.md - Project-wide, shared with team./.claude/CLAUDE.md - Alternative project location./.claude/rules/*.md - Modular topic-specific rules~/.claude/CLAUDE.md - Personal preferences (all projects)./CLAUDE.local.md - Personal project-specific (gitignored)Apply changes:
Avoid anti-patterns:
| Type | Location | Purpose | Shared |
|---|---|---|---|
| Project | ./CLAUDE.md | Team instructions | Yes (git) |
| Rules | ./.claude/rules/*.md | Modular topic rules | Yes (git) |
| User | ~/.claude/CLAUDE.md | Personal preferences | No |
| Local | ./CLAUDE.local.md | Personal project prefs | No (gitignored) |
Files higher in hierarchy take precedence. Use @path/to/file syntax to import files.
scripts/find_claude_md.py - Locate all CLAUDE.md filesreferences/memory-locations.md - Detailed memory hierarchy docsreferences/anti-patterns.md - Common mistakes to avoidWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub robbyt/claude-skills --plugin claude-md2 skills in this plugin
Other plugins' skills for the same job