How this skill is triggered — by the user, by Claude, or both
Slash command
/self-learn:learn-from-mistake [<error description>][<error description>]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
After being corrected, proactively propose solidifying the lesson, then generate a guardrail rule upon user approval.
After being corrected, proactively propose solidifying the lesson, then generate a guardrail rule upon user approval.
Identify the error: Triggered when the user corrects the AI. Extract the following:
Summarize and propose: Abstract the specific error into a general pattern, present it to the user, and ask for their opinion:
Generalization self-check: After summarizing the pattern, run a self-check to ensure appropriate granularity:
Determine output form:
Generate output: Execute according to the determined form
Quality assurance: If the output is a skill, call skill-creator:skill-creator before writing the file to evaluate the description's trigger coverage and content quality, then revise based on the evaluation before writing
Place it in .claude/skills/{name}/SKILL.md in the current project root (not the user home directory ~/.claude/skills/).
Before generating, check whether a similar skill already exists under .claude/skills/ — update it rather than creating a new one.
The generated skill should include the following core elements (format is flexible; organize based on the nature of the error):
Append to the project's CLAUDE.md. If CLAUDE.md does not exist, create it first with a basic structure.
When appending, find the semantically most relevant section to insert into — do not pile everything at the end of the file. If no suitable section exists, create a new one.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub fingergohappy/ai-kit --plugin self-learn