.claude/skills/review-comments/SKILL.md
Audit comments for staleness — stale identifier references, outdated behavioral claims, and unverifiable flags
npx skillsauth add cwilliams5/Alt-Tabby review-commentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enter planning mode. Three-phase comment audit with decreasing confidence at each tier. Use maximum parallelism — spawn explore agents for independent file groups.
Stale comments are worse than no comments — they actively mislead. But removing a good comment is worse than keeping a stale one. The hard-won "Windows reuses HWNDs for temporary windows" comment took a painful debugging session to earn and costs nothing to keep. When in doubt, flag for human review. Never recommend removing a comment you can't prove is wrong.
Grep all .ahk files in src/ for comments (lines containing ; after code, or ;-prefixed comment lines). Extract any identifiers mentioned in comments and cross-reference against the current codebase.
_FooBar still exist? Use query_function_visibility.ps1 to check. Use query_impact.ps1 to validate comment references to affected functions.gSomeGlobal — does it still exist? Use query_global_ownership.ps1 to check.query_config.ps1 to check.IPC_MSG_SOMETHING — does that message type still exist? Use query_ipc.ps1 to check.Only provably stale findings are high-confidence. Report the others but flag the confidence level.
For comments that make behavioral claims about the surrounding code, read the code and check whether the described behavior still matches.
The skill can verify:
The skill cannot verify:
Comments that survived Phase 1 and Phase 2 without being classified as stale or current. These make claims that require domain knowledge, historical context, or testing to verify.
Instead, present them for human review with context:
Higher priority (more likely stale):
Lower priority (more likely still valid):
All .ahk files in src/ (excluding src/lib/ — third-party code). Focus effort proportionally:
src/core/ and src/gui/ — highest churn, most likely to have stale commentssrc/shared/ — moderate churnsrc/editors/, src/pump/ — lower churn but still worth scanningSplit by directory (run in parallel):
src/core/src/gui/src/shared/src/editors/, src/pump/, src/alt_tabby.ahkEach agent performs Phase 1 (identifier cross-reference) for its file group. Phase 2 (behavioral claims) can run in the same pass — read the comment, read the surrounding code, classify.
After explore agents report back, validate every finding yourself.
For each candidate:
_OldFunc might now be _NewFunc doing the same thing — the comment needs updating, not removal.Section 1 — Provably stale (Phase 1, high confidence):
| File:Line | Comment | Referenced Identifier | Status | Action |
|-----------|---------|----------------------|--------|--------|
| gui_data.ahk:42 | ; see gui_store.ahk for delta logic | gui_store.ahk | File deleted in refactor | Remove or update to current file |
| komorebi_sub.ahk:88 | ; calls _KS_OldProcess() | _KS_OldProcess | Function renamed to _KS_ProcessState | Update reference |
Section 2 — Code contradicts comment (Phase 2, medium confidence):
| File:Line | Comment | What Code Actually Does | Action |
|-----------|---------|------------------------|--------|
| winevent_hook.ahk:55 | ; process in reverse for MRU order | Loop processes forward (for i, item in arr) | Update comment to match current behavior |
Section 3 — Flagged for human review (Phase 3):
| File:Line | Comment | Why Unverifiable | Supporting Evidence |
|-----------|---------|-----------------|-------------------|
| gui_state.ahk:120 | ; Windows sends spurious focus events during workspace switch | OS behavior claim — can't verify from code | MRU suppression logic around this comment suggests the claim is still acted upon |
Order Section 1 and 2 by file (group related stale comments together for efficient batch fixes). Order Section 3 by priority (most likely stale first).
Ignore any existing plans — create a fresh one.
tools
Create a new git worktree and switch the session into it
tools
Spawn agent to trace code flow via query tools — answer only, no context cost
tools
Commit, push, and create a PR for the current branch
tools
Retire a shader by moving its files to legacy/shaders_retired