/kivo-creator:visual-fidelityfrom kivo-creator
Proves a generated page matches its design by rendering blocks locally, screenshotting at 390 and 1440 px with Playwright, pixel-diffing against references, checking styles and linting, with up to three fix rounds.
Ships in kivo-creator. 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.
None: SKILL.md is the whole skill.
Prove fidelity with numbers. verify.mjs produces fidelity.md; you fix what it reports, at most three rounds.
block-scaffolding-from-design, or after any change to a block used by a /creator page..creator/<run>/ with page.html, emitted.json, specs and references.html-ingest)..kivo-creator/ folder beside the skill folders).Put the page on the local site:
{{runner.wp}} post create .creator/<run>/page.html --post_type=page --post_status=publish --post_title="creator <run>" --post_name=creator-<run> --porcelain
Keep the printed id. Get the URL with {{runner.wp}} post list --post__in=<id> --post_type=page --field=url.
Verify:
node <kivo-creator>/scripts/verify.mjs --run=.creator/<run> --url=<page url> --project=.
Defaults: widths 390 and 1440, threshold 0.02. The section selector is the one emit.mjs recorded in emitted.json (the adapter default, [data-block] for ACF Composer blocks, which scaffolded blocks print). If existing blocks do not print it, pass --selector with the wrapper they do print (or pass it to emit.mjs once), and say so in the report.
Read .creator/<run>/fidelity.md and the diff images in verify/ (red pixels = different).
Fix, smallest cause first: a wrong token or utility, a missing field value, spacing from the wrong scale step, an image not imported. Never fix a diff with an arbitrary value, an inline style or a hard-coded string.
Update the page ({{runner.wp}} post update <id> .creator/<run>/page.html) when page.html changed, then run step 2 again. Stop after three rounds.
Hand fidelity.md to the person with what was fixed and what is left. Delete the page afterwards when the person agrees ({{runner.wp}} post delete <id> --force).
verify.mjs exits 0 (PASS), or the person accepted the remaining rows after round three.fidelity.md says None.| Symptom | Cause | Fix |
|---|---|---|
found N elements for [data-block] | Existing blocks do not print data-block, or a block renders twice | Pass --selector; check nested blocks |
Every row is no reference | Figma source without FIGMA_TOKEN for references | Run figma-ref.mjs with a token, or accept a style-and-lint-only report |
| Large diff on image areas only | Media not imported (ids still null) | Import media (block-scaffolding-from-design step 5) |
size differs on every row | Fonts not loaded, or a different container width | Load the project's fonts on the page; compare with the right template |
| Style mismatch on font size at 1440 | A token maps to the wrong step | Fix the token mapping or ask for a new token |
After three rounds, or when a fix needs a design decision (a new token, a new variant, changing a shared block), stop and hand the report to the person.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hekivo/kivo-wise --plugin kivo-creator7 skills in this plugin
/block-scaffolding-from-designUse when an approved kivo-creator match plan must be emitted - writing the page as block markup, scaffolding the blocks that were missing in the project's conventions (run the project's generator first, then review and copy the prepared files), turning unmatched design values into token proposals and importing media. For deciding which block a section uses use section-matching; for checking the rendered result use visual-fidelity./code-connectUse when Figma components should point at the project's blocks and Blade components through Code Connect - reading the existing map, proposing new mappings from the block catalog, flagging components with no code counterpart, and sending mappings with send_code_connect_mappings only after the person approves the exact list. For reading a frame into specs use figma-ingest./creatorUse when the person runs the creator command to turn a Figma frame, an HTML file or a URL into a WordPress page on the Roots stack - routes the source, runs the ingest, builds and checks the match plan, and stops for approval before anything is emitted. Resumes a run with --run=.creator/<run>. For one step on its own use html-ingest, figma-ingest, section-matching, block-scaffolding-from-design or visual-fidelity./figma-ingestUse when a Figma frame URL has to become kivo-creator section specs - reading the frame through the official Figma MCP server in the main session (get_metadata for the tree, get_design_context per section, get_variable_defs for tokens, get_screenshot to look, get_code_connect_map for mapped components), writing exact or inferred values only, and stopping with connection steps when the server is missing. For HTML sources use html-ingest; for creating Code Connect mappings use code-connect./html-ingestUse when an HTML file, a URL or a published page has to become kivo-creator section specs - rendering it at 390 and 1440 px with the project's own Playwright, splitting it into sections, recording text slots, links, media, computed styles and one reference screenshot per section and width under .creator/<run>/. For a Figma source use figma-ingest; for choosing blocks use section-matching./section-matchingUse when kivo-creator section specs in .creator/<run>/specs must be mapped to the project's existing blocks before anything is generated - building the match plan, applying the compatibility filter, judging the remaining candidates with the written rubric (including an explicit none), asking the person below the confidence threshold and checking the plan. For ingesting a source use html-ingest or figma-ingest; for generating missing blocks use block-scaffolding-from-design.Other plugins' skills for the same job