.claude/skills/review-test-coverage/SKILL.md
Find significant gaps in AHK test coverage and propose targeted new tests
npx skillsauth add cwilliams5/Alt-Tabby review-test-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 against existing tests to find significant coverage gaps. Use maximum parallelism — spawn explore agents for independent areas.
Scope: AHK tests only — unit, GUI, live, lifecycle tests in tests/. NOT static analysis pre-gate checks, NOT query tools. This is about missing test coverage, not test quality (see review-test-quality) or test speed (see review-test-speed).
A proposed test must clear ALL of these:
tests/check_*.ps1 before proposing.#Include, not a copy that will drift. Uses code inspection or real production functions.--invasive flag). Must work in automated agentic runs with no user present.test_utils.ahk patterns (_Test_RunSilent, WaitForFlag, cursor/icon suppression). Respects the parallel, timing-critical pipeline.If a gap is better covered by a static analysis check (tests/check_*.ps1) than an AHK test, say so and skip it.
Use query_interface.ps1 on production files to see their public surface. Cross-reference against test #Include directives. Focus on:
Even well-tested modules may miss:
Where two modules interact:
Code areas that have had recent bugs (check git log --oneline -50 for fix commits). If a bug was fixed but no regression test was added, that's a gap worth filling.
--invasive or with proper SKIP logic for missing deps)src/lib/ (third-party code)After explore agents report back, validate every finding yourself. Coverage gaps are easy to propose and hard to justify. Many "untested" functions are actually exercised indirectly through integration tests, or are simple enough that static analysis is sufficient.
For each proposed test:
production_file.ahk lines X–Y" — quote the untested logic. Then "I searched tests/ for any test covering this" — confirm no existing coverage.Group by priority (hot-path gaps > integration gaps > edge cases):
| Production File | Function/Area | Gap Description | Failure Mode | Test Type | Fits In |
|----------------|--------------|----------------|-------------|-----------|---------|
| gui_state.ahk | _HandleEscape during async | No test for escape cancelling pending activation | Stuck overlay after escape | Unit (GUI tests) | tests/gui_tests.ahk |
For each proposed test, include:
#Include from productionOrder by impact: hot-path and state-machine gaps first, 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