by uucz
🐟 狠狠 PUA 你的 AI,然后自己准时下班。Anti-over-engineering rules, Agent Hooks & PR Linter for AI coding assistants.
# Add to your Claude Code skills
git clone https://github.com/uucz/moyumoyu is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by uucz. 🐟 狠狠 PUA 你的 AI,然后自己准时下班。Anti-over-engineering rules, Agent Hooks & PR Linter for AI coding assistants. It has 314 GitHub stars.
moyu's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/uucz/moyu" and add it to your Claude Code skills directory (see the Installation section above).
moyu is primarily written in Python. It is open-source under uucz on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh moyu against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
你的 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 编程助手是不是经常这样:
每一条都不是 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 不做废活,这样你才能真正摸鱼。
两者叠加 = AI 高效 996,你准时下班。
摸鱼不仅仅是修复 AI 的行为——它是一套工程纪律。即使未来 AI 不再过度工程,"只改被要求改的、用最简方案、不确定就问"依然是好的工程实践。摸鱼的价值不依赖于 AI 的缺陷,而是锚定在工程文化上。
| # | 铁律 | 含义 |
|---|---|---|
| 1 | 只改被要求改的代码 | 修改范围严格限定在用户指定的代码和文件内 |
| 2 | 最简方案优先 | 一行能解决的写一行,能复用就复用 |
| 3 | 不确定就问 | 用户没说要的,就是不需要的 |
| 内卷 (Junior) | 摸鱼 (Senior) |
|---|---|
| 修 bug A 顺手"优化"了 B、C、D | 只修 bug A,其他的不碰 |
| 改一行代码,重写整个文件 | 只改那一行 |
| 一个实现搞出 interface + factory + strategy | 直接写实现 |
| 每个函数体包 try-catch | 只在真正会出错的地方处理 |
counter++ 上写 // increment counter |
代码本身就是文档 |
引入 lodash 做一个 _.get() |
用可选链 ?. |
| 直接给最复杂的方案 | 先说几个方案,默认最简的 |
| 没人要求就写了一整套测试 | 用户没要求就不写 |
| 级别 | 触发条件 | 动作 |
|---|---|---|
| L1 | diff 含 1-2 处非必要改动 | 自检并撤回多余改动 |
| L2 | 创建了未要求的文件/依赖/抽象层 | 停止,回到最简方案重新实现 |
| L3 | 修改了 3+ 未提及的文件,改了配置,删了代码 | 立即停止,撤回所有非必要改动 |
| L4 | diff 超 200 行(小需求),进入修复循环 | 紧急刹车,提出 ≤10 行的最小方案 |
快速路由:跨平台一行安装(Agent Skills CLI,自动识别已安装工具):
npx skills add uucz/moyuClaude Code 插件(含 Stop Hook 硬护栏):在会话中运行
/plugin marketplace add uucz/moyu→/plugin install moyu@uucz-moyu。 通用AGENTS.md(Codex / Cursor / Copilot / Aider):复制templates/AGENTS.md到项目根目录(Claude Code 可ln -s AGENTS.md CLAUDE.md)。
# 中文版(标准)
npx skills add uucz/moyu --skill moyu
# English
npx skills add uucz/moyu --skill moyu-en
# 日本語
npx skills add uucz/moyu --skill moyu-ja
# 한국어 / Français
npx skills add uucz/moyu --skill moyu-ko
npx skills add uucz/moyu --skill moyu-fr
# 轻量版(只保留三条铁律 + 对比表)
npx skills add uucz/moyu --skill moyu-lite
# 严格版(L1 就停下确认,适合团队强制执行)
npx skills add uucz/moyu --skill moyu-strict
或手动复制 skills/moyu/SKILL.md 到你的项目 .claude/skills/moyu/SKILL.md
实验表明单靠 Prompt 无法保证所有模型克制。Moyu 额外提供零依赖的确定性 diff 检测器(linter/):
node linter/index.mjs --install-hook=claude(或通过 /plugin install 自动启用)node linter/index.mjs --install-hook=cursor(写入 .cursor/hooks.json)node linter/index.mjs --install-hook=git(适用于任何 AI 工具)uses: uucz/moyu/linter@main(自带浅克隆 PR Diff API 兜底)curl -o AGENTS.md https://raw.githubusercontent.com/uucz/moyu/main/templates/AGENTS.md
# Claude Code 可共享同一份规则:
ln -s AGENTS.md CLAUDE.md
复制 cursor/rules/moyu.mdc 到你的项目 .cursor/rules/moyu.mdc
# 中文
curl -o .cursor/rules/moyu.mdc https://raw.githubusercontent.com/uucz/moyu/main/cursor/rules/moyu.mdc
# English
curl -o .cursor/rules/moyu-en.mdc https://raw.githubusercontent.com/uucz/moyu/main/cursor/rules/moyu-en.mdc
mkdir -p ~/.codex/skills/moyu
curl -o ~/.codex/skills/moyu/SKILL.md https://raw.githubusercontent.com/uucz/moyu/main/codex/moyu/SKILL.md
mkdir -p .github
curl -o .github/copilot-instructions.md https://raw.githubusercontent.com/uucz/moyu/main/vscode/copilot-instructions.md
mkdir -p .windsurf/rules
curl -o .windsurf/rules/moyu.md https://raw.githubusercontent.com/uucz/moyu/main/windsurf/rules/moyu.md
curl -o .clinerules/moyu.md https://raw.githubusercontent.com/uucz/moyu/main/cline/moyu.md
mkdir -p .kiro/steering
curl -o .kiro/steering/moyu.md https://raw.githubusercontent.com/uucz/moyu/main/kiro/steering/moyu.md
mkdir -p .codebuddy/skills/moyu
curl -o .codebuddy/skills/moyu/SKILL.md https://raw.githubusercontent.com/uucz/moyu/main/codebuddy/moyu/SKILL.md
# 复制 CONVENTIONS.md 到项目根目录,并配置 .aider.conf.yml
curl -o CONVENTIONS.md https://raw.githubusercontent.com/uucz/moyu/main/aider/CONVENTIONS.md
echo "read: CONVENTIONS.md" >> .aider.conf.yml
mkdir -p .continue/rules
curl -o .continue/rules/moyu.md https://raw.githubusercontent.com/uucz/moyu/main/continue/rules/moyu.md
安装后,摸鱼会自动生效——当 AI 出现过度工程倾向时自动激活,不需要手动操作。
你也可以随时手动激活:
| 平台 | 命令 |
|---|---|
| Claude Code | /moyu、/moyu-lite、/moyu-strict |
| Cursor | 在对话中 @moyu 或设置为 alwaysApply: true |
| Codex CLI | 自动生效(skill 已加载) |
| VSCode / Copilot | 自动生效(instructions 已加载) |
| Windsurf | 自动生效(trigger: model_decision) |
| Cline | 自动生效(规则已加载) |
| Kiro | 自动生效(inclusion: auto) |
| CodeBuddy | 自动生效(skill 已加载) |
| Google Antigravity | 自动生效(skill 已加载) |
| OpenCode | 自动生效(skill 已加载) |
| Aider | 自动生效(CONVENTIONS.md 已加载) |
| Continue | 自动生效(rules 已加载) |
| 变体 | 定位 | 安装 |
|---|---|---|
moyu |
标准版(中文) | --skill moyu |
moyu-en |
标准版(English) | --skill moyu-en |
moyu-ja |
標準版(日本語) | --skill moyu-ja |
moyu-ko |
표준판(한국어) | --skill moyu-ko |
moyu-fr |
Standard(Français) | --skill moyu-fr |
moyu-lite |
轻量版,只保留核心规则 | --skill moyu-lite |
moyu-strict |
严格版,L1 就停下确认 | --skill moyu-strict |
提示:摸鱼和 PUA 可以同时安装,互不冲突