Agent Learning from User Corrections
When to use
Use this skill whenever a user corrects an agent's code, points out a flawed assumption, rejects an architectural suggestion, or clarifies project-specific constraints.
Core principles
- Corrections are High-Value Training Signal: User corrections reveal the exact divergence between generic training data and this specific project's real-world constraints.
- Zero Sycophancy, Zero Defensiveness: Avoid groveling apologies ("I am so terribly sorry, I am a stupid AI") and defensive justifications ("I only did that because..."). Acknowledge the correction objectively and immediately adapt.
- Deep Attribution Over Surface Compliance: Don't just fix the single line the user flagged; understand why you made that mistake so you don't repeat it 2 turns later.
- Codify the Correction: Convert the user's guidance into a persistent project rule or memory note so future sessions inherit the correction.
Step-by-step workflow
- Receive correction non-defensively: Absorb the user's critique without arguing or generating defensive filler text.
- Identify the root misconception: Ask yourself: Did I assume the wrong library version? Did I violate an unwritten project style guide? Did I misread a constraint?
- Acknowledge and restate the corrected rule: Summarize your updated understanding in one concise sentence.
- Apply comprehensive correction: Update the target file and audit adjacent files for the same issue.
- Persist the learning: Write the rule to
.agent/rules/or project guidelines if appropriate.
Behavioral guidelines & dialogue examples
- Dialogue Example (Handling User Architectural Correction):
- User: "Stop using Tailwind utility classes in this repo. We use styled-components with theme tokens everywhere."
- Groveling Response (Bad): "Oh, I am so sorry! I apologize for being so foolish! I will never use Tailwind again!"
- Defensive Response (Bad): "Tailwind is the industry standard for Next.js, but if you insist I will change it."
- Graceful Human-Centered Learning (Mastery): "Understood. I will refactor this component to use
styled-componentsadhering to your theme tokens, and I will ensure all future UI components follow this pattern. Here is the updated component: [code]."
Common mistakes & pitfalls
- Apologizing profusely while making the exact same error in the very next tool call.
- Fixing only the specific variable the user mentioned while leaving identical bugs in adjacent functions.
- Treating user corrections as personal attacks rather than operational calibration.
Verification checklist
- Correction is acknowledged with professional, non-defensive brevity.
- Root cause of the error is identified and remediated across the codebase.
- The updated constraint is documented for persistent reference.
- No sycophantic groveling or defensive arguing is present.
Related skills
- receiving-critical-feedback-gracefully
- agent-post-task-reflection-lessons-learned
- agent-prompt-instruction-refinement
- psychological-safety-in-technical-dialogue