self-reflect

Detect user corrections and write learnings to persistent rule files.

103|15|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/KaimingWan/oh-my-claude-code --skill self-reflect-kaimingwan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-reflect
Source: https://github.com/KaimingWan/oh-my-claude-code/tree/main/archive/v2/claude-skills/self-reflect
Command: npx skills add https://github.com/KaimingWan/oh-my-claude-code --skill self-reflect-kaimingwan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and commands (resource) components.

What problem does it solve?

This Skill addresses the issue of AI agents forgetting learned information and repeating mistakes across sessions, enabling continuous improvement and personalized knowledge retention.

Core Features & Use Cases

  • Real-time Correction Capture: Detects user corrections and feedback patterns in natural language.
  • Immediate File Syncing: Writes learned information directly to designated target files without delay.
  • Use Case: When an agent makes a stylistic error in code, the user corrects it. This Skill captures the correction and immediately updates the relevant style guide file, ensuring the agent adheres to the new rule in subsequent interactions.

Quick Start

Use the self-reflect skill to capture the user's correction about using kebab-case for filenames.

Frequently Asked Questions about self-reflect

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

FAQPage Schema
How can an AI agent retain user feedback and stop repeating the same mistakes across sessions?

An AI agent can retain user feedback by detecting linguistic correction patterns and immediately writing the captured learnings to persistent files. This enables continuous self-improvement and personalized knowledge retention across different code generation sessions.

How do I automatically update code style rules when I correct an AI agent's output?

To automatically update code style rules, the system captures your natural language corrections in real-time and immediately syncs the new rules to designated style guide files. The agent then enforces these rules in subsequent code generation interactions.

What is the best way to categorize AI agent learnings based on confidence and sentiment?

The best way to categorize agent learnings is using a 3-layer architecture that separates code-enforceable, high-frequency, and low-frequency rules. The system analyzes confidence and sentiment from your feedback to suggest the appropriate target file for each learning.

Does agent self-learning require manual file management to persist knowledge?

No, agent self-learning does not require manual file management. The system automatically detects user corrections and immediately writes the captured knowledge to persistent files without delay, facilitating seamless agent evolution and knowledge accumulation.

Can I use natural language to correct AI agent behavior without writing explicit commands?

Yes, you can use natural language to correct AI agent behavior. The system detects specific linguistic patterns in your feedback, extracts the correction, and immediately updates the relevant target files to enforce the new rule in future interactions.