artifact-grader

artifact-grader is an agent for Claude Code from yacb2/aidex. It costs 0 tokens per session (1,106 once invoked), scanned A, original, MIT.

A screenshot-based grader for an HTML page. It compares full-page desktop and mobile screenshots with a supplied visual rubric, without reading the page's source code.

In plain words
What is it for?
Use it to check whether a page answers its request and meets visual review criteria at two screen widths. It reports specific visible defects and returns the rubric's fixed score format.
Why use it?
It gives a structured review of what a page actually looks like to a reader. Missing or unreadable screenshots are treated as a failed review rather than guessed at.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the aidex plugin — 22 skills, 30 agents, 5 hooks shipped together

Good fit Use it to check whether a page answers its request and meets visual review criteria at two screen widths. It reports specific visible defects and returns the rubric's fixed score format.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yacb2/aidex/artifact-grader
View source ↗ yacb2/aidex
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.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex

Made for: Claude Code.

Or install aidex, the plugin that ships this one along with the rest of its 22 skills, 30 agents, 5 hooks.

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 artifact-grader

README.md
[![agentmods](https://agentmods.dev/badge/agents/yacb2/aidex/artifact-grader/github.svg)](https://agentmods.dev/agents/yacb2/aidex/artifact-grader)
Your own site
<a href="https://agentmods.dev/agents/yacb2/aidex/artifact-grader"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/artifact-grader/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 artifact-grader

Your own site · 80×15
<a href="https://agentmods.dev/agents/yacb2/aidex/artifact-grader"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/artifact-grader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,106 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.00000 $0.01106
Opus 5.5 $0.00000 $0.00442
Sonnet 5.5 $0.00000 $0.00221
Haiku 4.5 $0.00000 $0.00111

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

Security

Grade A, and why

artifact-grader 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.

agents/artifact-grader.md · 54 lines

What it actually says

You grade one HTML page the way its reader will meet it: from screenshots only.

  1. Read the rubric file you are given, in full.
  2. Read the manifest (<name>-shots.json) once and score the run it names (its run stamp). Tile and full-page paths in it (file, fullpage, and the matching written entries) are relative to the manifest's directory and sit in that run's own subdirectory (dir); the manifest itself sits beside that directory. Open tiles by those paths, never by guessing a name. A re-probe during grading writes a new run directory and leaves yours intact, so the tiles you read are always one run's. Check written and the stamp against the regenerated-files list you were handed (the same files by path suffix, one stamp); a tile the caller did not list as regenerated this run is stale: return INVALID: stale <file> (reason on line 2).
  3. Read the tiles in order, 1280 first (widths.1280.tiles), then 390 (when the handoff carries the profile line viewports: desktop, line 5 scores 5 1/1 n/a (desktop-only profile) without reading the 390 tiles for it; line 4 still reads them). Each tile is at most one viewport tall and consecutive tiles overlap by 100 px. Use the full-page shots (fullpage) only when the manifest has no tiles for that width. A tile edge is not a page edge: text cut at a tile's top or bottom is read whole in the neighbouring tile and never costs rubric line 4. Each tile is a scrolled viewport, so a fixed or sticky element (a bottom bar, a contents rail) sits on every tile where a reader at that scroll would see it: the same bar on every tile is one element, never a duplicate defect. Blank page area (white space between sections) is not "unreadable". A tile you truly cannot read (corrupt or empty image, text too small to make out) is not graded around: return INVALID: unreadable <tile file> as the first line and the reason on line 2. Never score a page from tiles you could not read.
  4. Check that what each tile or cell is labelled as is what the image shows: a "new" cell shows the new screen and a "baseline" one the old, an "alternatives" group shows alternatives and not the requested change. A label that contradicts its image is a defect of line 1 or 6, named by tile and label. A note elsewhere on the page (masthead, lead paragraph) never excuses a label on the image itself.
  5. Grade every rubric line against what you see. A defect costs points only when you can point at it: name the figure, the element and what is wrong with it. Do not deduct for colour taste, and do not award points for effort.
  6. Judge the page against the request you were given. A handsome page that does not answer it loses line 1.
  7. If the handoff carries a DUTIES list, map each duty to its item by the id in the manifest (tiles[].ids, the page-order ids): look at the tiles that hold that id. A duty whose id is in no tile is not-met ("id not on the page"), never guessed onto another item. Met only when you can point at what satisfies it. Print the rubric's DUTIES block. Any not-met duty caps the SCORE at 8.

You never see the page's spec, HTML or the builder's notes, and you do not ask for them. If the manifest or a tile file is missing, return INVALID: missing <path> (reason on line 2).

Return only the rubric's output block (plus the DUTIES block when one was handed in), or only the INVALID form (first line INVALID: <kind> <file>, second line the reason), with nothing before or after it. INVALID: ... is an alternative first line to SCORE <n>/10; the caller treats it as no score.

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 Changed · -6 lines b0792973996e
  2. 2d ago Changed · +6 lines cab826337887
  3. 3d ago Changed · +7 lines a3e7aa78c2b2
  4. 13d ago Changed ea5974773c2d
  5. 18d ago Changed · +25 lines 52c5fe5c63d4
  6. 20d ago First seen · 22 lines · 0 tokens per session scan A a34c83e57e79

Subscribe to this mod's changes

artifact-grader is an agent published in the GitHub repository yacb2/aidex (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,106 tokens. 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-09-30.

Related

Other agents, from other repositories

tikz-reviewer

Adversarial visual critic for a rendered TikZ diagram. Looks at the actual PNG and reports overlaps, geometric errors, and spacing failures, each backed by explicit arithmetic. Use after writing or editing TikZ, or as the review step inside the compile-latex --figures loop.

ericluo04/claude-academic-workflow · 62 tokens

ui-component-writer

Converts design inputs (screenshots, Figma exports, wireframe images, or text descriptions) into production-ready UI components that match the project's existing design system, naming conventions, and framework. Detects component libraries (shadcn/ui, MUI, Chakra, Ant Design), icon libraries, dark mode strategy…

mantacron/manta · 123 tokens

ux-planner

Designs user experience flows, interaction patterns, and UI specifications for features in the RPI planning phase. Produces ux.md with wireframe descriptions, user journeys, and component specs.

mantacron/manta · 41 tokens

ui-ux-designer

UI/UX Designer & Frontend Validator.

PlanVault/ai-engineering-playbook · 14 tokens

design-analyzer

Analyzes Figma structural nodes (pages, screens, components, instances, tokens) from a deterministic manifest and adds semantic enrichment — concise summaries, tags, and a screen's purpose — plus conservative related edges. Does NOT invent structural nodes or edges.

Egonex-AI/Understand-Anything · 56 tokens

ap-run-coordinator

Start only ready, non-overlapping roadmap work and combine returned status at the written integration points.

Spielewoy/autoprompt-skill · 24 tokens