From self-learning
Captures multi-step workflows and hard-won procedures as reusable Agent Skills so future sessions start already knowing them. Activates after non-trivial debugging, operational workflows, or when the user says "remember this".
How this skill is triggered — by the user, by Claude, or both
Slash command
/self-learning:self-learningThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill turns something you just figured out the hard way into a reusable
This skill turns something you just figured out the hard way into a reusable Agent Skill, so the next session — yours or a teammate's — starts already knowing the proven route instead of rediscovering it from scratch.
It is a meta-skill: it doesn't do the work, it captures how work got done.
Watch for these signals during normal work. Any one of them is a cue to harvest:
Act on the cue immediately — don't ask for permission first, whether the user requested it or you noticed it yourself. Harvest the skill, then tell the user what you captured and where (step 5). They can always edit or delete it.
Not every lesson deserves a whole skill — triage first, so you don't bloat the skills list with one-liners:
MEMORY.md index), record it there instead; a whole skill is overkill for
a one-liner. With no such facility, make a small skill.When you do harvest, capture the failures too, not just the win: the approaches you ruled out and why often save more time next session than the golden path itself.
name.ls ~/.claude/skills and ls "$(git rev-parse --show-toplevel)/.claude/skills".
Also glance at any MEMORY.md index — a fact already recorded there may
just need a pointer, not a new skill.<repo>/.claude/skills/): the path is specific to THIS codebase
— its env vars, its deploy command, its schema, its quirks. Most harvested
operational skills are project-scoped, and they ship to the team via git.~/.claude/skills/): the path generalizes across projects — a
personal tool, a cross-repo habit, or a workflow tied to your machine rather
than to one repository.When unsure, prefer project — an over-shared global skill triggers in repos where its commands don't apply.
If your client can spawn a sub-agent that inherits the current conversation (in Claude Code: a fork), use it — it keeps the harvesting work out of your main context while still seeing the golden path. If it can't, run the same steps inline in the main loop. The rules below are identical either way.
In Claude Code, use a fork (subagent_type: "fork"), not a fresh
general-purpose agent. The golden path only exists in this conversation's
context, and a fork inherits that context; a fresh agent would start blank and
have nothing to extract. Forks over-reach by default, so box it in tightly. Hand
it a prompt shaped like this (fill in the bracketed parts):
You are a skill-harvesting fork. Your ONLY job is to write a new Agent Skill capturing the golden path we just worked out in this conversation: [one-line description of the workflow].
Hard rules:
- Write ONLY under
[skills dir]/[skill-name]/. Do NOT modify project source, run builds, install anything, or resume the original task.- First read
[this-skill-dir]/references/skill-authoring.mdand[this-skill-dir]/assets/SKILL.template.md, then authorSKILL.mdto that spec, plus anyreferences/orassets/files the procedure warrants.- Capture the PROCEDURE — commands, paths, the required order, gotchas — not a one-off answer. Generalize so it works next time.
- Capture the FAILURES too: the approaches we ruled out and why, so the next session skips the dead-ends. Put them in a "What didn't work" section.
- NEVER write secret VALUES (passwords, tokens, connection strings, API keys). Record only WHERE to find them: the env var name, the selector function, the MCP tool, the secret manager. Reproducing a secret into a skill file leaks it.
- Self-validate before finishing (see the checklist in skill-authoring.md).
- Report back: the absolute path you wrote and a one-line summary. Then STOP — do not pick the original task back up.
name must equal the directory name, and be lowercase a-z/0-9/hyphens
only — no leading, trailing, or doubled hyphens. A mismatch means the skill
won't load.references/skill-authoring.md.SKILL.md tight (< 500 lines, < ~5000 tokens). Push detail into
references/ and tell the reader when to load each file.For the full authoring spec the fork follows, see references/skill-authoring.md. The fill-in template is assets/SKILL.template.md.
npx claudepluginhub kulaxyz/self-learning-skills --plugin self-learningExtracts valuable workflows, patterns, and domain knowledge from conversations and saves them as reusable SKILL.md files.
Distills recurring workflows from MemSearch memory into reusable skills. Manages skill candidates under .memsearch/skill-candidates/ and supports capture, review, and installation.
Captures successful session workflows from conversation history, generating reusable SKILL.md files with docs, parameters, examples, and Python helper scripts. Use after multi-step tasks for reuse.