/mstack:m-deslopfrom mstack
Removes AI-generated slop and redundancy from code and prose while preserving behavior. Targets dead code, needless abstraction, filler phrasing, and AI vocabulary.
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.
None: SKILL.md is the whole skill.
把"能跑但臃肿"的代码和"能读但有 AI 腔"的文字压到最短、最直白的形态,同时不改变行为。贯穿的原则是"先减后加"(原则 2):先删,删到不能再删,才考虑改。这一 skill 同时管两个面:代码清爽(code slop)和文字清爽(prose slop)。
用:diff 相对 base 出现多余注释、any 绕过类型、无谓 try/catch、深嵌套;文中出现肤浅 -ing 短语、模糊出处、AI 词表、规则三连、感叹套话。
不用,转给别的 m-skill:
m-plan / m-think,这不是清理。m-think 先出方案。m-debug 找根因,别在没搞清意图前删。代码面(先护行为):
文字面(保意义): 6. 保词不改(字节级):代码、命令、路径、报错、数字、单位、否定词(not/never/only)、feat/fix 等关键词原样保留,只压缩包裹它们的套话。 7. 删喉音:just/basically/actually、sure/of course、"In order to"→"To"、"It is important to note that"→删;AI 词表(delve, showcase, crucial, pivotal, tapestry, leverage…)换平实词。 8. 删姿态:em dash 全删(用句号/逗号)、规则三连改成自然数量、标题用 sentence case、去装饰 emoji、"I hope this helps!" 等机器人话删掉。 9. 一句话一件事,结论放首行;主动语态结尾行动。写不出"具体指令/事实/数字"的话就删。
硬护栏(保护核心,不可最小化): trust boundary 处校验、防数据丢失的错误处理、安全控制、无障碍基础、用户明确要求的功能——这些再精简也不动。
git diff <base> 圈定清理范围。todo_write 按 smell 拆任务。codex exec 更适合一次性短清理;交互式细调回到 Claude Code/DSH。What SKILL.md sets; muted values are Claude Code's defaults
Remove AI-generated slop and redundancy from code or prose while preserving behavior: dead code, needless abstraction, defensive cruft, filler phrasing, and AI vocabulary.
Three short reads, in order
17 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-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, 别停/一直做到完成.npx claudepluginhub mola-maker/mstack --plugin mstackOther plugins' skills for the same job