skill-learning
Skill1 starsChanged 10 days agoApache-2.0View on GitHub
Learn from how skills are actually used so they improve over time - logs the outcome of each skill run and the user's corrections to a local history, summarises success rates and recurring frictions, and drafts reviewed improvements to the skills repository. Use when the user corrects how a skill behaved, after finishing a skill run, or to "review the skills", "améliore les skills", "apprends de mes usages". Not for the content of another skill's task: it only reviews how skills behaved.
In this repository10 other files it gives its agents.
- change-managementSkill
- dev-traceabilitySkill
- incident-responseSkill
- issue-lifecycleSkill
- project-boardSkill
- project-trackingSkill
- repo-contextSkill
- repo-hardeningSkill
- secrets-hygieneSkill
- security-auditSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Read the affected SKILL.md, then draft the smallest change that addresses repeated evidence (≥ 2 occurrences, or one explicit user …
- Distinctive: line 31
Keep every skill in English (see CONVENTIONS.md) and short.
- Distinctive: line 32
Never lower a safety rule (secrets, approvals, destructive actions) because it caused friction.
≈ “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.
Files
Learning from usage
Skills get better from evidence, not guesses. This skill keeps a small local history and turns it into proposed changes that the user reviews.
1. Log (cheap, one line, at the end of a skill run)
${CLAUDE_SKILL_DIR}/learn.py log <skill> ok|partial|failed [--note "what was awkward"] [--correction "what the user told me to do differently"]ok: the skill did what was needed.partial: needed manual workarounds or extra steps.failed: unusable or wrong.- Log a correction whenever the user redirects a skill's behaviour ("don't do X", "always do Y first"). Quote it briefly in the user's own meaning; no copy-paste of conversations.
- Notes are short (≤ 300 characters), redacted automatically for e-mails and phone numbers, and refused if they look like secrets. Never put personal data, amounts tied to a customer or secrets in a note.
- The history is local (
~/.claude/skill-state/usage.jsonl), capped at about 1 MB, never committed, never sent anywhere.
2. Review (when asked, or after roughly 20 logged runs)
${CLAUDE_SKILL_DIR}/learn.py summary --days 60for success rates per skill.learn.py propose --days 60for a Markdown brief of corrections and frictions with counts.- Read the affected
SKILL.md, then draft the smallest change that addresses repeated evidence (≥ 2 occurrences, or one explicit user correction). Prefer a sharper rule, a missing step, a better trigger phrase or a pitfall note over adding length. - Apply changes in the skills repository (not in the installed copy, which may be a symlink or a plugin cache that updates overwrite), on a branch named
improve/<skill>-<topic>, with a Conventional Commit message in English and an entry inCHANGELOG.md. Run the repository tests (python3 -m unittest discover -s tests). - Show the diff and the evidence to the user. Never merge, push or publish without an explicit request.
3. Per-repository learning
Facts that belong to one project (workflow, label scheme, CI names) are saved with repo-context (ctx.py note KEY VALUE), not in the skill text. Facts that hold for every project go into the skill through step 2.
Rules
- Evidence first: no change based on a single ambiguous run.
- Keep every skill in English (see CONVENTIONS.md) and short; remove text when a rule is obsolete.
- Never lower a safety rule (secrets, approvals, destructive actions) because it caused friction; propose a safer way to satisfy it instead.
- The user can wipe the history with
learn.py clear --yes.
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
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.

