/kivo-creator:html-ingestfrom kivo-creator
Converts HTML files or URLs into kivo-creator section specs by rendering at 390px and 1440px with Playwright, splitting into sections, and recording text slots, links, media, and computed styles.
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.
Turn a page into neutral section specs. The script does the rendering and the measuring; you review the split and fix it before anything is matched.
/creator run whose source is a .html file or an http(s) URL.figma-ingest), not for choosing blocks (section-matching)..html file or an http(s) URL that the machine can reach..roots-stack.json (kivo-wise /roots-detect --write) or the kivo-wise detector JSON.node_modules/playwright or @playwright/test, with Chromium installed (npx playwright install chromium). Run the script where the project's own end-to-end tests run Playwright (usually the host); it is a read-only browser run, not a WordPress, Composer or PHP command.skills/, scripts/ and schemas/ (two levels above this skill's folder).From the project root run:
node <kivo-creator>/scripts/ingest-html.mjs --source=<file.html | https://...> --project=.
Exit 3 means Playwright is missing in the project: show the printed install hint and stop. Never install it without asking.
When the page already marks its sections (for example main > section or [data-section]), add --selector=<css>: each matching element becomes one section and the heuristic below is skipped.
Read the printed list of sections (id, kind, chrome). The split follows these rules (see scripts/lib/segment.mjs):
<main>, else the body after unwrapping single wrappers;header, footer and nav outside <main> are chrome (kept, never matched);kind and layout are inferred; slot values and computed styles are exact.Open every spec in .creator/<run>/specs/ and compare it with the reference images in refs/. Fix by editing the JSON, never by guessing:
id, order, same source.ref plus a note);kind: change it and add a note saying why;Validate: node <kivo-creator>/scripts/validate-spec.mjs .creator/<run>/specs.
Hand over to section-matching with the run folder.
validate-spec.mjs prints ok for every spec.refs for 390 and 1440 (unless the element is hidden at one width; note it).| Symptom | Cause | Fix |
|---|---|---|
| Exit 3 and an install hint | Playwright not installed in the project | Ask the person; install it as a dev dependency with their package manager and npx playwright install chromium |
| Whole page is one section | No <main> and several wrappers with more than one child | Run again with --selector=<css> for the section container, or split the spec by hand (Procedure step 3) |
| Missing section that appears after scrolling | Lazy content not rendered at networkidle | Ask for a static export of the page, or remove the lazy loading in a local copy before ingesting |
refs missing for 390 | The section is hidden on mobile | Keep the spec; note it; verify only checks widths that have references |
| Wrong text in a slot (cookie banner, overlay) | The overlay is part of <body> | Delete the overlay's spec or slots; note the decision |
Stop and ask when the page needs a login, when the source is not reachable, or when the person disagrees with the section split and the right split is not visible in the references.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./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./visual-fidelityUse when a page emitted by kivo-creator must be proved against its design - rendering the block markup on the local site, screenshotting every section at 390 and 1440 px with the project's Playwright, pixel diff against the references (2 percent per section by default), style check of exact values, lint for arbitrary values and inline styles, and up to three fix rounds before handing the report to the person. For emitting the page use block-scaffolding-from-design.Other plugins' skills for the same job