self-correction-loop

Detect user corrections and store generalized rules in MEMORY.md.

640|145|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill self-correction-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-correction-loop
Source: https://github.com/codewithmukesh/dotnet-claude-kit/tree/main/skills/self-correction-loop
Command: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill self-correction-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Self-improving correction capture system. After ANY user correction, detect it, generalize the lesson, and store it as a reusable rule in MEMORY.md. Ensures Claude's mistake rate drops over time by compounding corrections into permanent knowledge. Load this skill when a user corrects Claude's output, mentions "remember this", "don't do that again", "learn from mistakes", "update memory", or when starting a new session (to review existing rules).

Core Features & Use Cases

  • Automatically capture user corrections and generalize them into reusable rules.
  • Store rules in MEMORY.md under categorized sections for quick retrieval.
  • Trigger memory review on session start and during corrections to reduce future errors.
  • Support deduplication, auditing, and easy rule updates to keep memory clean.

Quick Start

When Claude makes a mistake, provide a correction and say remember this to trigger extraction and MEMORY.md updates.

Frequently Asked Questions about self-correction-loop

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

FAQPage Schema
How do I make Claude remember corrections across sessions?

To make Claude remember corrections across sessions, you can trigger a memory capture process by saying "remember this" after correcting an output. The system detects the correction, generalizes it into a reusable rule, and stores it in MEMORY.md for future retrieval.

What is the best way to automate Claude memory management for recurring mistakes?

Automating Claude memory management involves detecting user corrections, generalizing the lesson, and storing it as a rule in MEMORY.md. This creates a structured workflow with deduplication and audit-ready storage, ensuring Claude's mistake rate drops over time by compounding corrections into permanent knowledge.

Does the self-correction memory system trigger automatically when I start a new session?

Yes, the self-correction memory system triggers on session start to review existing rules stored in MEMORY.md. It also activates when you correct Claude's output or use phrases like "learn from mistakes" or "update memory" to ensure past lessons are applied.

How do you generalize a user correction into a reusable AI memory rule?

Generalizing a user correction into a reusable AI memory rule involves a structured workflow: detecting the correction, extracting the broader lesson, looking up existing memory to prevent duplicates, and storing the new rule in categorized sections of MEMORY.md.

How do I keep Claude's memory rules clean and avoid duplicate corrections?

To keep Claude's memory rules clean and avoid duplicate corrections, the system supports built-in deduplication and auditing. It checks existing MEMORY.md entries during the memory lookup phase before storing new rules, ensuring clean and easily updatable memory.

When should I use an automated correction capture system for AI memory?

You should use an automated correction capture system when you frequently correct Claude's mistakes and want to prevent recurring errors. It is ideal for compounding corrections into permanent, audit-ready knowledge rules that improve AI accuracy over multiple sessions.