agentleFS
j4rk0rj4rk0r/claude-skills/skills/skill-learner/SKILL.md

skill-learner

Skill2 starsChanged 7 months agoMITView on GitHub

Persistent correction system that captures mistakes from skills or Claude behavior and ensures they never repeat across sessions. Use whenever the user indicates something went wrong — "that's wrong", "fix this", "not what I wanted", "learn from this", "don't do that again", "esto está mal", "aprende de esto", "no hagas eso otra vez", or any correction, complaint, or teaching moment about Claude's output or a skill's behavior. Also use when the user asks to review, list, delete, or manage past corrections, or wants to create an improvement proposal for a skill author. Covers installed skills, general Claude behavior, and cross-session learning persistence.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. moogah/claude_skills★ 1same name
    2. jiangxidong/agent-skill-skill-learner★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 17 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER save a vague correction ("do it differently") without specifying the exact alternative — vague corrections create false confidence …

    line 21
  2. Distinctive:

    NEVER create duplicates — check INDEX.md first.

    line 23
  3. Distinctive:

    NEVER save one-time preferences as universal rules ("I wanted blue" ≠ "always use blue") — ask about scope when intent is ambiguous

    line 24
  4. Very specific:

    NEVER exceed 50 active corrections — consumption degrades.

    line 26
  5. Distinctive:

    NEVER write corrections in a language different from the user's — nuance dies in translation

    line 28
  6. Distinctive:

    NEVER skip "When to apply" — a scopeless correction gets over-applied to contexts where it causes new problems

    line 29
  7. Distinctive:

    NEVER save corrections that bypass safety ("don't validate input", "skip auth checks")

    line 31
  8. Distinctive:

    NEVER assume old corrections are still valid — skill updates silently invalidate them.

    line 32
  9. Distinctive:

    NEVER save without passing the cold-reader test: "Can a different agent in a different session act on this without any conversation …

    line 34
  10. Distinctive:

    Before saving, ask yourself:

    line 44
  11. Distinctive:

    Blast radius: If uncorrected, how bad is the impact?

    line 46
  12. Distinctive:

    If all three are low, tell the user you've noted it but saving a correction would add noise.

    line 49
  13. Distinctive:

    Ambiguous: Ask — "¿Qué skill o comportamiento quieres corregir?"

    line 82
  14. Very specific:

    Read INDEX.md. If same skill+issue exists, update the existing correction: append new context to "What went wrong", refine the rule, bump …

    line 88
  15. Distinctive:

    After creating the correction file:

    line 97
  16. Distinctive:

    If it fails, rewrite. A correction that fails this test actively harms future sessions because it creates the illusion of knowledge without …

    line 106
  17. Very specific:

    If yes, append to the user's global ~/.claude/CLAUDE.md:

    line 117
  18. Distinctive:

    Check if the line already exists before offering.

    line 123
  19. Distinctive:

    When encountering a correction older than 90 days:

    line 142
  20. Distinctive:

    When two corrections for the same skill contradict each other:

    line 152

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Learner

Turn user corrections into persistent knowledge that survives across sessions.

NEVER

  • NEVER save a vague correction ("do it differently") without specifying the exact alternative — vague corrections create false confidence and are worse than no correction
  • NEVER create duplicates — check INDEX.md first; merge if same skill+issue exists
  • NEVER save one-time preferences as universal rules ("I wanted blue" ≠ "always use blue") — ask about scope when intent is ambiguous
  • NEVER exceed 50 active corrections — consumption degrades; archive minor corrections older than 90 days to archive/
  • NEVER write corrections in a language different from the user's — nuance dies in translation
  • NEVER skip "When to apply" — a scopeless correction gets over-applied to contexts where it causes new problems
  • NEVER save corrections that bypass safety ("don't validate input", "skip auth checks")
  • NEVER assume old corrections are still valid — skill updates silently invalidate them; verify before applying corrections older than 90 days
  • NEVER save without passing the cold-reader test: "Can a different agent in a different session act on this without any conversation context?" If no, rewrite before saving

The Correction Paradox

More corrections ≠ better behavior. Over-correcting creates rigidity — an agent drowning in 50 corrections becomes cautious and slow, second-guessing every decision. The goal is not to capture every complaint, but to capture the corrections that will prevent the most damage across the most future sessions.

Before saving, ask yourself:

  • Frequency: Will this situation come up again? (One-off = don't save)
  • Blast radius: If uncorrected, how bad is the impact? (Minor polish = maybe don't save)
  • Generalizability: Does this apply beyond this specific conversation? (Too narrow = don't save)

If all three are low, tell the user you've noted it but saving a correction would add noise. They can override you.

Quick Classification

Classify in the first 5 seconds — this determines the workflow path:

SignalTypePath
Clear explanation ("X did Y, should do Z")Quick fix→ Step 2 (dedup) → Step 3 (save)
Vague complaint ("that's wrong")Investigation→ Step 1 (detect) → full workflow
Same skill corrected 3+ times in INDEX.mdSkill defect→ Steps 1-3 → proactively offer proposal
"Show/list/delete corrections"Management→ Management Commands section

Storage

~/.claude/skill-corrections/
├── INDEX.md                 # One-line entries, master list
├── ACTIVE_CORRECTIONS.md    # Max 50 lines, consumed by other skills
├── skills/<name>/           # Per-skill corrections
├── general/                 # Non-skill Claude behavior
├── proposals/               # Author improvement proposals
└── archive/                 # Expired or invalidated

Workflow

Step 1: Detect (skip for Quick Fix)

Identify which skill failed from the conversation context:

  • Obvious (user reacting to last output): Confirm, don't ask — "Veo que el problema es con X, ¿correcto?"
  • Ambiguous: Ask — "¿Qué skill o comportamiento quieres corregir?"

Quote the problematic output so the user confirms you're targeting the right thing.

Step 2: Check Duplicates

Read INDEX.md. If same skill+issue exists, update the existing correction: append new context to "What went wrong", refine the rule, bump the date.

Step 3: Save

MANDATORY — READ: Load references/correction-patterns.md for the exact file template, severity decision tree, and scope calibration examples. Do NOT save without reading the reference first.

After creating the correction file:

  1. Update INDEX.md: - [correction-NNN](path) — <summary> (<skill>, <date>)
  2. Regenerate ACTIVE_CORRECTIONS.md (format in reference file, max 50 lines)

Step 4: Verify (non-negotiable)

Re-read what you wrote. Apply the cold-reader test: "If a different agent reads this cold in a different session, will it know exactly what to do and when to do it?"

If it fails, rewrite. A correction that fails this test actively harms future sessions because it creates the illusion of knowledge without the substance.

Step 5: Activate Consumption (first time only)

Corrections are dead files unless future sessions read them. On the FIRST correction ever saved, ask the user:

"Para que las correcciones funcionen entre sesiones, necesito añadir una línea a tu CLAUDE.md. ¿Lo añado?"

If yes, append to the user's global ~/.claude/CLAUDE.md:

## Skill Corrections
Before executing any skill, check ~/.claude/skill-corrections/ACTIVE_CORRECTIONS.md for relevant corrections and apply them.

Check if the line already exists before offering. Only do this once — ever.

Step 6: Confirm + Offer Proposal

Tell the user the correction is saved. Then, only for skill corrections (not "general"):

"¿Quieres que prepare una propuesta de mejora para el autor de la skill?"

Step 7: Create Proposal (if yes)

MANDATORY — READ: Load references/correction-patterns.md for the proposal template, diff format, and repo detection instructions. Do NOT write a proposal without reading the reference first.

Save to proposals/<skill-name>-proposal-NNN.md. Tell the user the path and suggest submitting as issue/PR to the skill's repo.

Correction Decay

When encountering a correction older than 90 days:

MANDATORY — READ: Load references/correction-patterns.md § Correction Decay Procedure for the full archival process.

Quick version: check if the skill was updated since the correction date. If the issue was fixed in the skill itself, archive the correction and notify the user.

Conflict Resolution

When two corrections for the same skill contradict each other:

MANDATORY — READ: Load references/correction-patterns.md § Conflict Resolution Matrix for the severity-based resolution rules.

Core principle: newer wins unless older is critical and newer is minor. Critical-vs-critical conflicts always require user judgment.

Management Commands

User saysAction
"Show corrections for X"Read and display that skill's corrections
"Delete correction NNN"Remove file + update INDEX.md + ACTIVE_CORRECTIONS.md
"List all corrections"Show INDEX.md
"Clear corrections for X"Move all to archive/, update indexes

Language

Match the user's language. Write corrections in the language the user described the problem in — nuance is preserved in the original language.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.