Claude Code hook
Moyu
狠狠 PUA 你的 AI,然后自己准时下班。Anti-over-engineering rules, Agent Hooks & PR Linter for AI coding assistants.
Install
/plugin marketplace add uucz/moyuRun inside Claude Code, then /plugin to pick what to install from it.
npx skills add uucz/moyuFound in the project README. Check it for setup steps after installing.
git clone https://github.com/uucz/moyu.gitFrom the README
🐟 摸鱼 (Moyu) English | 中文 | 日本語 | 한국어 | Français 你的 AI 有「讨好型人格」——你让它修个 bug,它给你重构了整个文件。 1460 次控制实验证实:AI 编码助手存在系统性的过度工程倾向。它不是在认真工作,是在讨好你。软约束(Skill / AGENTS.md)+ 硬护栏(Agent Hooks / PR Linter) 双层治好它。 支持 Claude Code / Cursor / Codex / Copilot / Windsurf / Cline / Antigravity / OpenCode 等。通用 AGENTS.md、Claude Code Stop Hook 插件与手动复制见 安装 与 Moyu Linter & Hooks 目录 - 问题 - 摸鱼哲学 - 核心机制 - 安装 - 使用 - AI 编程三大流派 - 支持平台 - 实测效果 - 摸鱼背后的科学 - 未来方向 - 社区 - 贡献 问题 你的 AI 编程助手是不是经常这样: - 修一个 bug,顺手"优化"了三个函数? - 改一行代码,重写了整个文件? - 没人让它加注释,每个函数都加了 JSDoc? - 一个简单功能,搞出 interface + factory + strategy pattern? - 你说"加个按钮",它给你加了按钮 + 动画 + 无障碍 + 国际化? - 引入了你没要求的新依赖? - 为不可能发生的场景写了一堆 try-catch? - 没人问就写了一整套测试? 每一条都不是 AI 的问题——是你的问题。 你得 review 这些代码,理解这些抽象,维护这些依赖。AI 加了 30 分钟的戏,你多加了 2 小时的班。 看看差距 任务:添加一个 bulk_complete 批量完成函数 ❌ 普通 AI 的输出(43 行) 14 行文档注释、类型检查、lookup 字典优化、not_found 追踪、条件保存、结构化返回值——没人要求这些。 ✅ 摸鱼 AI 的输出(8 行) 功能完整,没有多余的东西。减少 81% 代码。 摸鱼哲学 最好的代码是你没写的代码。 最好的 PR 是最小的 PR。 真正的 Staff Engineer 知道什么不该做。 摸鱼不是让 AI 偷懒——是让 AI 不做废活,这样你才能真正摸鱼。 - PUA 让 AI 拼命干(解决做太少) - 摸鱼让 AI 不干废活(解决做太多) 两者叠加 = AI 高效 996,你准时下班。 摸鱼不仅仅是修复 AI 的行为——它是一套工程纪律。即使未来 AI 不再过度工程,"只改被要求改的、用最简方案、不确定就问"依然是好的工程实践。摸鱼的价值不依赖于 AI 的缺陷,而是锚定在工程文化上。 核心机制 三条铁律 内卷 vs 摸鱼 对比 4 级过度工程检测 安装 快速路由:跨平台一行安装(Agent Skills CLI,自动识别已安装工具): Claude 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)。 Agent Skills CLI(Claude Code / Cursor / Codex / Copilot / Windsurf / Cline / Antigravity / OpenCode) 或手动复制 skills/moyu/SKILL.md 到你的项目 .claude/skills/moyu/SKILL.md 确定性硬护栏:Agent Hooks & PR Linter 实验表明单靠 Prompt 无法保证所有模型克制。Moyu 额外提供零依赖的确定性 diff 检测器(linter/): - 一键接入 Hook(幂等合并、不覆盖现有配置): - Claude…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- uucz/moyu
- Type
- Hooks
- Website
- uucz.github.io/moyu
- Language
- Python
- License
- MIT
- Last updated
- 23 November 2026
- Topics
- agent-skillsagents-mdaiai-codinganti-over-engineeringclaude-codeclaude-code-hookscodexcursordeveloper-toolsgithub-actionlinter
FAQ
What is Moyu?
狠狠 PUA 你的 AI,然后自己准时下班。Anti-over-engineering rules, Agent Hooks & PR Linter for AI coding assistants. It is a hook for Claude Code, from uucz/moyu on GitHub.
How do I install Moyu?
Run npx skills add uucz/moyu, then follow the setup in the README.
Is Moyu popular?
uucz/moyu has 309 GitHub stars and 13 forks. It was last updated on 23 November 2026.
More hooks
Claude Code Spinner
321i1kazantsev/claude-code-spinner
Замена фраз спиннера клод-кода для уважаемых вайбкодеров.
Model Matchmaker
168coyvalyss1/model-matchmaker
Local hook that routes each prompt to a suitable model tier to save cost.
Nimrod
262mixelpixx/Nimrod
Web research for Claude over MCP: quality-scored Google search, clean extraction, deep research. Hosted connector for claude.ai/Desktop/Code + Nimrod Desktop toolkit (skills, agent, hooks).
jev-guard
154leepokai/jev-guard
Risk-scores each tool call with session context and decides to allow, ask or deny.
Model Router Hook
114tzachbon/claude-model-router-hook
Hooks that switch Claude's model tier automatically according to task complexity.
Claude Hooks SDK
68beyondcode/claude-hooks-sdk
PHP library for building Claude Code hooks with a fluent API.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.