.claude/skills/review-static-coverage/SKILL.md
Find gaps in static analysis where new checks could prevent classes of bugs
npx skillsauth add cwilliams5/Alt-Tabby review-static-coverageInstall 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. Deep-review production code patterns to find gaps where static analysis checks (tests/check_*.ps1) could prevent whole classes of bugs. Use maximum parallelism — spawn explore agents for independent areas.
Scope: Static analysis pre-gate checks only. NOT AHK test coverage (see review-test-coverage), NOT query tools, NOT check speed (see review-static-speed).
A proposed check must clear ALL of these:
Standalone checks (complex enough to warrant their own process):
check_warn.ps1 — warn directive enforcementBatch checks (grouped to share file cache and reduce PowerShell overhead):
check_batch_simple.ps1 — lightweight pattern checks (switch globals, IPC constants, DllCall types, IsSet patterns, cfg properties, duplicate functions, dead code detection, config registry integrity, etc.)check_batch_functions.ps1 — function-level checkscheck_batch_directives.ps1 — directive-level checkscheck_batch_guards.ps1 — guard pattern checkscheck_batch_patterns.ps1 — code pattern checkscheck_batch_tests.ps1 — test file checksEnforcement tools (in tools/, run as pre-gate checks):
query_global_ownership.ps1 -Check — ownership manifest enforcementquery_function_visibility.ps1 -Check — private function boundary enforcementExplore the production code for patterns that are:
Categories to investigate:
Critical "On" without matching Critical "Off" on all exit pathsWhen proposing a new check, specify where it fits:
For each proposed check:
file.ahk lines X–Y" — show real code that the check would flag (or correctly skip).| Pattern | Detection Method | False Positive Est. | Placement | Justification |
|---------|-----------------|--------------------|-----------|--------------|
| Missing Critical "Off" on early return | Regex: Critical "On" then return without intervening Critical "Off" | Low — pattern is structural | check_batch_guards.ps1 | Easy to miss during edits, silent corruption |
For each proposed check, include:
Order by value: high-frequency silent bugs first, rare edge cases last.
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