preview-html-reviewer

preview-html-reviewer is an agent for Claude Code from CaesiumY/ko-design-md. It costs 57 tokens per session (2,913 once invoked), scanned A, original, MIT.

A review tool for checking whether a preview HTML file matches an approved design description and visual checklist. It creates a JSON review report and does not change the files it checks.

In plain words
What is it for?
Use it in the design-md workflow to assess light and dark versions of preview.html, including whether the expected logo and design colors appear correctly.
Why use it?
It separates visual checking from page creation, so the person who made the preview does not judge their own work. It also records the findings in a consistent format.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it in the design-md workflow to assess light and dark versions of preview.html, including whether the expected logo and design colors appear correctly.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/caesiumy/ko-design-md/preview-html-reviewer
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/CaesiumY/ko-design-md

Made for: Claude Code.

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 preview-html-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/caesiumy/ko-design-md/preview-html-reviewer/github.svg)](https://agentmods.dev/agents/caesiumy/ko-design-md/preview-html-reviewer)
Your own site
<a href="https://agentmods.dev/agents/caesiumy/ko-design-md/preview-html-reviewer"><img src="https://agentmods.dev/badge/agents/caesiumy/ko-design-md/preview-html-reviewer/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 preview-html-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/caesiumy/ko-design-md/preview-html-reviewer"><img src="https://agentmods.dev/badge/agents/caesiumy/ko-design-md/preview-html-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,913 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.00057 $0.02913
Opus 5.5 $0.00023 $0.01165
Sonnet 5.5 $0.00011 $0.00583
Haiku 4.5 $0.00006 $0.00291

Measured 13d ago against content hash 9f0dae7a3072, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

preview-html-reviewer 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 13d 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.

.claude/agents/preview-html-reviewer.md · 83 lines

How it starts

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

preview-html-reviewer

You score preview HTML files for visual fidelity to the source design.md. Adversarial separation from preview-html-author — you evaluate against the rubric, not the author's effort.

What you receive

  • cache_dir — .claude/cache/design-md/{slug}/
  • preview_path — {cache_dir}/preview.html (one file, both themes)
  • design_md_path — the approved design.md (now in services/{slug}.md)
  • rubric_path — .claude/skills/design-md/references/rubric-preview.md
  • expected_logo_src_path — always provided (every catalog entry carries a logo): the exact site-relative path (e.g. /logos/toss.png) that the preview <img src> must render. Distinct from the absolute URL form that lives in design.md frontmatter.
  • machine_report_path (optional) — {cache_dir}/preview-review-machine-{M}.json, the deterministic validator's report (pnpm validate:previews). When present, it has already verified the structural Item 1 checks and carries a metrics.light/metrics.dark OKLCH coverage count (matched/total of design.md color values found verbatim in each theme's half, which the validator reconstructs from the one file). Read it, adopt its Item 1 result, and use the coverage metric as your Item 2 starting point. It also carries a render object from the loop's one rendered observation (Stage 9a3 — the CI contrast harness run on this staged file). render.observed means the file was rendered and measured: its contrast warn items in issues are measured shortfalls (see Item 5). render.skipped means nothing was rendered (no browser on that machine, or the measurement broke) — that is not a clean result, and your verdict must say "렌더 관측 없음".
  • iteration_n — 1, 2, or 3
  • output_path — {cache_dir}/preview-review-{N}.json

What you produce

Exactly one file at output_path:

{
  "score": 9,
  "passed": true,
  "iteration": 1,
  "rubric": [
    {"item": "File structure", "earned": 2, "max": 2, "notes": "..."},
    {"item": "Color fidelity", "earned": 2, "max": 2, "notes": "..."},
    {"item": "Typography hierarchy", "earned": 2, "max": 2, "notes": "..."},
    {"item": "Component coverage", "earned": 2, "max": 2, "notes": "..."},
    {"item": "Light↔dark distinction", "earned": 1, "max": 2, "notes": "..."}
  ],
  "issues": [
    {"severity": "block|warn", "section": "...", "fix": "concrete actionable instruction"}
  ],
  "verdict": "one or two sentence summary"
}

Read the full file on GitHub · 83 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. 13d ago Changed 9f0dae7a3072
  2. 19d ago Changed 238efc6d4efc
  3. 21d ago Changed · +1 lines 4a76299b584d
  4. 23d ago Changed 06a73d5ac64e
  5. 1mo ago Changed · +2 lines 54b1d2e9f37f
  6. 1mo ago Changed 2659740886e6
  7. 1mo ago First seen · 80 lines · 57 tokens per session scan A 70ff12042557

Subscribe to this mod's changes

preview-html-reviewer is an agent published in the GitHub repository CaesiumY/ko-design-md (65 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 2,913 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

tone

Engineers design token systems — three-tier token architecture, multi-brand theming, and style-dictionary build pipelines. Use when you need to build or audit a token system, add dark mode, or wire a token-to-code pipeline. Trigger with "design my token architecture", "audit my design tokens".

jeremylongshore/tons-of-skills-marketplace · 63 tokens

muriel-forger

Forger juror seat for a muriel jury. Asserts "I can reproduce this from a generic template in four minutes," then actually builds the counterfeit from a default stack, diffs it against the original, and reports the residue — the decisions that survive. Judges one thing only, distinguishability from competent generic…

andyed/muriel · 103 tokens

muriel-pedant

The Pedant jury seat. Judges a muriel artifact's text alone — unlabeled numbers, missing units, unverified numeric claims, and terminology drift between legend, annotation, and caption — with the composition withheld so a handsome layout cannot charm it. Applies the numeric-claim probe list from muriel-critique.md…

andyed/muriel · 112 tokens

muriel-squinter

The Squinter jury seat. Blurs a muriel artifact with muriel.squint and judges only what survives — focal dominance, reading order, figure/ground, whether the composition has one center of mass or three. One lens, one loss function, no opinions on typography, contrast, copy, or brand. Emits the juror ballot defined in…

andyed/muriel · 89 tokens

muriel-stranger

The Stranger jury seat. Reads a muriel artifact exactly once, with the brief withheld, and answers three questions from that single pass — what is this for, what is the one number, where do I click. The only seat that can catch the panel grading the wrong thing, because every other seat is anchored to the brief. Fails…

andyed/muriel · 107 tokens

muriel-thumbnail

The Thumbnail jury seat. Judges a muriel artifact only at 1/8 scale and at 16 px, using the downscale companions muriel.squint already writes — whether the primary signal survives an OG preview, a favicon, a slide thumbnail, or a paper figure at column width. One lens, one loss function, no opinions on full-size…

andyed/muriel · 106 tokens