review-blocking

Discover main-thread blocking functions and micro-audit them for optimization.

1|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-blocking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-blocking
Source: https://github.com/cwilliams5/Alt-Tabby/tree/main/.claude/skills/review-blocking
Command: npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-blocking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires query_timers.ps1, query_callchain.ps1, query_function_visibility.ps1, query_function.ps1, query_state.ps1, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and helps optimize functions that unnecessarily block the main thread, leading to a more responsive and performant application.

Core Features & Use Cases

  • Main Thread Blocking Discovery: Automatically finds functions that block the main thread based on defined mechanical criteria (e.g., critical sections, timer callbacks, WinEvent callbacks).
  • Micro-Auditing: Conducts in-depth, isolated audits of identified blocking functions to pinpoint specific optimization opportunities like redundant work, allocation waste, or loop inefficiencies.
  • Use Case: A developer can use this Skill to analyze a performance-critical section of their application, identify functions that are causing UI lag, and receive concrete suggestions for refactoring those functions to improve execution speed without altering their core behavior.

Quick Start

Use the review-blocking skill to discover functions that block the main thread and then micro-audit each for internal optimization opportunities.

Frequently Asked Questions about review-blocking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find functions blocking the main thread in AutoHotkey?

Functions blocking the main thread are discovered using mechanical criteria targeting critical sections, timer callbacks, and WinEvent callbacks within specified source directories like src/core/, src/gui/, and src/shared/.

How do I optimize critical code paths causing UI lag?

Optimize critical code paths by micro-auditing blocking functions to pinpoint redundant work, allocation waste, loop inefficiencies, and DllCall overhead, providing actionable suggestions without altering the function's contract.

What is main thread blocking discovery and when do I need it?

Main thread blocking discovery identifies functions that unnecessarily block the main thread, leading to UI lag. You need it when performance-critical sections of your application become unresponsive.

Can I audit AutoHotkey timer callbacks for allocation waste and loop inefficiencies?

Yes, you can audit timer callbacks and WinEvent callbacks for internal optimization opportunities, specifically targeting allocation waste, loop inefficiencies, and redundant work to improve execution speed.

Does this code review process alter function contracts during optimization?

No, the code review process provides actionable suggestions for refactoring functions to improve execution speed without altering the function's core behavior or contract.

What's the best way to analyze DllCall overhead in critical sections?

Analyze DllCall overhead in critical sections by querying function internals and callchains to identify specific optimization opportunities and reduce execution waste in blocking functions.