/clautohotkey:ahk-guifrom clautohotkey
Loads AHK v2 GUI knowledge for window creation, layout, controls, events, and dark mode. Useful when creating or modifying GUIs, positioning controls, handling events, or applying themes.
Ships in clautohotkey. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
${CLAUDE_PLUGIN_ROOT}/Lib/_Dark.ahk is the bundled dark-mode library and its own
worked example — class EnhancedDarkApp at the top of the file shows the canonical
shape of a GUI in this project:
source "${CLAUDE_PLUGIN_ROOT}/hooks/_harness-env.sh"
"$AHK_BIN_WSL" "$(wslpath -w "${CLAUDE_PLUGIN_ROOT}/Lib/_Dark.ahk")"
Read it before writing a new GUI: __New → InitializeGui → SetupControls →
Show, controls held in a Map(), every handler bound with .Bind(this). Match that
structure rather than inventing one.
Usage is wrap-then-add — build a normal Gui(), wrap it, then add controls through
the wrapper so they are themed on creation:
myGui := Gui()
dm := _Dark(myGui) ; dark title bar, background, menus
dm.AddDarkButton("w120", "Save")
dm.AddDarkEdit("w200")
dm.AddDarkComboBox("w200", ["One", "Two"])
For a fuller control set — themed ListView, TreeView, tabs, DatePicker, MonthCal and theme presets — see the standalone DarkMode library, which is not bundled here.
Read when the showcase doesn't cover what you need:
${CLAUDE_PLUGIN_ROOT}/Modules/Module_GUI.md — the whole GUI domain: constructor, control
types, event binding, the Positioning Options table, gForm(), dependency injection, the form-field component
system and field validation. Layout work lives in TIER 3 to TIER 6; ListView and TreeView in TIER 2.Read a module by section, not whole. Every module opens with API QUICK-REFERENCE and
AHK V2 CONSTRAINTS and closes with ANTI-PATTERNS; read those, then only the TIER
sections the task needs. To find them, Grep the module for ^## with line numbers and
Read each section with offset at its heading and limit up to the next one.
Controls get computed absolute coordinates, never implicit stacking. Unmanaged chaining accumulates drift and produces overlaps that surface only on resize.
margin := 10, spacing := 10, currentY := margin, windowWidth := 650
; after every control:
currentY += controlHeight + spacing
; side-by-side:
leftW := (windowWidth - margin * 2 - gap) / 2
OnSize must reposition every control from the width/height params — a
handler that moves only some of them is the most common GUI bug in this
codebase. Clamp minimum dimensions so nothing collapses to zero.
+0x200 on a Text control is SS_CENTERIMAGE — vertical centering.AddUpDown("Range1-5000", initial) attaches to the preceding Edit control.lv.Modify(row, "", col1, ..., colN) updates a ListView row in place.General v2 syntax — .Bind(this), Map(), Gui() instantiation, class
encapsulation — is covered by the auto-loading ahk-v2-syntax.md rule, already
in context whenever you edit an .ahk file.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub truecrimedev/clautohotkey --plugin clautohotkey19 skills in this plugin
/ahk-audit-errorsAudit AHK v2 code for silent failures and inadequate error handling. Hunts for empty catch blocks, swallowed errors, broad bare-catches that hide unrelated failures, and fallbacks that mask problems from the user. TRIGGER when: user says "audit errors", "check error handling", "find silent failures", "review error handling", "scan for swallowed errors", "empty catch blocks", "/ahk-audit-errors".
/ahk-comCOM automation and interop for AHK v2 — driving Excel / Word / WMI / Internet Explorer via IDispatch, COM events, ComValue / SafeArrays, and direct vtable ComCall. Use when automating another application, wiring COM events, or calling a COM interface. TRIGGER when: user says "automate Excel/Word", "COM object", "ComObject", "ComCall", "WMI query", "COM event", "IDispatch", "SafeArray", "ComValue", "VARIANT". Examples: "automate Excel from AHK", "query WMI for processes", "hook IE navigation events"
/ahk-convertConvert AHK v1 code to AHK v2. Applies comprehensive v1-to-v2 conversion rules including command syntax, expression changes, GUI rewrites, and object model updates. TRIGGER when: user says "convert to v2", "v1 to v2", "upgrade script", "migrate from v1", "convert this old script", "make this v2".
/ahk-debug-dashboardShow a compact debug state dashboard during an active debugging session. Queries MCP resources for connection status, breakpoints, variables, and call stack. TRIGGER when: user says "debug dashboard", "show debug state", "debug status", "what's the debugger showing", "debug overview".
/ahk-dllcallNative calls and raw memory for AHK v2 — DllCall to Windows/native APIs, Buffer + NumGet/NumPut for structs, StrPut/StrGet, CallbackCreate, and the alpha.30 typed Struct. Use when calling a DLL/WinAPI function, building or reading a struct, or passing a callback to native code. TRIGGER when: user says "DllCall", "call a Windows API", "Buffer", "NumPut/NumGet", "struct", "pointer", "CallbackCreate", "StrGet/StrPut", "marshal", "user32/kernel32". Examples: "call GetCursorPos", "build a RECT struct", "pass a callback to EnumWindows"
/ahk-docsSearch AHK v2 documentation for a function, method, directive, or concept. Returns relevant documentation excerpts with syntax and examples. TRIGGER when: user says "docs for", "how does X work in AHK", "AHK docs", "look up", "what is the syntax for", "documentation".
Other plugins' skills for the same job