preview-html-reviewer

preview-html-reviewer is an agent for Claude Code from CaesiumY/ko-design-md. It costs 57 tokens per session (2,052 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.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.svg" alt="Measured on agentmods" 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,052 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.02052
Opus 5 $0.00028 $0.01026
Sonnet 5 $0.00011 $0.00410
Haiku 4.5 $0.00006 $0.00205

Measured 8d ago against content hash 70ff12042557, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 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 — either none or 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.
  • 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"
}

passed = (score >= 8). All 5 rubric items must be present with the exact item strings above.

Read the full file on GitHub · 80 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. 8d 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 (44 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 2,052 once invoked, about $0.0003 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.

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-critique

Vision-model critique agent for muriel-produced visual artifacts. Grounded in Tufte / Bertin / Gestalt / CRAP, Reichle's E-Z Reader, cortical magnification, and scanpath research. Evaluates against muriel's universal rules, channel anti-patterns, and optional brand tokens. Names issues with evidence and cites the…

andyed/muriel · 96 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