annotate

annotate is a command for coding agents from ncklrs/claude-chrome-user-testing. It costs 31 tokens per session (1,301 once invoked), scanned A, original, MIT.

A browser command that marks page elements with boxes, highlights, or numbered callouts and captures a screenshot.

In plain words
What is it for?
Use it on a loaded browser page to annotate a selected element, choose an annotation style and color, add a label, and save the screenshot.
Why use it?
It makes interface problems or confusing areas easier to point out during user testing.

Command

Part of the user-testing-agent plugin — 14 skills, 10 commands shipped together

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.

agentmods
npx agentmods add commands/ncklrs/claude-chrome-user-testing/annotate
Clone the repo
git clone --depth 1 https://github.com/ncklrs/claude-chrome-user-testing

Or install user-testing-agent, the plugin that ships this one along with the rest of its 14 skills, 10 commands.

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 annotate

README.md
[![agentmods](https://agentmods.dev/badge/commands/ncklrs/claude-chrome-user-testing/annotate.svg)](https://agentmods.dev/commands/ncklrs/claude-chrome-user-testing/annotate)
Your own site
<a href="https://agentmods.dev/commands/ncklrs/claude-chrome-user-testing/annotate"><img src="https://agentmods.dev/badge/commands/ncklrs/claude-chrome-user-testing/annotate.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00031 $0.01301
Opus 5 $0.00015 $0.00651
Sonnet 5 $0.00006 $0.00260
Haiku 4.5 $0.00003 $0.00130

Measured 3d ago against content hash 6546c7806870, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

annotate 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 3d 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.

commands/annotate.md · 199 lines

How it starts

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

Annotate Command

Add visual annotations to the current browser page and capture an annotated screenshot.

Arguments

Parse the following from $ARGUMENTS:

  • --element <selector> (required): CSS selector or description of the element to annotate
  • --type <type> (optional): Annotation type - box, highlight, or callout (default: box)
  • --color <color> (optional): Color - red, orange, green, blue (default: red)
  • --style <style> (optional): Border style - solid or dashed (default: solid)
  • --label <text> (optional): Label text to display above the annotation
  • --number <n> (optional): Callout number (for callout type)
  • --filename <name> (optional): Screenshot filename (default: annotated-{timestamp}.png)

Prerequisites

This command requires:

  1. Claude running with --chrome flag
  2. A page already loaded in the browser

If no page is loaded, inform the user:

No page is currently loaded. Navigate to a URL first with:
  browser_navigate to https://example.com

Annotation Flow

Step 1: Find Target Element

Use browser_snapshot to get the current page accessibility tree. Find the element matching the user's description or selector.

If using a CSS selector:

  • Try to match directly
  • If not found, suggest alternatives

If using a description (e.g., "submit button"):

  • Search the snapshot for matching elements
  • Look for buttons, links, or inputs with matching text/labels

Step 2: Get Element Position

Use browser_evaluate to get the element's bounding box:

Get the bounding rectangle of the element matching: [selector]
Return: { x, y, width, height } in page coordinates

Step 3: Create Annotation Overlay

Use browser_evaluate to create the annotation container:

  • Create a div with id "uta-overlay"
  • Position it absolutely over the page
  • Set pointer-events to none
  • Set z-index to 99999

Step 4: Add Annotation

Based on the --type argument:

Box (default):

  • Create a div with colored border
  • Position at element coordinates
  • Add label if provided
  • Use dashed border if --style dashed

Read the full file on GitHub · 199 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. 3d ago First seen · 199 lines · 31 tokens per session scan A 6546c7806870

Subscribe to this mod's changes

annotate is a command published in the GitHub repository ncklrs/claude-chrome-user-testing (19 stars, last pushed 7mo ago), licensed MIT. It adds 31 tokens to every session and 1,301 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-08-30.