/ainotate:ainotatefrom AInotate
Creates annotated screenshots with numbered callouts for explaining UI locations, reporting visual bugs, writing tickets, and documenting before/after changes. Activates when spatial descriptions would be needed.
Ships in AInotate. 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.
Read when SKILL.md points to them.
Show, don't describe: an annotated screenshot plus short text that refers to the marks by number. Plain-text or code answers: skip it.
CLI ainotate (fallback python -m ainotate); ainotate doctor checks the machine. Every spec
option: references/spec.md. Exit codes: 2 bad spec, 3 cannot draw, 4 capture failed or a
dependency is missing (the message says what to install), 5 text matches several places (ask
which, or pass nth), 6 target not found (closest text listed). Fix the spec, never work around.
| Source | How |
|---|---|
| Public web page | ainotate shoot spec.json: capture, find targets, redact, annotate, save |
| Logged-in page | the same spec with "cdp_url" + "page_url_contains" (user's running browser). Read references/browsers.md for every browser surface |
| User's screenshot | their file; clipboard: ainotate clipboard |
| Desktop app | ainotate windows <app>, then ainotate window <id> (macOS: add --target for exact control boxes, below); ainotate screen |
Never move or resize the user's windows; capture and crop.
The image you see when you Read a file is downscaled; positions read off it are wrong.
"target" on each mark (shoot resolves it), or ainotate capture URL --target save='{"text": "Save"}' for rects in CSS px plus the scale. Targets: {"text"},
{"selector"}, {"role", "name"}, optional within, nth, exact.ainotate window <id> --target allow='{"element": "Allow", "role": "button"}' returns rects in window points plus the scale (Accessibility; exact even for
icons). ainotate elements --app "System Settings" lists the labels it can match.ainotate locate img.png "Save" (OCR), or "target": {"text": "Save"}.ainotate grid img.png, then ainotate zoom img.png x1 y1 x2 y2 (fine grid in source
px; one zoom per element, under ~500px wide). ainotate info img.png gives the real size.Units, one rule: every coordinate (rect, crop, label_at, at, pad) is in one unit;
scale converts it to image pixels. DOM rects: dicts {x,y,w,h} with the returned scale.
OCR/grid/zoom pixels: lists [x1,y1,x2,y2] with scale: 1. Never mix.
{"url": "https://news.ycombinator.com", "name": "hn header",
"marks": [
{"type": "step", "n": 1, "target": {"text": "new", "exact": true}, "label": "Newest"},
{"type": "step", "n": 2, "target": {"text": "login"}, "label": "Sign in"}]}
ainotate shoot spec.json --draft. "actions" (click, fill, wait, scroll_to) run
before measuring, e.g. to open a menu. Existing image: same marks with "rect", plus "input"
and "scale", then ainotate annotate spec.json --draft. Presets: laptop, wide, phone.
| type | use |
|---|---|
step | numbered badge + outline; n matches your text |
box | "this thing", with a label |
arrow | label pointing at a target, no outline |
click / keys | click ripple / keycaps like ["⌘", "K"] |
magnify | loupe that enlarges a small control |
highlight / spotlight / text | tint / dim the rest / free note |
redact | solid block for anything sensitive |
blur / pixelate | decorative only; secrets always redact |
Placement: leave labels to the engine. It puts each label in free space near its target,
plans all labels together and curves arrows around text; it covers text only when the frame has
no room, and then warns. Fix that warning by widening the crop toward empty space (margins,
gutters) or shortening the label; use label_at only as a last resort, and never onto text.
Crop: findable in 2 seconds. "auto" (default) frames the marks; an explicit crop when a
landmark matters (header, sidebar) and always when redacting. Far-apart marks: one image each.
Frame (guides, docs): "frame": {"chrome": "browser", "bg": "ocean"}; tickets stay plain.
Privacy: shoot redacts emails, phones, cards, keys, tokens and password fields by default;
on images only with "privacy": "auto" (OCR). Best-effort: you still verify.
Colors: look orange (default), bad red (only wrong/bug), good green, info blue.
Max 6 marks, labels 1-4 words in the audience's language, UI text quoted verbatim. User's own
marks: keep them, use a color they did not, say which are yours.
Read the output image. Each mark sits on its element, labels and arrows do not cover text that
matters, and no sensitive data shows anywhere in the frame, marked or not. --debug draws
the exact rects (cyan) and label boxes (magenta). Fix and rerun; then save without --draft.
Saves go to the output folder (default ~/Pictures/AInotate), never overwriting; --copy also
puts the image on the clipboard.
ainotate guide steps.json.
Before/after: ainotate compare a.png b.png. Flows: ainotate animate (APNG or GIF).box the whole row, label beside it via label_at, "arrow": false.label_at into empty space next to its own target. Crossing arrows confuse more than they help.<input> or icon.look.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dontpayfull/ainotate --plugin ainotateOther plugins' skills for the same job