基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-code-quality-open命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Audit all lint-ignore suppressions for appropriateness and overuse
Pre-flight checklist — run high-signal review skills before a release
Discover functions that block the main thread, then micro-audit each for internal optimization opportunities
| name | review-code-quality-open |
| description | Open Review of code quality |
| user-invocable | true |
| disable-model-invocation | true |
Enter planning mode. Deep-review the codebase for code quality and maintainability issues. Use maximum parallelism — spawn explore agents for independent areas.
This is an open ended check (aside from mega-function guidelines below), you determine what you think is code smell or code quality opportunities / issues.
Do NOT flag functions for refactoring based on line count alone. Length is not a quality issue.
SKIP refactoring when the function has:
RECOMMEND refactoring only when:
Risk/reward check before recommending any refactor:
Split by area for parallel scanning:
src/gui/ — GUI rendering, state machine, overlay, inputsrc/core/ — Producers (WinEventHook, Komorebi, pumps)src/shared/ — Window list, config, IPC, blacklist, theme, statssrc/editors/ — Config/blacklist editorssrc/pump/ — EnrichmentPump subprocesssrc/ files — Entry points, launcher, installation, updateExclude src/lib/ (third-party code).
Use query_interface.ps1 to compare module public surfaces — similar API shapes across files can reveal DRY violations or misplaced responsibilities. Use query_function.ps1 <funcName> to read function bodies when evaluating DRY violations without loading full files. Use query_callchain.ps1 <funcName> -Reverse to trace callers when checking whether misplaced logic is called from the expected module or from elsewhere.
After explore agents report back, validate every finding yourself. Code quality is subjective — what looks like a concern violation may be an intentional design choice for performance or simplicity.
For each candidate:
file.ahk lines X–Y" with actual code quoted.Group by category:
| Category | File | Lines | Issue | Fix | Counter-argument |
|---|---|---|---|---|---|
| Magic number | foo.ahk | 42 | Sleep(150) — grace period, no named constant | Extract to cfg.GracePeriodMs or named constant | Only used once, comment explains it |
| DRY | bar.ahk:30, baz.ahk:55 | Duplicate pipe cleanup logic | Extract shared helper | Both are 5 lines, abstraction may not be worth it |
Order by maintenance impact: issues that make future changes error-prone first, purely cosmetic issues last.
Ignore any existing plans — create a fresh one.