annotate

A command that opens an existing visual explainer, meaning an HTML page that explains something with diagrams or other visuals, in a developer preview. It supports clicking rendered elements to add comments or edit simple text.

In plain words
What is it for?
Use it to review a visual explainer, leave numbered comments on specific elements, or edit headings, labels, and paragraphs.
Why use it?
It makes review and small text corrections possible directly on the rendered page.

Command

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/theclaymethod/artifacture/annotate
Clone the repo
git clone --depth 1 https://github.com/theclaymethod/artifacture
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 362 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.00020 $0.00362
Opus 5 $0.00010 $0.00181
Sonnet 5 $0.00004 $0.00072
Haiku 4.5 $0.00002 $0.00036

Measured yesterday against content hash 610fa8822ef2, 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 yesterday.

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.

plugins/visual-explainer/commands/annotate.md · 34 lines

What it actually says

Annotate a Visual Explainer

Open an existing HTML artifact in the local developer preview. This is a Tier 2 command: it operates on an existing file and has no creative choices, so do not ask clarification questions.

Usage

/annotate <file-path>

If no path is supplied, use the most recently generated artifact from the current task or workspace. Fall back to the most recently modified HTML file in ~/.agent/diagrams/ only when no task-local artifact is available.

Run

node {{skill_dir}}/scripts/preview.mjs <file-path> --no-open

Follow ./references/developer-preview.md exactly: keep the process running, read the local URL from stdout, and navigate the coding agent's integrated preview browser directly to it. Do not ask the user to start the server or open the URL. Do not open preview-shell.html with file://.

The preview provides:

  • Preview — interact with the page normally.
  • Comment — click an exact rendered element, add a note, and immediately continue to the next element. Notes stay numbered and can be copied for a coding agent.
  • Edit text — click a simple heading, label, or paragraph and type directly in the rendered page. Saving writes the owning source when available, rebuilds the artifact, and preserves the current slide; ambiguous matches require confirmation and external changes fail closed. Undo is available for edits made in the current preview process.

The developer shell and bridge are injected only into the served preview. They are never written into the deliverable HTML.

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. yesterday First seen · 34 lines · 20 tokens per session scan A 610fa8822ef2

Subscribe to this mod's changes

annotate is a command published in the GitHub repository theclaymethod/artifacture (2 stars, last pushed 9d ago), licensed MIT. It adds 20 tokens to every session and 362 once invoked, about $0.0001 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-31.