/mstack:m-learnfrom mstack
Captures repeatable workflows, recurring mistakes, and insights from a session into durable lessons, skills, or memory entries. Use when reflecting on what was learned or when the same mistake appears twice.
Ships in mstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
把当下这次会话里"再来一次还会用到的东西"从会话里提出来,落成三种持久形态之一:一条 lesson(~/.claude/lessons/ 或项目内),一个验证过的 skill,或一条事实类的 memory。核心判断标准是"可沉淀、非一次性"。原则 10(教训进结构)是本 skill 的依据。skill 不是第一落点:先记 lesson,同一教训再次出现并验证通过之后才晋升。
用:同一个小错误出现第二次;一次踩坑花了真实调试/设计/运维成本才绕过来;一个多步流程明显会复现;用户说"把这个记下来 / 补个 skill / 复盘一下"。
不用,转给别的 m-skill:
m-handoff——handoff 只存当前状态,存完就过期。m-verify 验证。references/skill-creation.md 跑完 RED-GREEN。用户明确要求"写个 skill"时可以不卡次数,但不能跳过验证。.mstack/learnings/<slug>.md,不进共享 skill 目录。用户明确要求共享时除外。references/skill-creation.md:create → verify → retrieve → refine → retire。没过 verify 的不检索。每次检索改记录里的成功次数/调用次数,不要只留在对话里。低成功率改为 retire,文件留着。~/.claude/lessons/(项目内 CLAUDE.md 只在用户要求时写)。项目内记录写到 .mstack/learnings/<slug>.md。共享 SKILL.md 只在用户批准后写入对方指定的目录。.mstack/learnings/<slug>.md(含 state 与 uses),或获准后的 SKILL.md,或一条 memory。~/.claude/lessons/;共享 skill 在用户点头后写 .claude/skills/<name>/。~/.dsh/skills/ 下的 skill 文件承载(同样要先批准),或写入项目 .mstack/;无专用 memory MCP 时用文件即可。~/.codex/skills 下的 SKILL.md,其余同 Claude Code 约定。What SKILL.md sets; muted values are Claude Code's defaults
Turn a session's repeatable workflow or a recurring mistake into a durable lesson, a candidate SKILL.md, or a memory entry, instead of re-discovering it next time.
Three short reads, in order
reflection, knowledge-capture, lesson-management, skill-creation, memory
npx claudepluginhub mola-maker/mstack --plugin mstack17 skills in this plugin
/m-cuaDrive a real desktop app, Android device or browser to prove L3/L4 acceptance. Use for 点一下/操作界面/真机验收/computer use./m-debugRoot-cause a bug or failing test: reproduce, competing hypotheses, regression test. Use for debug一下/为什么报错/这个测试挂了./m-deslop删掉 AI 味和冗余——多余注释、死代码、无谓抽象、套话堆砌,先保护行为再减。Use when the user says "deslop / 去AI味 / 删冗余 / 这段太啰嗦 / 精简一下", or a diff feels bloated./m-dispatchFan independent subtasks out to Claude subagents, DSH headless, Codex or Orca; isolate, merge, verify. Use for 分派/并行/开N个agents./m-goalLong-running goal loop: goal file, checkpoints, stop rules, mandatory closeout. Use for run-until-done work, 别停/一直做到完成./m-guardGuardrails: destructive-command checks, folder freeze, plugin vetting, loop brake, known traps. Use for 小心点/冻结目录/这插件安全吗/死循环了.Other plugins' skills for the same job