Claude Code Mastery
20 partsTL;DR
Claude Code skills can now reflect on sessions, extract corrections, and update themselves with confidence levels. Your agent gets smarter every time you use it.
You correct Claude on something - maybe a button selector, a naming convention, or a validation check. The fix works. Session ends. Next day, same mistake.
For the next layer of context, read Claude Code Agent Teams, Subagents, and MCP: The 2026 Playbook and Why Skills Beat Prompts for Coding Agents in 2026; they show how reusable agent knowledge turns one-off wins into repeatable workflow.
It happens again. And again.
LLMs don't learn from you. Every conversation starts from zero. That's not a feature. It's friction.
This affects every coding harness, every model. Without memory, your preferences aren't persisted. You're repeating yourself forever.
| Resource | Link |
|---|---|
| Claude Code overview | Anthropic Claude Code |
| Claude Code documentation | Claude Code docs |
| Skills API reference | Claude Code skills |
| Memory and context docs | Claude Code memory |
| Hooks reference | Claude Code hooks |
Claude Code now supports something different: skills that analyze sessions, extract corrections, and update themselves with confidence levels.

The mechanism is elegant because it stays simple. No embeddings. No vector databases. No complexity. Just a markdown file that learns and lives in Git.
Here's how it works.
The /reflect command analyzes your conversation in real-time. It scans for:
From those signals, Claude extracts learnings and proposes updates to your skill file.
Example flow:
code-review skill/reflect code-review
You approve, Claude commits to Git with a message. Rolled back if something breaks. Version control tracks every evolution.
That's manual. You're in charge. Good for starting out.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jan 1, 2026 • 5 min read
Dec 29, 2025 • 10 min read
Dec 27, 2025 • 8 min read
Nov 26, 2025 • 8 min read
For maximal learning, bind the reflect mechanism to a stop hook - a command that runs when your Claude Code session ends.
#!/bin/bash
# .claude/hooks/stop.sh
reflect --auto
Now every session automatically:
No intervention. Silent learning. Your coding harness evolves in the background.
You'll see a notification like: "Updated code-review skill from session insights."

But here's the catch: confidence matters. If you're using auto-reflect, you need confidence in what's being learned. Start with manual. Get comfortable. Then automate.
Most "memory systems" are black boxes - embeddings, similarity scores, retrieval chains. You can't debug them. You can't audit them. You can't roll them back cleanly.
This approach is different:
Over time, you watch your system evolve. Front-end skills learn DOM patterns. API design skills absorb your architecture preferences. Security skills tighten validation logic.
Each skill becomes a living artifact of your standards.
This isn't just for general coding. The pattern works anywhere:
Any skill can reflect. Any skill can learn.
/reflect [skill-name] after sessions where you corrected something.The goal is simple: correct once, remember forever.
Self-improving skills are Claude Code skills that can analyze your sessions, extract corrections you made, and automatically update themselves with the learnings. Unlike traditional LLM memory systems that use embeddings or vector databases, these skills are transparent markdown files stored in Git with full version history.
Use the /reflect [skill-name] command after any session where you corrected Claude. For automatic reflection after every session, add a stop hook in .claude/hooks/stop.sh that runs reflect --auto. Start with manual reflection to build confidence in the learnings before automating.
When Claude proposes updates from session analysis, each learning has a confidence level. High confidence learnings come from explicit corrections like "always do X" or "never do Y." Medium confidence learnings are patterns that worked well. Low confidence are observations that may need review before accepting.
Yes. Because skills are stored in Git, every update has a commit. If a learning causes problems, you can git revert that commit or use git checkout to restore a previous version. This is why Git-backed skills are safer than black-box memory systems.
Yes. Any skill can use the reflect mechanism. Code review skills, API design skills, testing skills, documentation skills - the pattern is universal. Each skill becomes a living document that accumulates your preferences and corrections over time.
CLAUDE.md is static project context that you write manually. Self-improving skills are dynamic - they update automatically based on your corrections during sessions. Use CLAUDE.md for stable project conventions and self-improving skills for patterns that evolve as you work.
The reflection runs after the session ends (on the stop hook), not during your work. The analysis happens in the background and typically takes a few seconds. You'll see a notification when the skill is updated.
Yes. Store skills in a shared Git repository. Each team member's corrections contribute to the skill, and Git handles merge conflicts. This creates team-wide learning - one person's SQL injection catch becomes everyone's SQL injection check.
Read next
Skills turn Claude Code sessions into persistent memory. Successes and failures get captured, progressively disclosed, and shared across teams. Your agent remembers.
7 min readA comprehensive look at Claude Skills-modular, persistent task modules that shatter AI's memory constraints and enable progressive, composable, code-capable workflows for developers and organizations.
8 min readThe definitive collection of Claude Code tips - sub-agents, hooks, worktrees, MCP, custom agents, keyboard shortcuts, and dozens of hidden features most developers never discover.
25 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Anthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolMac app for running parallel Claude Code, Codex, and Cursor agents in isolated workspaces. Watch every agent work at onc...
View ToolInteractive TUI dashboard that shows exactly where your Claude Code and Cursor tokens are going, in real time.
View ToolAnthropic's flagship reasoning model. Best-in-class for coding, long-context analysis, and agentic workflows. 1M token c...
View ToolTurn a one-liner into a working Claude Code skill. From idea to installed in a minute.
View AppUnlock pro skills and share private collections with your team.
View AppEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppA concrete step-by-step guide to moving your development workflow from Cursor to Claude Code - settings, rules, keybindings, and the habits that transfer.
Getting StartedPersistent project instructions loaded every session; supports nested dirs.
Claude CodeHide skills from Claude's auto-selection until manually triggered.
Claude Code
Setting Up Self-Improving Skills in Claude Code: Manual & Automatic Methods In this video, you'll learn how to set up self-improving skills within Claude Code. The tutorial addresses the key problem

Unlocking Continual Learning in Claude Code with Skills In this video, we delve into the concept of continual learning within Claude Code. The traditional approach to developing AI agents...

Open Design: Open-Source n8n App That Turns Any Website into a Brand Kit, Design System, HTML + Images The video introduces Open Design, an MIT-licensed full-stack template that combines AI and n8n a

Skills turn Claude Code sessions into persistent memory. Successes and failures get captured, progressively disclosed, a...

A comprehensive look at Claude Skills-modular, persistent task modules that shatter AI's memory constraints and enable p...

The definitive collection of Claude Code tips - sub-agents, hooks, worktrees, MCP, custom agents, keyboard shortcuts, an...

Skills are how you stop copy-pasting the same workflow into Claude Code every session. What they are, how to write one,...

Claude Code is Anthropic's AI coding agent for terminal, IDE, desktop, and browser workflows. Learn what it does, how it...

Claude Code can now control Chrome using your existing authenticated sessions. No API keys needed. Gmail, Sheets, Figma...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.