continuous-learning
БесплатноБез исполняемых скриптовНе проверенTurn a hard-won, multi-step procedure from the current session into its own small skill at ~/.claude/skills/learned-<slug>/SKILL.md, so future sessions load…
от mhylle★ 20 звёзд на GitHubОб этом скилле
Continuous Learning
Contents
- Scope — auto-memory or learned skill?
- When to run
- Pattern types
- Workflow
- Writing a good learned skill
- References (loaded on demand)
Reference files (open one when a step points to it):
references/examples.md: Example learned skillsreferences/pattern-types.md: Pattern types — criteria and body sectionsreferences/storage-format.md: Storage format
Promote a reusable problem-solving procedure from this session into a standalone skill that Claude Code discovers by itself. Each learned skill lives at ~/.claude/skills/learned-<slug>/SKILL.md; its description appears in every future session's skill listing, so the model loads the body when the trigger shows up again.
Scope — auto-memory or learned skill?
Claude Code's auto-memory (~/.claude/projects/<project>/memory/) already records preferences, corrections, project facts and pointers, one line each, and loads them into later sessions. This skill does not duplicate it.
| The learning... | Goes to |
|---|---|
| Fits in one memory line — a preference, a fact, a correction ("don't mock the database in integration tests", "this repo uses named exports") | Auto-memory. No skill. |
| Is a multi-step procedure with a recognisable trigger — an exact error message, a named tool limitation, a symptom pattern, a named project task | A learned skill (this workflow) |
When a candidate turns out to be a one-liner, say it belongs in memory and move on.
When to run
Only when invoked; nothing triggers this skill automatically.
- The user asks: "save what we learned", "make this a pattern", "remember how we fixed this", "extract learnings from this session", or
/continuous-learning. - Another skill calls it at a natural boundary (
implement-phaseandtt-implement-phasedo at phase completion). - At the natural end of a long session in which a hard problem was solved, offer it in one line ("Want me to save the Prisma-in-CI fix as a learned skill?") and run it only if the user agrees.
There is no hook for this skill. A Stop hook fires after every response rather than once at session end, and a hook cannot run a skill, so a hook-driven version would fire on every turn or not at all.
Pattern types
Four types qualify. Per-type criteria and body sections → references/pattern-types.md. Complete examples → references/examples.md.
- Error resolution — a non-obvious fix for a specific error. Trigger: the exact error text.
- Workaround — a way around a tool, framework or environment limitation. Includes when it becomes unnecessary.
- Debugging technique — a repeatable investigation sequence for a recognisable problem class.
- Project procedure — a multi-step task specific to one codebase (release, migration, client regeneration). The description names the project.
User corrections and single-rule conventions are not a type here; they go to auto-memory.
Workflow
Step 1 — Find candidates
Scan the session for:
- Errors that took more than one attempt to fix, and the root cause that was found.
- "Can't do X, so we did Y" moments.
- Investigation sequences that located a non-obvious cause.
- Multi-step project tasks the user had to explain or that were worked out by trial.
Step 2 — Apply the bar
Promote a candidate only if all of these hold:
- It is a procedure (two or more steps), not a single rule.
- The trigger is concrete enough to recognise later — an error string, a tool and version, a symptom, a project and task name.
- The fix was not the first result in the official docs.
- The root cause or limitation is understood, not just the symptom silenced.
- It is likely to come up again, in this project or others.
Never save credentials, tokens, keys, passwords or personal data; use placeholders in any example.
Create or update at most 3 learned skills per run — pick the strongest candidates.
Step 3 — Check existing learned skills
Glob ~/.claude/skills/learned-*/SKILL.md and read each description.
- Same trigger or same root cause as an existing learned skill → update that skill (extend the fix, add an Evidence line, sharpen the description) instead of creating a near-duplicate.
- Related but with a different trigger → a new skill is fine; if the two would load in the same situations, merge them instead.
Cap: 20 learned skills. Every learned skill's description sits in the always
Установить continuous-learning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл continuous-learning?
Turn a hard-won, multi-step procedure from the current session into its own small skill at ~/.claude/skills/learned-<slug>/SKILL.md, so future sessions load it when the same trigger shows up again (an exact error, a tool limitation, a recurring debugging situation, a multi-step project task). On demand only: use when the user says "save what we learned", "make this a pattern", "remember how we fixed this", or runs /continuous-learning; offer it at the natural end of a long session. One-line facts, preferences and corrections belong in Claude Code's auto-memory, not here. Keeps at most 20 learned skills, updating or retiring existing ones instead of adding near-duplicates.
Как установить скилл continuous-learning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл continuous-learning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic