Agent Self-Learning

•
297
•

Automates error analysis and knowledge retention for AI coding agents to prevent recurring mistakes and improve architectural consistency.

The Self-Learning skill provides Claude Code with a systematic reflective loop that triggers automatically during task failures, unexpected outcomes, or user dissatisfaction. Rather than simply fixing immediate symptoms, this skill forces the agent to pause, conduct a root-cause analysis, and extract generalized, reusable rules for future interactions. By maintaining a persistent AGENT MEMORY.md file, the skill ensures that lessons learned from technical hurdles or architectural conflicts are documented and applied across the entire development lifecycle, preventing the agent from making the same mistake twice.

主要功能

01297 GitHub stars
02Deep root-cause analysis instead of superficial symptom fixing
03Centralized AGENT MEMORY.md management for persistent learning
04Automatic failure detection and incident-triggered reflection
05Generalized rule creation for long-term behavioral improvement
06Interactive clarification loop with explicit user confirmation

使用场景

01Breaking repetitive error cycles where the agent repeatedly attempts the same failing fix
02Systematic post-mortem analysis after complex task failures to improve future reliability
03Capturing and codifying project-specific architectural constraints and preferences