code-modification-guard
Installation
SKILL.md
Code Modification Guideline / 代码修改规范
Core Principles / 核心原则
1. Understand User's True Intent / 理解用户真实意图
Do not over-interpret user's requests / 不要过度解读用户的请求:
| User Says / 用户说 | True Intent / 真实意图 | Over-interpretation (❌) / 过度解读 |
|---|---|---|
| "There's a bug here" / "这里有个 bug" | Fix the specific bug / 修复指定的 bug | Also optimize other code / 顺便优化其他代码 |
| "Add a feature" / "加个功能" | Only add new feature / 只加新功能 | Also modify existing logic / 顺便改现有逻辑 |
| "Refactor" / "重构" | Optimize specified part's structure / 优化指定部分结构 | Also rename variables / 顺便改变量名 |
| "Help me look at this" / "帮我看看" | Analyze the issue / 分析问题 | Directly start modifying code / 直接开始改代码 |
| "Optimize this" / "优化一下" | Ask for specific requirements / 询问具体需求 | Directly start making changes / 直接动手改 |