/moskills:learn runs instead · from moskills
Captures corrections as rules in tasks/lessons.md to prevent repeated mistakes. Promotes frequent lessons to project rules or reusable skills. Use when the user corrects the agent or states a standing rule.
This skill never runs in Claude Code
It ships in moskills at templates/, but /moskills:learn (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Primary goal: Turn corrections into rules so the same mistake never happens twice.
This skill closes the loop that project-dna opens. project-dna records what
was built and how to replay it. learn records what went wrong and how to
prevent it. Together they make every session improve the next one.
/diagnose run ends with a confirmed root cause./gatekeeper check rejects work for a repeatable reason.tasks/lessons.md has fired three or more times.tasks/lessons.md in the project root. Create the file
with the header below if it does not exist.tasks/lessons.md for an existing entry covering the same pattern.
If one exists, increment its Seen: counter instead of duplicating.When an evolvebook is active, write the lesson to the mistakes.md of that
book, not to tasks/lessons.md. An evolvebook is active when the run started
with "Using the evolvebook". Use the evolvebook helper:
evolvebook.sh mistake <book> --title ... --context ... --mistake ... --rule ....
A title that exists already raises its Seen counter. At Seen: 2 (not 3),
propose moving the rule to the never.md of the book, with an "Instead" line.
The user decides; mark the entry Promoted: never.md on yes.
## YYYY-MM-DD — short title
- Context: what was being done
- Mistake: what went wrong or what the user corrected
- Rule: imperative prevention rule
- Seen: 1
- Scope: project | stack | universal
Scope drives promotion:
project: only true here (domain quirks, this repo's conventions).stack: true for the whole stack (Angular, NestJS, BullMQ, Docker...).universal: true for any agent work anywhere.personal: the user's own preference, for every project they work on.Session insight -> project rule -> reusable skill. Check at every capture:
Seen: 3+ and Scope: project -> move the rule into the project
CLAUDE.md (or .claude/CLAUDE.md), then mark the entry Promoted: CLAUDE.md.Scope: stack or universal -> propose adding it to the moskills repo.
Add a rule to the SKILL.md of the skill that owns the pattern. When no
skill owns it, propose a new skill. Tell the user the exact target file, so
they can commit it to moskills.Scope: personal -> propose adding it to the personal instruction file of
the user, not to the project. In Claude Code that file is
~/.claude/CLAUDE.md; other agents have an equivalent user-level file.When starting work in a project that has tasks/lessons.md, read it before
the first code change. It is the cheapest context in the repo.
CLAUDE.md or a skill,
surface the conflict instead of adding a second rule.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mouad1/moskills --plugin moskills18 skills in this plugin
/align-intentUse when: requirements, scope, inputs, outputs, success criteria, or non-goals are unclear before coding or starting a new feature./checkpointUse when: recording progress, Git deltas, evidence, blockers, and next actions after meaningful work or before a context change./compress-inputUse when: user asks for compressed communication, lite/full/ultra/wenyan brevity, short answers, low-noise updates, terse commits, terse PR review comments, or direct technical communication./council-loopIterative multi-model review loop across different AI providers that convenes a council of delegate models, collects structured findings, fixes issues minimally, and loops until all reviewers agree on correctness. Use when the user says "council", "council loop", "council-loop", "multi-model review", "review loop", "loop until agree", or asks for consensus code review from multiple providers, even if they do not say council-loop./design-systemUse when: a product with a UI needs consistent look and feel: choosing colors, type, spacing, the app shell (navigation, layout), a component list, or the layout and states of a screen; or when UI code drifts from agreed design values./diagnoseFinds the root cause of a failure before any fix: reproduces it, reads the full error, traces where it starts, tests one hypothesis at a time, then fixes the cause and records the reproduction passing. Use when a test fails or tests that passed before are now red, an error or stack trace appears, a build breaks, users report wrong results or a regression after a change or deploy, something got slow, or the user asks why something fails or behaves unexpectedly, even if they do not say diagnose or debug. Not for building a new feature; use tdd.Other plugins' skills for the same job