Skip to content

Claude Reflect System

Continual Learning & Self-improving skills system for Claude Code - learn from corrections, never repeat mistakes

Install: pip install fastapi

Works with Claude Code, Codex · 382 GitHub stars

Install

$pip install fastapi

Install command taken from the project's README or registry entry. Always review code before running it.

Claude Code Self-Learning Skills - Reflect System 🧠

"Correct once, never again" - AI that learns from your corrections and never repeats mistakes

Keywords: Claude Code, AI Learning, Self-Improving AI, LLM Skills, Machine Learning, Continuous Learning, AI Memory, Developer Tools, Code Automation, Python AI


🎯 What is this?

Reflect is a revolutionary self-learning AI system for Claude Code that enables automatic skill improvement through user corrections. Unlike traditional AI coding assistants that forget everything between sessions, Reflect creates permanent learning from your feedback.

Perfect for: Developers, AI engineers, automation enthusiasts, teams using Claude Code, anyone tired of repeating corrections to AI assistants.

Use Cases:

  • 🔧 Development workflows - Teach Claude your preferred tools (uv, pytest, ruff)
  • 🎨 Code style - Enforce your coding standards automatically
  • 📦 Project templates - Remember your preferred project structures
  • 🔐 Security practices - Never forget security checks again
  • 🚀 CI/CD pipelines - Consistent deployment patterns

The Problem

Session 1: Claude uses pip
You:      "No, use uv instead"
Claude:   "Ok, using uv"

Session 2: Claude uses pip again 😞
You:      "I told you to use uv!"

The Solution

Session 1: Claude uses pip
You:      "No, use uv instead"
          → /reflect → Skill learns ✅

Session 2: Claude uses uv ✨
Session 3: Claude uses uv ✨
Forever:  Claude uses uv ✨

🚀 Quick Start

Installation

# Copy to your Claude Code skills directory
cp -r reflect ~/.claude/skills/
cp -r python-project-creator ~/.claude/skills/

# Check status
/reflect-status

Basic Usage

  1. Work with Claude - Let it make a mistake
  2. Correct it - "No, use X instead of Y"
  3. Run reflection - /reflect
  4. Review changes - Approve with A
  5. Done! - Claude learned permanently

Commands

Command Action
/reflect Analyze current session manually
/reflect-on Enable auto-reflection at session end
/reflect-off Disable auto-reflection
/reflect-status Show current configuration

📦 What's Included

🧠 Reflect System

The core learning engine with:

  • ✅ Pattern detection (HIGH/MEDIUM/LOW confidence)
  • ✅ Safe skill updates with backups
  • ✅ Git integration for version control
  • ✅ Interactive review flow
  • ✅ Auto-reflection via hooks

📖 Complete User Guide

🐍 Python Project Creator (Demo)

Example skill that demonstrates learning:

Initial state: Uses pip and unittest

After corrections:

  1. ✅ Learned: Use uv instead of pip
  2. ✅ Learned: Always pytest, never unittest

Result: Now always suggests uv and pytest!


🎓 How It Works

Three Confidence Levels

🔴 HIGH - Corrections

"No, use X instead of Y"
"Never do X"
"Always check Y"

→ Creates Critical Corrections section

🟡 MEDIUM - Approvals

"Yes, perfect!"
"That works well"
"Exactly right"

→ Adds to Best Practices

🟢 LOW - Observations

"Have you considered...?"
"What about...?"

→ Notes in Considerations

Safe Application

Every change includes:

  • ✅ Timestamped backup
  • ✅ YAML validation
  • ✅ User approval (manual mode)
  • ✅ Automatic rollback on errors
  • ✅ Git commit with description

⚡ Features & Benefits

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related