codehydra: Skill for Claude Code

.claude/skills/appctrl/SKILL.md

appctrl is a skill for Claude Code from stefanhoelzl/codehydra. It costs 54 tokens per session (913 once invoked), scanned A, original, MIT.

A command-line tool for launching and controlling a running desktop app through Playwright, a browser-automation library. It can take screenshots, inspect the app's accessibility tree, send input, and show renderer logs.

In plain words
What is it for?
Use it to start and stop the app, inspect views, reproduce UI problems, verify interface changes, take screenshots, and read console or app logs.
Why use it?
It lets you check a UI in the real running app instead of relying only on source code or unit tests.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions OpenCode.

This is stefanhoelzl/codehydra's own configuration. It tells Claude Code how to work on codehydra 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 codehydra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to stefanhoelzl/codehydra. 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/stefanhoelzl/codehydra/main/.claude/skills/appctrl/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/stefanhoelzl/codehydra

Made for: Claude Code.

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 appctrl

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/stefanhoelzl/codehydra/appctrl"><img src="https://agentmods.dev/badge/skills/stefanhoelzl/codehydra/appctrl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 913 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.00054 $0.00913
Opus 5.5 $0.00022 $0.00365
Sonnet 5.5 $0.00011 $0.00183
Haiku 4.5 $0.00005 $0.00091

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

Security

Grade A, and why

appctrl 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 4d 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.

.claude/skills/appctrl/SKILL.md · 44 lines

How it starts

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

AppCtrl: drive the running app

pnpm -s appctrl <command> (scripts/appctrl.ts) launches and drives this worktree's app. start spawns a background daemon that owns the app and exits with it; every other command talks to it over HTTP on 127.0.0.1. One app per worktree.

Before a first session, run pnpm -s appctrl guide (views, selectors, shadow DOM, the sidebar, recipes). --help lists commands, <command> --help their flags.

Everything lands in ./app-data: logs/, screenshots/, appctrl-console.jsonl, appctrl-daemon.log.

Commands

Command Does
start [--headed] [--packaged <exe>] [-- <flag>…] Launch (headless by default; needs pnpm build), return once the UI is up
stop / status Quit through the app's shutdown path / is one running
screenshot [-t <view>] Write a PNG to ./app-data/screenshots/, print the path: then Read it
dom [selector] Accessibility tree as YAML: find selectors here first
click <sel> / key <combo> Trusted input (key Control+Shift+p)
type <text> [--selector <sel>] Type into the focused element (or fill a selector)
wait-for <sel> [--state <s>] [--timeout <ms>] Wait until visible (or attached/detached/hidden); default 10000 ms
eval <code | -> Evaluate an expression (- = stdin), result as JSON
expand-sidebar Open the sidebar and wait until it is clickable
dialog <path>… Make the folder picker return these paths
resume Emit powerMonitor resume (the app:resume path)
targets List the UI page and workspace iframes as JSON
console [--level <l>] [--clear] Renderer console since start (last 500); works after the app is gone
logs [--scope <s>] [--level <l>] [--limit <n>] App log, newest first; needs no running app

Read the full file on GitHub · 44 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. 4d ago First seen · 44 lines · 54 tokens per session scan A 4d6b9a0288f4

Subscribe to this mod's changes

appctrl is a skill published in the GitHub repository stefanhoelzl/codehydra (20 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 913 once invoked, about $0.0002 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-26.