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.
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 readYou 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.
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.
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.
Technical 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 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 ToolAI-native code editor forked from VS Code. Composer mode rewrites multiple files at once. Tab autocomplete predicts your...
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
Nimbalyst Demo: A Visual Workspace for Codex + Claude Code with Kanban, Plans, and AI Commits Try it: https://nimbalyst.com/ Star Repo Here: https://github.com/Nimbalyst/nimbalyst This video demos N...

Composio: Connect AI Agents to 1,000+ Apps via CLI (Gmail, Google Docs/Sheets, Hacker News Workflows) Check out Composio here: http://dashboard.composio.dev/?utm_source=Youtube&utm_channel=0426&utm_...

Anthropic has released Channels for Claude Code, enabling external events (CI alerts, production errors, PR comments, Discord/Telegram messages, webhooks, cron jobs, logs, and monitoring signals) to b...

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 terminal-based AI agent that ships code autonomously. Complete guide: install, CLAUDE.md memo...

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.