ergopti: Skill for Claude Code

.agents/skills/ahk-driver/SKILL.md

ahk-driver is a skill for Claude Code, Codex from adrienm7/ergopti. It costs 30 tokens per session (1,093 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing AutoHotkey v2 files, the Windows automation scripts used by this driver. It covers file encoding, string syntax, and safe access to missing map entries.

In plain words
What is it for?
Use it when editing any .ahk file, checking UTF-8 encoding and quoting, or reviewing lookups and other AutoHotkey-specific code.
Why use it?
It avoids parse failures and runtime errors that can make tests appear to vanish or cause the automation script to stop unexpectedly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is adrienm7/ergopti's own configuration. It tells Claude Code and Codex how to work on ergopti itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ergopti configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adrienm7/ergopti. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/adrienm7/ergopti/main/.agents/skills/ahk-driver/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/adrienm7/ergopti

Made for: Claude Code, Codex.

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 ahk-driver

README.md
[![agentmods](https://agentmods.dev/badge/skills/adrienm7/ergopti/ahk-driver/github.svg)](https://agentmods.dev/skills/adrienm7/ergopti/ahk-driver)
Your own site
<a href="https://agentmods.dev/skills/adrienm7/ergopti/ahk-driver"><img src="https://agentmods.dev/badge/skills/adrienm7/ergopti/ahk-driver/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 ahk-driver

Your own site · 80×15
<a href="https://agentmods.dev/skills/adrienm7/ergopti/ahk-driver"><img src="https://agentmods.dev/badge/skills/adrienm7/ergopti/ahk-driver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 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.00030 $0.01093
Opus 5.5 $0.00012 $0.00437
Sonnet 5.5 $0.00006 $0.00219
Haiku 4.5 $0.00003 $0.00109

Measured 15d ago against content hash e3f2131c6872, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ahk-driver 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 15d ago.

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.

.agents/skills/ahk-driver/SKILL.md · 114 lines

How it starts

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

AutoHotkey v2 foot-guns

Universal code rules live in AGENTS.md; the strict convention lint is the formatting authority. This skill covers only the language semantics that have caused real bugs here — every item below is a bug we actually shipped.

Encoding — non-negotiable

Every .ahk file is UTF-8 with BOM + LF. Never write one with a tool that strips the BOM or rewrites line endings (cat >>, some shell redirects). Verify with npm run test:ahk-encoding.

Failure signature: a mid-file parse abort. The runner exits with no results file at all, which reads as "the tests vanished" rather than "the tests failed". If a suite produces nothing, suspect encoding first.

The escape character is the backtick, not the backslash

Inside a double-quoted string, a literal quote is `". \" is invalid and aborts the parse with the same silent signature as above. "" is AHK v1 syntax and is also wrong.

Simplest defence when embedding quotes: use a single-quoted AHK string.

Assert(InStr(Src, 'Features["hotstrings"]') > 0, "…")   ; clean

Map[missing_key] throws

Reading an absent key raises. Any lookup on a key that is not guaranteed present must use .Get(key, default) or be guarded by .Has(key).

if (!Features.Has(id))          ; guard
Features["x"].Get(id, false)    ; or default

This was the single most common finding class in the 2026-07-20 audit (F43 alone covered 30 leaf reads).

IsSet() before dereferencing a pre-pump global

Globals seeded in ErgoptiPlus.ahk's pre-pump block do not exist yet during early boot, and never exist at all under the headless test harness, which loads lib/ and adapters/ but not ErgoptiPlus.ahk.

if !IsSet(Features)
    return false

When you add a pre-pump global that library code reads, mirror it in tests/test_stubs.ahk — otherwise you break the suite with an unset-global error far from your change. (This is exactly how F14 broke 10 hotstring tests.)

Read the full file on GitHub · 114 lines

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. 15d ago First seen · 114 lines · 30 tokens per session scan A e3f2131c6872

Subscribe to this mod's changes

ahk-driver is a skill published in the GitHub repository adrienm7/ergopti (14 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,093 once invoked, about $0.0001 per session on Opus 5.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-10-14.

Related

Other skills, from other repositories

dotnet-reverse

A guide for analyzing compiled .NET and C# programs, including managed Windows executables and libraries. Reverse engineering means studying compiled software to understand how it works, and decompiling turns it back into readable approximate source code.

zhaoxuya520/reverse-skill · 144 tokens

dart-run-static-analysis

Execute dart analyze to identify warnings and errors, and use dart fix --apply to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.

flutter/agent-plugins · 43 tokens

agents-sdk-dotnet-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…

microsoft/Agents · 136 tokens

memory-optimization

Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory…

benchflow-ai/skillsbench · 60 tokens

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens

golang-error-handling

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log…

samber/cc-skills-golang · 144 tokens