/clautohotkey:ahk-modernizefrom clautohotkey
Scans AHK v2 scripts and upgrades outdated patterns like `new ClassName()`, `ComObjCreate()`, missing `#Requires`, and bare `=` assignments to current best practices.
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.
Scan an AHK v2 script and upgrade outdated patterns to current best practices.
Apply these transformations in order:
#Requires+ #Requires AutoHotkey v2.1-alpha.30
#SingleInstance Force
Add as first line if missing.
new ClassName() → ClassName()- obj := new MyClass()
+ obj := MyClass()
ComObjCreate() → ComObject()- xl := ComObjCreate("Excel.Application")
+ xl := ComObject("Excel.Application")
Loop, Parse → Loop Parse- Loop, Parse, text, ","
+ Loop Parse, text, ","
Map()- config := {theme: "dark", fontSize: 14}
+ config := Map()
+ config["theme"] := "dark"
+ config["fontSize"] := 14
Only when used as key-value storage, NOT for passing options to functions.
.Bind(this) on event handlers- btn.OnEvent("Click", this.OnClick)
+ btn.OnEvent("Click", this.OnClick.Bind(this))
- handler := (ctrl, *) => {
- this.DoSomething()
- this.DoMore()
- }
+ handler(ctrl, *) {
+ this.DoSomething()
+ this.DoMore()
+ }
= assignment (rare in v2 but happens)- x = value
+ x := "value"
check /Diag=jsonWhat 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