Delegate work to Hank, a coding agent that runs a local LLM on this machine (free to run, slower and less able than you), then review what it did. Use it for work whose result is much longer than its description (a new module with its tests, a report, a script that makes data or media), for data that must stay on this machine, or when the user asks for the local model.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Handy Hank?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fr3nky88-handy-hank)
---
name: handy-hank
description: Delegate work to Hank, a coding agent that runs a local LLM on this machine (free to run, slower and less able than you), then review what it did. Use it for work whose result is much longer than its description (a new module with its tests, a report, a script that makes data or media), for data that must stay on this machine, or when the user asks for the local model.
---
# Handy Hank
Hank is your worker. You write a spec: the goal and the checks that prove it. Hank does the work with a local model,
runs the checks itself, and prints a short report. You review the result.
## When to delegate
Measured on 9 tasks with Claude Opus 5.5 as the foreman and inkling-2-mini, a small local model, as Hank. Every
result passed the same hidden checks, delegated or not (docs/EVIDENCE.md, "The A/B"):
- **Delegate work whose result is much longer than its description.** On the largest task (a module of six functions
with its tests, about 300 lines) the foreman generated half the output tokens (50% and 51% fewer), for 18-60% more
input tokens read.
- **Make small changes yourself.** For a fix of a few lines the spec, the wait and the review outweigh the fix: on a
small bug fix the foreman generated 27-42% more tokens delegating and read 68-82% more. Over the 9 tasks, delegating
saved 3% of the output tokens from a fresh session and 14% deep in a long one, and the foreman read 88% and 9% more.
- **What you save is the code you do not write.** A spec that spells the code out costs what writing it does: on a
refactor whose spec described each function, the foreman's output fell only 4-11%.
- **Not a long text whose every claim you must check.** On a README of 412 lines (one task measured) the spec, its
checker and the review of the facts took the foreman as many output tokens as Hank generated.
- **Hank is slower:** 5 to 8 times the foreman's own time on these tasks. Run it in the background and do something
else meanwhile, or delegate when time does not matter.
- **Data that must not leave this machine:** Hank's model runs here, so the data need not pass through you. Describe
the task without reading or pasting the data.
## How
Before the first run on a machine, after a change of model or server, or when a run pauses on a server error or the
sandbox, run `hank doctor`: it probes the model and checks the machine, with a fix for each problem.
1. Write the spec in YAML, outside the work folder:
```yaml
title: a short name
repo: /absolute/path/of/the/work/folder
goal: |
The result and the constraints: the files, what they must do, what must not change.
checks: # each must exit 0; Hank runs them and cannot finish while one fails
- name: tests
cmd: python3 -m unittest -q
- name: lint # when style matters: Hank's code passes the checks but has more style issues than yours
cmd: ruff check .
```
Optional fields:
- `steps:` splits a long task into steps, each with its own `goal` and `checks`, done one at a time. Hank sees
only the first line of a later step's goal, so make that line a summary of the step.
- `outputs:` lists files that must exist and not be empty.
- `readable_dirs:` lists folders of the user's home the task may read: the sandbox hides the rest of the home.
- `private: true` for data that must not leave the user's network: no network, and only local models. Put the
names of variables the task needs but you must not see in `secrets: [NAMES]`; you read `[secret NAME]`.
`network: false` alone closes the network.
- `context_files:` lists files to show Hank at the start.
- `topics:` picks lessons, such as `video`, `3d`, `data`, `docs` or `research`.
- `worktree: true` makes Hank work in a new git worktree and branch, which is safe for a real repository.
- `commit: true` commits when the task is done.
A value that contains `: ` must be quoted or written as a block (`|`).
2. `hank run spec.yml` runs until Hank finishes or pauses, usually 1 to 15 minutes, then prints the report.
- Exit code 0: done.
- Exit code 3: paused for you. This happens on a question, at the end of the step budget, on a stall or on a
server error. The report says why and what you can do.
- If the model server is down (the report says MODEL SERVER ERROR, or `hank doctor` fails on the model), ask the
user whether to wait for it and resume, or to do the task yourself.
- `hank watch <id>` follows a run.
3. If the run is paused, reply with `hank resume <id> "your answer or instructions"`.
4. Review what the checks cannot see: read `git diff` for scope, files the task did not ask for, and behaviour.
5. Record your review with `hank verdict <id> pass|fail "note"` as soon as it is done: the time from the run's end
to the verdict is the review, and `hank stats` shows its minutes and your tokens. `hank stats --card` shows each
model's record.
6. When you correct something likely to recur, run `hank lesson <topic> "one fact"`.
By default Hank works in a sandbox (bubblewrap on Linux, sandbox-exec on macOS) that hides the user's home but for its
toolchains, hides credentials and gives the commands no API keys, and it is told never to push, deploy or
send data to services.