reflection

Extract atomic rules from user corrections and commit them to .claude/skills/ files.

Updated Jan 11, 2026
One-click install
npx skills add https://github.com/richardhowes/self-improvement-code-quality-plugin --skill reflection-richardhowes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reflection
Source: https://github.com/richardhowes/self-improvement-code-quality-plugin/tree/main/code-quality/skills/reflection
Command: npx skills add https://github.com/richardhowes/self-improvement-code-quality-plugin --skill reflection-richardhowes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Reflection Skill helps a user improve subsequent Claude Code sessions by automatically capturing mistakes and corrections from the current session and applying them to future skill files in the target project. It creates a feedback loop that reduces repeated mistakes and accelerates mastery of project-specific conventions.

Core Features & Use Cases

  • Explicit triggers only: It activates only when the user explicitly asks for reflection, ensuring safety and control.
  • Targeted rule updates: Extracts atomic, durable rules from session learnings and appends them to the target project’s .claude/skills/ files.
  • Commit-audit trail: Generates clear commit messages and preserves existing skill formats to maintain a clean history.

Quick Start

Say "reflect" after a session to start the learning loop. The skill will analyze the conversation, propose updates, and commit changes to .claude/skills/ in the target project.

Frequently Asked Questions about reflection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save corrections from a Claude Code session to improve future projects?

Session reflection captures mistakes and corrections, then appends extracted atomic rules to project skill files. By explicitly triggering a reflection command, you create a feedback loop that updates target project conventions for subsequent sessions.

How does learning from user feedback work in automated skill files?

Learning from user feedback works by analyzing session corrections when explicitly triggered, extracting durable rules, and appending them under a Learned Rules section. This process updates the target project's skill directory to enforce refined behavior in future sessions.

When should I trigger a reflection update for my project rules?

You should trigger a reflection update at the end of a Claude Code session after providing corrections. It runs only when explicitly requested, ensuring safe, targeted updates to project skill files rather than automatic background changes.

Does updating project rules with session feedback modify existing skill formats?

Updating project rules preserves existing skill formats while appending new atomic rules under Learned Rules. It generates clear semantic commit messages to maintain a clean history and audit trail within the target project directory.

Can I automatically commit learned rules to my git repository?

Yes, committing learned rules to git is handled automatically during the reflection process. The skill extracts durable rules from session feedback, updates the target files, and commits changes with semantic messages to preserve a clean history.

What is the best way to stop repeating mistakes across different coding sessions?

The best way to stop repeating mistakes is to run a reflection command after a session. This extracts corrections as atomic rules, appends them to your project's skill files, and creates a feedback loop for future automation.