/clautohotkey:ahk-reffrom clautohotkey
Loads comprehensive AHK v2 reference covering OOP, GUI, text, errors, and data structures. Use as a general fallback for multi-domain tasks or when no specific AHK skill applies.
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.
When this skill is invoked, pick the modules the task touches and read the large ones by section:
${CLAUDE_PLUGIN_ROOT}/Modules/Module_Instructions.md — the baseline: engineering standards,
syntax rules, the keyword and directive reference, and the diagnostic checklist. Its sections start at <tag>
lines (<ahk_syntax_standards>, <diagnostic_checklist>, <keyword_reference>, ...), not ## headings.${CLAUDE_PLUGIN_ROOT}/Modules/Module_DataStructures.md — Map usage, nested containers, structured data${CLAUDE_PLUGIN_ROOT}/Modules/Supplemental/Module_Formatting.md — the house formatting standard${CLAUDE_PLUGIN_ROOT}/Modules/Supplemental/Module_FatArrows.md — fat-arrow limits, callbacks, .Bind()${CLAUDE_PLUGIN_ROOT}/Modules/Supplemental/Module_JSDOC.md — JSDoc conventions (load when documenting code)${CLAUDE_PLUGIN_ROOT}/Modules/Supplemental/Module_MiniExamples.md — a corpus of official-documentation
examples; grep it for a known-good use of a specific built-in rather than reading it wholeTo read by section, Grep the module for its section starts with line numbers (^## , or
^<[a-z_]+>$ in Module_Instructions.md), then Read each section you need with offset at
its first line and limit up to the next one. No module over 20 KB is read whole.
When the user's request matches specific keywords, also invoke the domain-specific skill:
class, object, inheritance, extends → /ahk-oop
gui, window, dialog, layout, control → /ahk-gui
error, crash, debug, fix, broken → /ahk-fix
string, regex, escape, text, parse → /ahk-text
jsdoc, document, annotate, api docs → load Module_JSDOC.md
ASSIGNMENT: x := value
COMPARISON: if (x = value) or if (x == value) (case-sensitive)
CONCATENATION: str := "a" . "b"
TERNARY: result := condition ? trueVal : falseVal
OBJECT CREATE: obj := MyClass()
MAP CREATE: m := Map(), m["key"] := "value" (never constructor pairs)
ARRAY CREATE: arr := ["a", "b", "c"]
FUNCTION DEF: MyFunc(param1, param2?) { }
FAT ARROW: prop => this.value (SINGLE LINE ONLY)
FOR LOOP: for key, value in collection
INCLUDE: #Include "path/file.ahk" or #Include <LibName>
REQUIRES: #Requires AutoHotkey v2.1-alpha.30
HOTKEY: ^s:: { ... } (Ctrl+S)
HOTSTRING: ::btw::by the way
#Requires AutoHotkey v2.1-alpha.30
#SingleInstance Force
#Include <Array> ; Lib folder includes
class MyApp {
__New() { ... }
__Delete() { ... }
}
MyApp() ; Instantiate at top level
; Settings/config — use Map
settings := Map(
"theme", "dark",
"fontSize", 14,
"autoSave", true
)
; Ordered collection — use Array
items := ["first", "second", "third"]
; NEVER use object literals for data storage
; WRONG: config := {theme: "dark"}
; RIGHT: config := Map(), config["theme"] := "dark"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 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".
npx claudepluginhub truecrimedev/clautohotkey --plugin clautohotkeyOther plugins' skills for the same job