claude-reflect
Agent skill fromccplugins/awesome-claude-code-plugins
Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md. Use when discussing learnings, corrections, or when the user mentions remembering something for future sessions.
How to install claude-reflect
install claude-reflect
# install the awesome-claude-code-plugins pack with the skills CLI
npx skills add ccplugins/awesome-claude-code-plugins# or add only this skill to Claude Code: copy the folder
plugins/claude-reflect/
# into
~/.claude/skills/claude-reflect/ (all projects)
.claude/skills/claude-reflect/ (one project)
1# Claude Reflect - Self-Learning System23A two-stage system that helps Claude Code learn from user corrections.45## How It Works67**Stage 1: Capture (Automatic)**8Hooks detect correction patterns ("no, use X", "actually...", "use X not Y") and queue them to `~/.claude/learnings-queue.json`.910**Stage 2: Process (Manual)**11User runs `/reflect` to review and apply queued learnings to CLAUDE.md files.1213## Available Commands1415| Command | Purpose |16|---------|---------|17| `/reflect` | Process queued learnings with human review |18| `/reflect --scan-history` | Scan past sessions for missed learnings |19| `/reflect --dry-run` | Preview changes without applying |20| `/skip-reflect` | Discard all queued learnings |21| `/view-queue` | View pending learnings without processing |2223## When to Remind Users2425Remind users about `/reflect` when:26- They complete a feature or meaningful work unit27- They make corrections you should remember for future sessions28- They explicitly say "remember this" or similar29- Context is about to compact and queue has items3031## Correction Detection Patterns3233High-confidence corrections:34- Tool rejections (user stops an action with guidance)35- "no, use X" / "don't use Y"36- "actually..." / "I meant..."37- "use X not Y" / "X instead of Y"38- "remember:" (explicit marker)3940## CLAUDE.md Destinations4142- `~/.claude/CLAUDE.md` - Global learnings (model names, general patterns)43- `./CLAUDE.md` - Project-specific learnings (conventions, tools, structure)4445## Example Interaction46…
Excerpt shown under the repository's Apache-2.0 license.
