/clautohotkey:ahk-gui-genfrom clautohotkey
Generates complete AHK v2 GUIs from natural language descriptions. Creates class-based, mathematically positioned windows with proper event binding and validation.
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.
Generate complete, production-quality GUIs from natural language descriptions.
/ahk-gui skill to load GUI module knowledge${CLAUDE_PLUGIN_ROOT}/Modules/Module_GUI.md that /ahk-gui did not already
load and this layout needs: TIER 4 — Mathematical Layout System for computed positions, TIER 7 for
gForm(), TIER 9 and TIER 10 for form fields and validation. Grep ^## with line numbers to find them.check /Diag=json${CLAUDE_PLUGIN_ROOT}/Tools/CaptureWindow.ahk —
AutoHotkey64.exe Tools/CaptureWindow.ahk <pid|wintitle> [outPng] [zoom] [print|screen]
(print mode works occluded; screen mode shows exact pixels incl. GetDC overpaints).
Read the PNG to verify layout, then close the GUI.#Requires AutoHotkey v2.1-alpha.30
#SingleInstance Force
class <AppName> {
static margin := 10
static spacing := 10
__New() {
this.gui := Gui("+Resize", "<Window Title>")
this.gui.BackColor := "0x1a1a2e"
this.gui.SetFont("s10 c0xe0e0e0", "Segoe UI")
this.BuildControls()
this.gui.OnEvent("Close", this.GuiClose.Bind(this))
this.gui.OnEvent("Size", this.OnSize.Bind(this))
this.gui.Show("w<width> h<height>")
}
BuildControls() {
m := <AppName>.margin
s := <AppName>.spacing
w := <width> - m * 2
currentY := m
; Controls with mathematical positioning
this.gui.AddText("x" . m . " y" . currentY . " w" . w . " h25", "Label")
currentY += 25 + s
this.editCtrl := this.gui.AddEdit("x" . m . " y" . currentY . " w" . w . " h100")
currentY += 100 + s
btnW := 100
btnX := <width> - m - btnW
this.gui.AddButton("x" . btnX . " y" . currentY . " w" . btnW . " h30", "OK")
.OnEvent("Click", this.OnOK.Bind(this))
}
OnSize(guiObj, minMax, width, height) {
if minMax = -1
return
; Reposition ALL controls based on new dimensions
}
OnOK(*) {
; Handle button click
}
GuiClose(*) {
ExitApp()
}
__Delete() {
if this.HasProp("gui") && this.gui
this.gui.Destroy()
}
}
<AppName>()
currentY += height + spacing after every control.Bind(this)__Delete() cleans up the GUI#Requires and #SingleInstance at top<AppName>()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