Claude Reflect - Self-Learning System
Captures your in-session corrections automatically and applies them to CLAUDE.md when you run /reflect.
UtilitiesIntermediate★ 1,291⑂ 110AI score 8/10Last updated: Mar 16, 2026
What it does
A two-stage learning loop so Claude Code stops repeating the same mistakes.
- Stage 1 – Capture (automatic): hooks detect correction patterns ("no, use X", "actually…", "use X not Y", tool rejections, explicit "remember:") and queue them in
~/.claude/learnings-queue.json. - Stage 2 – Process (manual):
/reflectwalks you through each queued learning and writes it to the right destination — global~/.claude/CLAUDE.md, project./CLAUDE.md, personalCLAUDE.local.md, or modular.claude/rules/*.md. - Extras:
--scan-historymines past sessions,--dry-runpreviews,/view-queueinspects the queue,/skip-reflectclears it. /reflect-skillssuggests new skill candidates from recurring patterns.
Who it's for
- Anyone tired of re-teaching the same conventions (model names, package manager, code style) every session
- Teams that want project conventions accumulated systematically in CLAUDE.md
- Intermediate users comfortable separating global vs. project vs. local memory
Examples
- You say "no, use gpt-5.1 not gpt-5 for reasoning tasks" → hook queues it →
/reflectasks whether to add the rule to your global CLAUDE.md. - After shipping a feature, run
/view-queueto review three captured corrections and apply only the project-specific ones to./CLAUDE.md. - If "run tests with pytest -q" keeps recurring across sessions,
/reflect-skillsproposes promoting it into a dedicated rules file or skill.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the SKILL.m folder from the GitHub repo BayramAnnakov/claude-reflect into my ~/.claude/skills/claude-reflect/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/BayramAnnakov/claude-reflect.git && mkdir -p ~/.claude/skills/claude-reflect && cp -r claude-reflect/* ~/.claude/skills/claude-reflect/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/BayramAnnakov/claude-reflect.git - Create the skill folder:
mkdir -p ~/.claude/skills/claude-reflect - Copy the files in:
cp -r claude-reflect/* ~/.claude/skills/claude-reflect/ - Open the repo README and follow the hook setup instructions, registering the hooks in
~/.claude/settings.json(automatic capture only works with hooks installed). - Back up your existing
~/.claude/CLAUDE.mdand project./CLAUDE.mdbefore first use. - Restart Claude Code, then run
/view-queueand/reflect --dry-runto confirm everything works.
View source on GitHub ↗License: MIT