Nov 21, 2026
claude-reflect-system Turns Your Corrections Into Permanent Skill Updates
A self-learning system for Claude Code detects corrections in the session, writes them into the skill files with backups and rollback, and reuses them next session — correct once, as the README puts it.
Session 1 your agent uses pip, you say "No, use uv instead", it agrees — and session 2 it uses pip again. Reflect, a MIT-licensed Python system by Haddock Development, attacks exactly that loop for Claude Code: it detects your corrections in the conversation, applies them to the relevant skill files, and the preference survives into every future session. The README's tagline is "Correct once, never again".
Why This Skill Matters
The system classifies what you say into three confidence levels, each routed differently: HIGH-confidence corrections ("No, use X instead of Y", "Never do X") land in a Critical Corrections section; MEDIUM-confidence approvals ("Yes, perfect!") add to Best Practices; LOW-confidence observations ("Have you considered...?") become notes in Considerations. Every change is wrapped in a safety net — a timestamped backup, YAML validation, your approval in manual mode, automatic rollback on errors, and a git commit with a description. Two skills ship in the box: the reflect learning engine itself, and python-project-creator, a demo skill documented as learning uv over pip and pytest over unittest from corrections.
Installation
Copy both skills into your Claude Code skills directory (Python 3.8+ and Git are the requirements; macOS/Linux — the README says Windows is untested):
# Copy to your Claude Code skills directory
cp -r reflect ~/.claude/skills/
cp -r python-project-creator ~/.claude/skills/
# Check status
/reflect-status
The Stop hook that powers auto-reflection is configured by the copy itself — the README says to check ~/.claude/settings.local.json for the reflect/scripts/hook-stop.sh entry if you want to confirm.
Real Workflow: Teach Claude to Use uv Instead of pip
- Work normally and let the mistake happen: ask for a FastAPI project, watch Claude reach for
pip install. - Correct it with a pattern the detector can match — the README's example is: "No, use uv instead of pip! It's faster and modern."
- Run
/reflectto analyze the current session. The system reports what it detected — in the README's walkthrough: a HIGH-confidence correction matching the "use X instead of Y" pattern, oldpip, newuv. - Review the proposed diff. A correction adds a Critical Corrections section to the skill file: a "Don't" line for
pip installand a "Do" line foruv pip install. - Approve with
A. The change is backed up, validated, committed, and permanent — the README's walkthrough shows the next session reaching foruv pip installwith no reminder. - When you trust it, switch to
/reflect-onso reflection runs automatically at session end via the Stop hook;/reflect-offdisables it again.
Four commands cover the whole surface: /reflect (manual analysis), /reflect-on, /reflect-off, and /reflect-status.
Tips
- Be specific. The README's don't-list warns that a vague "That's wrong" won't be detected — corrections in the "use X instead of Y" shape are what the pattern matcher eats.
- Start in manual mode to learn the system; the FAQ suggests enabling auto mode after about a week, once you trust the diffs.
- Every skill update leaves a timestamped backup in
~/.claude/skills/{skill}/.backups/, auto-cleaned after 30 days per the FAQ, and git history records each learning. - Excluding a skill from learning is one edit: add it to the
EXCLUDED_SKILLSlist inreflect/scripts/extract_signals.py. - Team use runs through Git: share the skills directory, and teammates sync the learned preferences like any other repo content.
When Not to Use This
The FAQ is direct that this is designed for the Claude Code CLI; the pattern-detection logic could be adapted to other tools, but that adaptation is yours to write. Contradicting yourself creates conflicts in the learned rules — the README's don't-list says so — so it rewards a stable set of preferences rather than mood-driven ones. And it only knows what you correct: the demo learns tooling preferences because that's what the demo corrects, so don't expect it to internalize rules you never state.
See the leaderboard for more skills.