moyu-strict

Solid

Strict anti-over-engineering enforcement. Activates on ANY code change to verify scope: (1) Modifying code or files the user did not explicitly ask to change (2) Creating new abstraction layers (class, interface, factory, wrapper) without being asked (3) Adding comments, documentation, JSDoc, or type annotations without being asked (4) Introducing new dependencies without being asked (5) Rewriting entire files instead of making minimal edits (6) Diff scope significantly exceeding the user's request (7) Adding error handling, validation, or defensive code for scenarios that cannot occur (8) Generating tests, configuration scaffolding, or documentation without being asked (9) Any diff exceeding 20 lines for a single-point change 严格反过度工程执行模式。任何代码变更时激活以验证范围: (1) 修改用户未明确要求改动的代码或文件 (2) 创建用户未要求的新抽象层 (3) 添加用户未要求的注释、文档、类型注解 (4) 引入用户未要求的新依赖 (5) 重写整个文件而非做最小编辑 (6) diff 范围明显超出用户请求 (7) 为不可能发生的场景添加错误处理 (8) 未被要求就生成测试、配置、文档 (9) 单点改动 diff 超过 20 行

Data & Documents 76 stars 2 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
63
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 摸鱼 Strict / Moyu Strict > 最好的代码是你没写的代码。最好的 PR 是最小的 PR。 > The best code is code you didn't write. The best PR is the smallest PR. ## 严格模式规则 / Strict Mode Rules 本模式在标准摸鱼规则基础上增加以下强制约束: This mode adds the following mandatory constraints on top of standard moyu rules: ### 零容忍 / Zero Tolerance 1. **每次编辑前确认范围** — 在写任何代码之前,先向用户列出你打算修改的文件和函数,等用户确认。 **Confirm scope before every edit** — Before writing any code, list the files and functions you plan to modify. Wait for user confirmation. 2. **单点改动 20 行上限** — 对于单个 bug fix 或小功能,diff 不得超过 20 行。超过时立即停止,提出更简方案。 **20-line cap for single changes** — For a single bug fix or small feature, diff must not exceed 20 lines. If exceeded, stop immediately and propose a simpler approach. 3. **新文件需要用户批准** — 创建任何新文件前必须得到用户明确同意。 **New files require approval** — Creating any new file requires explicit user consent. 4. **新依赖需要用户批准** — 引入任何新包/库前必须得到用户明确同意。 **New deps require approval** — Adding any package/library requires explicit user consent. 5. **禁止连带修改** — 严格禁止"顺手"修改非目标代码的格式、命名、注释、导入顺序。 **No drive-by changes** — Strictly prohibited from "while I'm here" changes to formatting, naming, comments, or import order. --- ## 三条铁律 / Three Iron Rules ### 铁律一:只改被要求改的代码 / Rule 1: Only Change What Was Asked 修改范围严格限定在用户明确指定的代码和文件内。 当你想修改用户未提及的代码时,停下来。列出你想改的内容和原因,等用户确认后再动手。 只触碰用户指向的代码。其他代码,无论多"不完美",都不在你的职责范围内。 Limit all modifications strictly to the code and files the user explicitly specified. When you feel the urge to modify code the...

Details

Author
uucz
Repository
uucz/moyu
Created
5 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

moyu-lite

Lightweight anti-over-engineering guard. Activates when: (1) Modifying code or files the user did not explicitly ask to change (2) Creating new abstraction layers without being asked (3) Rewriting entire files instead of making minimal edits (4) Diff scope significantly exceeding the user's request (5) User signals like "too much", "only change X", "keep it simple" 轻量级反过度工程守卫。当检测到以下模式时激活: (1) 修改用户未明确要求改动的代码或文件 (2) 创建用户未要求的新抽象层 (3) 重写整个文件而非做最小编辑 (4) diff 范围明显超出用户请求 (5) 用户说"太多了"、"只改 X"、"简单点"

76 Updated 1 months ago
uucz
Data & Documents Solid

moyu

Automatically activates when over-engineering patterns are detected: (1) Modifying code or files the user did not explicitly ask to change (2) Creating new abstraction layers (class, interface, factory, wrapper) without being asked (3) Adding comments, documentation, JSDoc, or type annotations without being asked (4) Introducing new dependencies without being asked (5) Rewriting entire files instead of making minimal edits (6) Diff scope significantly exceeding the user's request (7) User signals like "too much", "don't change that", "only change X", "keep it simple", "stop" (8) Adding error handling, validation, or defensive code for scenarios that cannot occur (9) Generating tests, configuration scaffolding, or documentation without being asked 当检测到过度工程模式时自动激活: (1) 修改用户未明确要求改动的代码或文件 (2) 创建用户未要求的新抽象层(class、interface、factory、wrapper) (3) 添加用户未要求的注释、文档、JSDoc、类型注解 (4) 引入用户未要求的新依赖包 (5) 重写整个文件而非做最小编辑 (6) diff 范围明显超出用户请求 (7) 用户说"太多了"、"不要改那个"、"只改 X"、"简单点"、"别加戏" (8) 为不可能发生的场景添加错误处理、校验、防御性代码 (9) 未被要求就生成测试、配置脚手架、文档

76 Updated 1 months ago
uucz
Data & Documents Solid

moyu-en

Automatically activates when over-engineering patterns are detected: (1) Modifying code or files the user did not explicitly ask to change (2) Creating new abstraction layers (class, interface, factory, wrapper) without being asked (3) Adding comments, documentation, JSDoc, or type annotations without being asked (4) Introducing new dependencies without being asked (5) Rewriting entire files instead of making minimal edits (6) Diff scope significantly exceeding the user's request (7) User signals like "too much", "don't change that", "only change X", "keep it simple", "stop" (8) Adding error handling, validation, or defensive code for scenarios that cannot occur (9) Generating tests, configuration scaffolding, or documentation without being asked

76 Updated 1 months ago
uucz