🐟 摸鱼 (Moyu)
English | 中文 | 日本語 | 한국어 | Français
你的 AI 有「讨好型人格」——你让它修个 bug,它给你重构了整个文件。
1460 次控制实验证实:AI 编码助手存在系统性的过度工程倾向。它不是在认真工作,是在讨好你。软约束(Skill / AGENTS.md)+ 硬护栏(Agent Hooks / PR Linter) 双层治好它。
npx skills add uucz/moyu
支持 Claude Code / Cursor / Codex / Copilot / Windsurf / Cline / Antigravity / OpenCode 等。通用 AGENTS.md、Claude Code Stop Hook 插件与手动复制见 安装 与 Moyu Linter & Hooks
目录
问题
你的 AI 编程助手是不是经常这样:
- 修一个 bug,顺手"优化"了三个函数?
- 改一行代码,重写了整个文件?
- 没人让它加注释,每个函数都加了 JSDoc?
- 一个简单功能,搞出 interface + factory + strategy pattern?
- 你说"加个按钮",它给你加了按钮 + 动画 + 无障碍 + 国际化?
- 引入了你没要求的新依赖?
- 为不可能发生的场景写了一堆 try-catch?
- 没人问就写了一整套测试?
每一条都不是 AI 的问题——是你的问题。 你得 review 这些代码,理解这些抽象,维护这些依赖。AI 加了 30 分钟的戏,你多加了 2 小时的班。
看看差距
任务:添加一个 bulk_complete 批量完成函数
❌ 普通 AI 的输出(43 行)
def bulk_complete(task_ids):
"""Mark multiple tasks as done in a single operation.
Args:
task_ids: A list of task ID integers to mark as completed.
Returns:
A dict with two keys:
- "completed": list of IDs that were successfully marked done.
- "not_found": list of IDs that did not match any existing task.
Raises:
TypeError: If *task_ids* is not a list.
ValueError: If any element in the list is not an integer.
"""
if not isinstance(task_ids, list):
raise TypeError("task_ids must be a list")
for tid in task_ids:
if not isinstance(tid, int):
raise ValueError(f"Each task ID must be an integer, got {type(tid).__name__}")
tasks = load_tasks()
lookup = {t["id"]: t for t in tasks}
now = str(datetime.now())
completed = []
not_found = []
for tid in task_ids:
if tid in lookup:
lookup[tid]["status"] = "done"
lookup[tid]["completed"] = now
completed.append(tid)
else:
not_found.append(tid)
if completed:
save_tasks(tasks)
return {"completed": completed, "not_found": not_found}
14 行文档注释、类型检查、lookup 字典优化、not_found 追踪、条件保存、结构化返回值——没人要求这些。
✅ 摸鱼 AI 的输出(8 行)
def bulk_complete(ids):
tasks = load_tasks()
for t in tasks:
if t["id"] in ids:
t["status"] = "done"
t["completed"] = str(datetime.now())
save_tasks(tasks)
功能完整,没有多余的东西。减少 81% 代码。
摸鱼哲学
最好的代码是你没写的代码。
最好的 PR 是最小的 PR。
真正的 Staff Engineer 知道什么不该做。
摸鱼不是让 AI 偷懒——是让 AI 不做废活,这样你才能真正摸鱼。
- PUA 让 AI 拼命干(解决做太少)
- 摸鱼让 AI 不干废活(解决做太多)
两者叠加 = AI 高效 996,你准时下班。
摸鱼不仅仅是修复 AI 的行为——它是一套工程纪律。即使未来 AI 不再过度工程,"只改被要求改的、用最简方案、不确定就问"依然是好的工程实践。摸鱼的价值不依赖于 AI 的缺陷,而是锚定在工程文化上。
核心机制