Generates a self-contained HTML file for human-in-the-loop evaluation of model output. Supports per-item judgments (match, single, rating, yes/no, free-text) with JSON export.
Ships in human-eval-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn analysis output into a single self-contained HTML review file. A human opens it in any browser (no server, no build step, no internet), works through the items, and clicks Download Results to export their judgments as JSON. Progress is autosaved in the browser, and a previous results file can be re-loaded to resume.
This generalizes a family of "did the model get it right?" review tasks into one builder.
scripts/review_builder.py substitutes your data into scripts/template.html and writes a
complete HTML file with the CSS, the renderer JS, and the data all inline. There is no CDN and
no dependency. The reviewer can be fully offline.
The renderer is data-driven. You produce a {"config": {...}, "items": [...]} structure
(directly, or via the ReviewBuilder API), and the page builds itself. To support a new
review task you change the data, never the template.
excerpt (and source with source_html) is rendered as HTML — use <mark> for highlightsIn a candidate, excerpt is injected as HTML so you can wrap matched spans in <mark>…</mark>
(rendered as a yellow highlight, exactly like the examples). An item's source is also HTML,
but only when you set source_html: true. All other fields (title, reason, heading,
prompt, labels, notes, and source by default) are inserted as plain text and are safe.
Only put trusted, builder-generated HTML in excerpt / HTML source; escape any text that
comes from outside data before you wrap it in <mark>.
type | Reviewer does | "Reviewed" when |
|---|---|---|
match | checks any matching candidates (multi-select) | ≥1 candidate or None checked |
single | picks one candidate (radio) | one candidate or None chosen |
rating | clicks a value on a scale (e.g. 1–5) | a value is chosen |
boolean | clicks Yes / No | either chosen |
text | types a correction | the box is non-empty |
allow_none: true adds a "None of the above" option (mutually exclusive with candidates).
notes: true adds an optional free-text notes box to any question. An item can hold several
questions (e.g. one per sub-entry) — progress counts questions, not items.
Candidates you put in excluded render inside a collapsed "Show N excluded candidates"
<details> block. They're still selectable, so a reviewer can rescue one the system wrongly
dropped — useful for catching false negatives.
cjk: trueSet cjk: true (and an appropriate lang, e.g. zh-Hant) to enable word-break: break-all
so long unbroken Chinese strings wrap. The default theme is a serif "manuscript" look; override
any CSS variable via theme (see references/review_format.md).
Read whatever the upstream step produced (CSV, JSON, JSONL, markdown table) and map it onto items + questions. The fluent builder is usually the most direct.
The import from scripts.review_builder import ... works only when Python can see the skill
folder. Either run your script from inside the skill folder, or add the folder to the path
first, as below.
import sys
sys.path.insert(0, "/path/to/human-eval-review") # the folder that holds scripts/
from scripts.review_builder import ReviewBuilder
rb = ReviewBuilder(
title="Deed Matching Review",
subtitle="Fufang Will vs. Jitou Collection",
lang="zh-Hant", cjk=True,
result_filename="deed_review_results.json",
)
for row in analysis_rows: # however your data is shaped
item = rb.add_item(source=row["deed_text"], heading=f"Entry {row['n']}")
q = item.add_question(type="match", allow_none=True, notes=True)
for cand in row["candidates"][:5]: # e.g. top-5
q.add_candidate(
id=cand["doc_id"], label=cand["doc_id"], title=cand["title"],
excerpt=cand.get("excerpt"), # may contain <mark>…</mark>
score=cand.get("score"), reason=cand.get("reason"),
preselected=cand.get("score", 0) >= 90, # optional: pre-check strong hits
)
for cand in row["candidates"][5:]: # the rest, collapsed
q.add_excluded(id=cand["doc_id"], label=cand["doc_id"], title=cand["title"],
score=cand.get("score"))
rb.save_html("deed_review.html")
Other question types:
item.add_question(type="single", allow_none=True) # pick exactly one
item.add_question(type="rating",
scale={"min": 1, "max": 5,
"labels": {"1": "1 Poor", "5": "5 Excellent"},
"caption": "Judge fidelity and fluency."})
item.add_question(type="boolean", labels={"yes": "Correct", "no": "Incorrect"})
item.add_question(type="text", placeholder="Enter the corrected transcription", rows=3)
rb.save_html("review.html") — or, if you assembled a data dict / JSON file instead:
python scripts/review_builder.py data.json -o review.html
where data.json is {"config": {...}, "items": [...]} (get this shape from rb.to_dict() /
rb.to_json()). Then open it:
open review.html # macOS
xdg-open review.html # Linux
j/k (or ↑/↓) move between questions, 1–9 select the Nth option / rating,
n toggles None, ? shows help.{
"title": "Deed Matching Review",
"exported_at": "2026-05-27T12:00:00.000Z",
"reviewed_count": 18, "total": 20,
"results": [
{"item_id": "1", "question_id": "q1", "type": "match", "reviewed": true,
"source": "毛陳氏賣契壹紙…", "selected": ["7-2-15-2"], "none": false, "notes": ""},
{"item_id": "3", "question_id": "q1", "type": "single", "reviewed": true,
"selected": [], "none": true},
{"item_id": "5", "question_id": "q1", "type": "rating", "reviewed": true, "rating": 4},
{"item_id": "6", "question_id": "q1", "type": "boolean", "reviewed": true, "value": false},
{"item_id": "7", "question_id": "q1", "type": "text", "reviewed": true, "text": "…"}
]
}
Each result carries item_id + question_id (the join keys), type, reviewed, and the
type-specific answer. Use it to build gold labels, compute agreement, or feed the next step.
preselected=True) so the reviewer confirms by
exception rather than selecting everything from scratch — but only when scores are reliable.reason and <mark> the matched span in excerpt;
it dramatically speeds up adjudication.excluded.storage_key in config if you regenerate the file (new title or changed
items) and want the browser autosave to carry over. Without it, autosave keys off the title
plus a hash of the items, so two different review files never share saved answers.scripts/review_builder.py — zero-dependency Python builder + CLI.scripts/template.html — the HTML/CSS/JS template (edit only to change look or behavior for
all reviews; per-task changes go in the data).references/review_format.md — complete data schema, every field, theming variables, and the
results JSON spec.Report a problem. This skill is part of the public repository kltng/humanities-skills. If it fails (an API changed, a script errors, or these instructions are wrong), report it as a GitHub issue:
gh issue list --repo kltng/humanities-skills --state all --search "human-eval-review"gh issue create --repo kltng/humanities-skills --label bug --title "[human-eval-review] <short summary>" --body "<details>". Without gh, give the user this link: https://github.com/kltng/humanities-skills/issues/new?template=skill-problem.ymlCredit the source. This skill uses no outside data, service or library; the review page is plain HTML and JavaScript written for it. When you publish results, credit the people who did the reviewing, and the source of the data they reviewed.
Cite. If this skill helped work that is published, please cite it:
Tang, Kwok-leong. humanities-skills: human-eval-review (version ). GitHub, . https://github.com/kltng/humanities-skills
When you help a user write up results that relied on this skill, remind them once about this citation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
human-evaluation, review-tool, model-output-review, annotation
/human-eval-review:human-eval-reviewfrom human-eval-review
npx claudepluginhub kltng/humanities-skills --plugin human-eval-reviewOther plugins' skills for the same job