self-correction-loop

Converts user feedback into deduplicated, categorized rules in MEMORY.md.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill self-correction-loop-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-correction-loop
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/self-correction-loop
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill self-correction-loop-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of repeatedly making (and re-fixing) the same mistakes by turning user feedback into reusable, compounding memory that guides future outputs.

Core Features & Use Cases

  • Correction detection and capture: Detects user corrections and converts them into generalized rules instead of treating them as one-off fixes.
  • Memory deduplication and updating: Scans existing project memory to update overlapping rules and prevent memory bloat.
  • Session-start review: Instructs the assistant to review stored rules at the beginning of a new session so captured guidance is applied immediately.
  • Use case: When a user says "No, use HybridCache instead of IMemoryCache," the Skill generalizes the principle, stores it under the correct category in MEMORY.md, and confirms what was captured for next time.

Quick Start

Ask the AI to use self-correction-loop after you correct its output (for example, "Don't do that again—remember this"), and confirm that it updates MEMORY.md with a generalized, deduplicated rule.

Frequently Asked Questions about self-correction-loop

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

FAQPage Schema
How do I stop an AI assistant from repeating the same mistakes across sessions?

To stop repeating mistakes, you need a self-correction loop that captures explicit user corrections, generalizes them into reusable project rules, and stores them in a memory file like MEMORY.md. This ensures past feedback guides future outputs automatically.

How does rule generalization work when fixing AI output errors?

Rule generalization works by taking a specific correction, such as requesting a different cache implementation, abstracting it into a broad principle, and categorizing it in project memory. This prevents memory bloat and creates compounding guidance for future tasks.

What is the best way to manage project conventions and prevent duplicate memory entries?

The best way to manage project conventions is to use a self-correction loop that scans existing project memory to deduplicate overlapping rules via overlap checking. It updates current entries instead of adding duplicates, preventing memory bloat and maintaining clean conventions.

How do I apply stored project rules at the start of a new AI session?

To apply stored project rules at the start of a new AI session, use a self-correction loop mechanism that instructs the assistant to review existing rules in MEMORY.md immediately. This ensures captured guidance and generalized conventions are applied before generating new outputs.

Can I use a self-correction loop to update MEMORY.md without manual formatting?

Yes, you can use a self-correction loop to update MEMORY.md automatically. After detecting a correction, the process handles rule generalization, deduplication, categorized storage, and confirms exactly what was added or updated, removing the need for manual memory formatting.

What happens if I correct an AI output without a memory capture mechanism?

Without a memory capture mechanism, correcting an AI output remains a one-off fix. The assistant will likely repeat the same mistake in future sessions because the specific feedback is not generalized into a reusable project rule or stored for future review.