improve-codebase
Scan the codebase for improvement opportunities, present them as a visual HTML report, then plan through whichever one you pick.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan the codebase for improvement opportunities, present them as a visual HTML report, then plan through whichever one you pick.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | improve-codebase |
| description | Scan the codebase for improvement opportunities, present them as a visual HTML report, then plan through whichever one you pick. |
| disable-model-invocation | true |
Goal: Find global opportunities to improve the codebase, and for each one, propose a concrete change with a side-by-side before/after visualization presented in an HTML report.
Unlike simple mechanical refactors (e.g., renaming a variable, extracting a function), these changes only make sense when the codebase is considered as a whole: how identical concepts are expressed in different places in the code, and how hard individual pieces are to use and understand. Every candidate here requires judgment that cannot be automated by a safe find-and-replace. The report should surface each of these opportunities, argue for a concrete solution, and demonstrate what the code looks like afterwards.
Opportunities come in two directions:
Either direction is only worth reporting if it lowers one thing: the cognitive load of working in the code. Five concrete outcomes capture what that means:
For each opportunity, the report gives:
Once the report is written, ask which opportunity to pursue and build a concrete implementation plan for it: the deliverable is the plan itself, not a code change. Vet the choice first: run /grill-me if it's available, otherwise challenge it yourself.