A self-learning system for Claude Code that captures corrections, positive feedback, and preferences — then syncs them to CLAUDE.md and AGENTS.md.
# Add to your Claude Code skills
git clone https://github.com/BayramAnnakov/claude-reflectGuides for using ai agents skills like claude-reflect.
Last scanned: 5/2/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-02T06:10:32.558Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how claude-reflect compares with popular alternatives.
claude-reflect is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by BayramAnnakov. A self-learning system for Claude Code that captures corrections, positive feedback, and preferences — then syncs them to CLAUDE.md and AGENTS.md. It has 1,756 GitHub stars.
Yes. claude-reflect passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/BayramAnnakov/claude-reflect" and add it to your Claude Code skills directory (see the Installation section above). claude-reflect ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
claude-reflect is primarily written in Python. It is open-source under BayramAnnakov on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-reflect against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
A two-stage system that helps Claude Code learn from user corrections.
Stage 1: Capture (Automatic)
Hooks detect correction patterns ("no, use X", "actually...", "use X not Y") and queue them to ~/.claude/learnings-queue.json.
Stage 2: Process (Manual)
User runs /reflect to review and apply queued learnings to CLAUDE.md files.
| Command | Purpose |
|---|---|
/reflect |
Process queued learnings with human review |
/reflect --scan-history |
Scan past sessions for missed learnings |
/reflect --dry-run |
Preview changes without applying |
/reflect-skills |
Discover skill candidates from repeating patterns |
/skip-reflect |
Discard all queued learnings |
/view-queue |
View pending learnings without processing |
Remind users about /reflect when:
High-confidence corrections:
~/.claude/CLAUDE.md - Global learnings (model names, general patterns)./CLAUDE.md - Project-specific learnings (conventions, tools, structure)./CLAUDE.local.md - Personal learnings (machine-specific, gitignored)./.claude/rules/*.md - Modular rules with optional path-scoping~/.claude/rules/*.md - Global modular rules~/.claude/projects/<project>/memory/*.md - Auto memory (low-confidence, exploratory)commands/*.md - Skill improvements (corrections during skill execution)User: no, use gpt-5.1 not gpt-5 for reasoning tasks
Claude: Got it, I'll use gpt-5.1 for reasoning tasks.
[Hook captures this correction to queue]
User: /reflect
Claude: Found 1 learning queued. "Use gpt-5.1 for reasoning tasks"
Scope: global
Apply to ~/.claude/CLAUDE.md? [y/n]
A self-learning system for Claude Code that captures corrections and discovers workflow patterns — turning them into permanent memory and reusable skills.
Two ways to run it:
| Plugin (Python) | Mod (reflect-mod, new in 3.3) |
|
|---|---|---|
| You correct Claude | a hook queues it | a model check sees it at once, in any language |
| You review | later, with /reflect |
right away, in a band above the prompt |
| Runs on | Claude Code, plus Codex/Cursor via AGENTS.md | Claude Code 2.1.286+ with mods |

Pick one. Install the plugin or the mod.
When you correct Claude ("no, use gpt-5.1 not gpt-5"), it remembers forever.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ You correct │ ──► │ Hook captures │ ──► │ /reflect adds │
│ Claude Code │ │ to queue │ │ to CLAUDE.md │
└─────────────────┘ └─────────────────┘ └─────────────────┘
(automatic) (automatic) (manual review)
Analyzes your session history to find repeating tasks that could become reusable commands.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Your past │ ──► │ /reflect-skills │ ──► │ Generates │
│ sessions │ │ finds patterns │ │ /commands │
└─────────────────┘ └─────────────────┘ └─────────────────┘
(68 sessions) (AI-powered) (you approve)
Example: You've asked "review my productivity" 12 times → suggests creating /daily-review
| Feature | What it does |
|---|---|
| Permanent Memory | Corrections sync to CLAUDE.md — Claude remembers across sessions |
| Skill Discovery | Finds repeating patterns in your history → generates commands |
| Multi-language | AI understands corrections in any language |
| Skill Improvement | Corrections during /deploy improve the deploy skill itself |
# Add the marketplace
claude plugin marketplace add bayramannakov/claude-reflect
# Install the plugin
claude plugin install claude-reflect@claude-reflect-marketplace
# IMPORTANT: Restart Claude Code to activate the plugin
After installation, restart Claude Code (exit and reopen). Then hooks auto-configure and commands are ready.
First run? When you run
/reflectfor the first time, you'll be prompted to scan your past sessions for learnings.
Claude Code mods run inside the session, so the same idea works without a queue you have to remember to review:
haiku by default) that decides whether it holds a reusable rule. It reads intent, not keywords,
so corrections in any language count ("нет, используй pnpm" works).×3).~/.claude/CLAUDE.md or ./CLAUDE.md, and the rule applies
in the current session at once. Nothing is written without a press.remember: <rule> skips the model. /reflect-queue lists what it found; /reflect-pause turns it off.claude plugin marketplace add bayramannakov/claude-reflect
claude plugin install reflect-mod@claude-reflect-marketplace
Needs Claude Code 2.1.286 or newer with mods enabled. Each checked prompt is one small model call on your
own Claude account. Install either the mod or the Python plugin above, not both: with both, every
correction is captured twice. The Python plugin stays the choice for /reflect --scan-history, --dedupe,
--organize, /reflect-skills, and for Codex/Cursor users. Details: mod/README.md.
| Command | Description |
|---|---|
/reflect |
Process queued learnings with human review |
/reflect --scan-history |
Scan ALL past sessions for missed learnings |
/reflect --dry-run |
Preview changes without applying |
/reflect --targets |
Show detected config files (CLAUDE.md, AGENTS.md) |
/reflect --review |
Show queue with confidence scores and decay status |
/reflect --dedupe |
Find and consolidate similar entries in CLAUDE.md |
/reflect --include-tool-errors |
Include tool execution errors in scan |
/reflect-skills |
Discover skill candidates from repeating patterns |
/reflect-skills --days N |
Analyze last N days (default: 14) |
/reflect-skills --project <path> |
Analyze specific project |
/reflect-skills --all-projects |
Scan all projects for cross-project patterns |
/reflect-skills --dry-run |
Preview patterns without generating skill files |
/skip-reflect |
Discard all queued learnings |
/view-queue |
View pending learnings without processing |

Stage 1: Capture (Automatic)
Hooks run automatically to detect and queue corrections:
| Hook | Trigger | Purpose |
|---|---|---|
session_start_reminder.py |
Session start | Shows pending learnings reminder |
capture_learning.py |
Every prompt | Detects correction patterns and queues them |
check_learnings.py |
Before compaction | Backs up queue and informs user |
post_commit_reminder.py |
After git commit | Reminds to run /reflect after completing work |
Stage 2: Process (Manual)
Run /reflect to review and apply queued learnings to CLAUDE.md.
Claude-reflect uses a hybrid detection approach:
1. Regex patterns (real-time capture)
Fast pattern matching during sessions detects:
"no, use X" / "don't use Y" / "actually..." / "that's wrong""Perfect!" / "Exactly right" / "Great approach""remember:" — highest confidence2. Semantic AI validation (during /reflect)
When you run /reflect, an AI-powered semantic filter:
Example: A Spanish correction like "no, usa Python" is correctly detected even though it doesn't match English patterns.
Each captured learning has a confidence score (0.60-0.95). The final score is the higher of regex and semantic confidence.
When you run /reflect, Claude presents a summary table with options:
Approved learnings are synced to:
~/.claude/CLAUDE.md (global - applies to all projects)./CLAUDE.md (project-specific)./**/CLAUDE.md (subdirectories - auto-discovered)./.claude/commands/*.md (skill files - when correction relates to a skill)AGENTS.md (if exists - works with Codex, Cursor, Aider, Jules, Zed, Factory)@filename includes or markdown links (bounded depth, cycles handled, code blocks/external URLs skipped) — useful when CLAUDE.md delegates guidance to standards.md, architecture.md, etc.Run /reflect --targets to see which files will be updated.
Run /reflect-skills to discover repeating patterns in your sessions that could become reusable skills:
/reflect-skills # Analyze current project (last 14 days)
/reflect-skills --days 30 # Analyze last 30 days
/reflect-skills --all-projects # Analyze all projects (slower)
/reflect-skills --dry-run # Preview patterns without generating files
Features:
.claude/commands/How it works:
The skill discovers patterns by analyzing your session history semantically. Different phrasings of the same intent are recognized:
Session 1: "review my productivity for today"
Session 2: "how was my focus this afternoon?"
Session 3: "check my ActivityWatch data"
Session 4: "evaluate my work hou