/h2d-transfer:dev-mode-site-transferfrom h2d-transfer
Transfer a live website or page block by block from browser dev mode into clean frontend code using a measured design-system inventory, complete responsive container map, shared tokens, and reusable components. Use when copying a public or existing live site, inspecting DOM/CSS, rebuilding WordPress/Elementor or legacy marketing sections, or recreating a site without importing legacy markup. Prefer this route for clean practical reconstruction; switch to H2D when strict pixel-proof, complex motion, canvas/WebGL, or immutable source evidence is required.
Ships in h2d-transfer. 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.
Read ../../reference/layout-container-contract.md before implementation. Use its complete container chain and design-system inventory even on this faster, non-proof route.
Use this skill when the source of truth is a live site and the practical move is:
This is not the H2D proof pipeline. Do not call the result pixel-perfect unless the user only asked for a close transfer or you later validate it with stricter diff methods.
If you cannot open the live page, inspect the final rendered DOM/CSS, or access the meaningful states needed for transfer, stop and report blocked.
If the user says the transfer is wrong, off-spec, not from the source, or nothing changed, stop the previous fix path, rebuild the source-of-truth map for the complained-about block, and only then continue.
Work like a reconstruction agent, not like a stylist.
After complaint-driven feedback:
Use this skill when most of these are true:
Use h2d-pixel-perfect-transfer instead when any of these are true:
.h2d snapshot;ready.If unsure, read references/dev-mode-transfer-checklist.md and decide honestly.
clean-transfer, close-match, needs-polish, changed-source, or blocked.Before rebuilding, decide what actually wins:
Record that decision in a small working map:
block | winning source | desktop width | mobile width | key behavior | allowed deviation
Do not silently mix donor, Figma, screenshots, and current local code into one blended interpretation.
Before copying anything, determine what you are looking at:
Use browser dev mode, page source, loaded CSS/JS URLs, and generator meta tags when available.
Do not assume the raw DOM is worth preserving. On builder sites, the DOM often contains many wrappers that should not survive the rebuild.
If browser inspection is unavailable, the page is auth-gated, or the visible state cannot be reached safely, stop early with blocked instead of inventing the missing source data.
Work page-by-page and block-by-block, not as one giant paste.
For each block capture:
Name blocks by role, not by source CSS class. Good names:
heroservice-cardsvideo-gallerycontact-ctafooter-contactsBad names:
elementor-section-42vc_row_7wp-block-group-3From browser dev mode, pull the useful pieces:
Prefer:
Extract tokens as a system, not as per-block notes. Before rebuilding the first block, create a design-system inventory with one row per recurring source value: category, computed source value, source selectors/usages, responsive state, candidate token, and candidate definition file. Cover palette, type scale (family/size/weight/line-height pairs), spacing scale, radii, shadows, icon rules, container widths and breakpoints. Implement the inventory as one shared layer (CSS custom properties, Tailwind theme, or the project's token file). Block styles then reference that layer; the same literal pasted into every block is legacy debt with extra steps.
Avoid blindly copying:
Reimplement the block in the target stack with cleaner structure than the source.
Rules:
clean-transfer, search the shipped candidate sources for repeated donor literals and duplicated component markup. A repeated source value must resolve through the recorded token; every recorded pattern must resolve to its single component definition. If this cannot be demonstrated, use needs-polish, not clean-transfer.Recovery rules:
Do not "transfer from dev mode" by dumping copied production HTML into the new codebase and only renaming a few classes. That imports legacy debt instead of transferring the design.
Minimum verification before calling the block transferred:
Recommended working widths:
39076810241440If the source visibly changes outside these widths, test the real breakpoints you observe.
If you cannot leave this minimum evidence trail, do not claim clean-transfer; use needs-polish or blocked, depending on what is missing.
Use these labels honestly:
clean-transfer when the rebuilt block/page is faithful and production-usable;close-match when visual fidelity is strong but there are still spacing or behavior differences;needs-polish when the structure is there but details remain;changed-source when the live site drifted while you were transferring it;blocked when critical assets, behavior, or tooling are unavailable.Do not say pixel-perfect from dev mode alone unless you actually did the stricter proof work.
Treat the live page as a visual reference, not as a DOM template.
Usually safe to extract:
Usually not worth preserving:
Expect:
Transfer the design language, not the legacy implementation baggage.
If you discover canvas, complex sliders, heavy animation, or runtime-only UI state, stop pretending dev-mode copy is enough. Escalate to:
h2d-pixel-perfect-transfer if proof-grade reconstruction is required.Read references/dev-mode-transfer-checklist.md when you need:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub artypoul/gigma_skills --plugin h2d-transfer