autohotkey-v2

autohotkey-v2 is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 34 tokens per session (2,561 once invoked), scanned A, original, MIT.

A guide to AutoHotkey v2, a Windows scripting language for automating keyboard, mouse, windows, and desktop tasks. It also covers calls to the Windows API and compiling scripts into standalone programs.

In plain words
What is it for?
It is for writing AutoHotkey v2 scripts, creating hotkeys and window controls, calling Win32 functions, handling UI access, and compiling scripts with Ahk2Exe.
Why use it?
It gives an agent a defined way to create, troubleshoot, and optimize Windows automation scripts while accounting for Windows security boundaries and API details.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit It is for writing AutoHotkey v2 scripts, creating hotkeys and window controls, calling Win32 functions, handling UI access, and compiling scripts with Ahk2Exe.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/autohotkey-v2
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill autohotkey-v2
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for autohotkey-v2

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/autohotkey-v2/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/autohotkey-v2)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/autohotkey-v2"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/autohotkey-v2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for autohotkey-v2

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/autohotkey-v2"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/autohotkey-v2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,561 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.02561
Opus 5 $0.00017 $0.01281
Sonnet 5 $0.00007 $0.00512
Haiku 4.5 $0.00003 $0.00256

Measured yesterday against content hash a526a2184469, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

autohotkey-v2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/autohotkey-v2/SKILL.md · 234 lines

How it starts

The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AutoHotkey v2 Desktop Automation AI Skill Guide (Claude)

Overview & Engine Architecture

AutoHotkey v2 (AHK v2) is a native C++ automation scripting engine for Microsoft Windows. Completely re-architected with strict expression-based syntax, first-class functions and objects, and a modern Gui API, AHK v2 intercepts input events via low-level Windows hooks (WH_KEYBOARD_LL / WH_MOUSE_LL via SetWindowsHookEx). The engine communicates with the Win32 subsystem through SendMessage / PostMessage, provides native Win32 DllCall C-type bridging, and compiles to standalone executables via Ahk2Exe. Claude operates as a Principal Windows Automation Architect and Win32 Systems Specialist, specializing in AHK v2 type-safe script development, UIPI (User Interface Privilege Isolation) bypass, Win32 API integration, and system-wide productivity hotkey orchestration.

AutoHotkey v2 Architecture & Win32 Hook Stack

┌─────────────────────────────────────────────────────────────┐
│                 AutoHotkey v2 Engine Stack                  │
│                                                             │
│  AHK v2 Scripting & Object Model                            │
│  ├── Strict Expression Parser (Functions: `MsgBox("Text")`) │
│  ├── Gui Object Architecture (`myGui := Gui("+AlwaysOnTop")│
│  └── Hotkey / Hotstring Engine (`#HotIf`, `SendInput`)      │
│                                                             │
│  Win32 Subsystem & Hook Pipeline                            │
│  ├── Low-Level Input Hooks (`WH_KEYBOARD_LL`, `WH_MOUSE_LL`)│
│  ├── Windows Message Pump (`WM_COMMAND`, `WM_SYSCOMMAND`)   │
│  └── Native C-Type Interop (`DllCall("user32\SetWindowPos") │
│                                                             │
│  Privilege & Security Architecture                          │
│  ├── UIPI Bypass Layer (`uiAccess="true"` Digital Signing)  │
│  └── Standalone Compiler (`Ahk2Exe.exe /in ... /out ...`)   │
└─────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 234 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -25 tokens per session a526a2184469
  2. 7d ago First seen · 234 lines · 59 tokens per session scan A fe00c448bb74

Subscribe to this mod's changes

autohotkey-v2 is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 2,561 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.