---
name: review-static-speed-80c854ad49c0
description: Review static analysis checks for runtime optimization opportunities
user-invocable: true
disable-model-invocation: true
---
Enter planning mode. Investigate static analysis runtime and find optimization opportunities.

1. Run `.\tests\test.ps1 --timing` to get the timing report. Identify the most time-consuming checks.
2. For each check, investigate the implementation for potential optimizations. Optimizations must be **internal only** — no change to output, function, or contract of the checker.
3. Consider these optimization vectors:
   - Should any standalone checks be batched together to reduce PowerShell overhead?
   - Can existing batches share a single file cache across sub-checks?
   - Should any checks move between batches for better cache locality?
   - Should any batch sub-check be broken out to standalone (if it's an outlier)?
   - Any other internal speedups (regex precompilation, pipeline vs loop, etc.)?
4. For each recommendation, include an analysis statement explaining why it's internal-only and doesn't change the checker's job or contract.

Research the production code and static analysis deeply. Write a plan for all optimizations found. Ignore any existing plans — create a fresh one.

Include in the plan a verification step - Run timing comparison (before vs after) each change. Theoretical changes have provably been hidden regressions. Validate. 

---
Source attribution: cwilliams5
Original project: https://github.com/cwilliams5/Alt-Tabby/blob/6e941fe6d8344facc4f24c373f41999ff6da4c04/.claude/skills/review-static-speed/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 Cody Williams

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: cwilliams5
Original project: https://github.com/cwilliams5/Alt-Tabby/blob/6e941fe6d8344facc4f24c373f41999ff6da4c04/.claude/skills/review-static-speed/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, DevOps / SRE, QA / Test Engineer
Specialties: Backend, Testing
Tools: Powershell
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: bbd85eab3d55de0d29a23b008aa1d6cbba2c6da692f9525653433874489b1ac6
