一键导入
check-code-hygiene
Check code for standardization, readability, maintenance complexity, and defensive coding practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check code for standardization, readability, maintenance complexity, and defensive coding practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a diff-grounded, one-page technical changelog for a Domotion release — from the actual code changes between the last production tag and HEAD (the next, still-unreleased version). Asks for the next version number, since HEAD is not yet in package.json.
Check requirements docs against implementation and report discrepancies
Create a new bug ticket in Hot Sheet
Create a new feature ticket in Hot Sheet
Create a new investigation ticket in Hot Sheet
Create a new issue ticket in Hot Sheet
| name | check-code-hygiene |
| description | Check code for standardization, readability, maintenance complexity, and defensive coding practices |
| allowed-tools | Read, Grep, Glob, Bash, Agent |
Analyze the codebase for code hygiene issues. Generate a report highlighting problems with standardization, human readability, maintenance complexity, and defensive coding.
docs/ai/code-summary.md map (no grab-bag modules; over-long functions carrying inline decision logic broken into paintX/emit* helpers)?set*/clear*/reset* pairs) that could cause bugs. For each such stateful module, don't stop at "is it tested" — check whether the tests exercise the transitions between states (multi-step sequences: out-of-order, interleaved, repeated, empty-then-refill, set→scope→restore-on-throw), not just each operation from a clean state. That transition gap is invisible to line coverage. Run npm run check:features (see docs/83-feature-coverage.md) and treat any GAP/DRIFT it reports as a finding.execFile / spawn), never interpolated into a shell string (exec/execSync)? (No SQL in this project.)any types used where specific types would be safer?For each finding:
End with a prioritized summary of the top 10 most impactful improvements.