$npx -y skills add woodfishhhh/EZ_math_model --skill simplifyUse after EZ_math_model coding has produced src/*.py and before packaging when code quality, reuse, vectorization, naming, or unnecessary complexity should be reviewed without changing behavior.
| 1 | # simplify — 建模代码质量检查 |
| 2 | |
| 3 | ## 何时使用 |
| 4 | |
| 5 | - `pipeline 03 coding` 完成后。 |
| 6 | - `pipeline 06 packaging` 之前。 |
| 7 | - hybrid / multi 模式下希望额外检查 `src/*.py`。 |
| 8 | |
| 9 | ## 调用方式 |
| 10 | |
| 11 | 优先加载宿主 `simplify` skill,输入所有 `src/*.py`。只输出建议,不直接修改代码。 |
| 12 | |
| 13 | 检查重点: |
| 14 | |
| 15 | - 重复逻辑和可抽取工具函数。 |
| 16 | - 低效循环与可向量化处理。 |
| 17 | - 过度防御或吞异常。 |
| 18 | - 命名混乱。 |
| 19 | - 与 modeling_plan 不一致的实现。 |
| 20 | |
| 21 | 输出: |
| 22 | |
| 23 | ```text |
| 24 | workdir/{task_id}/simplify_report.md |
| 25 | ``` |