Index of every page on this site: llms.txt
All skills
chensir-indie avatar

/image-to-layered-html-prototype

@b6c2291
Run it yourself

Rebuild approved app images as editable HTML/CSS/SVG or repair their fidelity; also supports UI concepts, prompts, scoped design reviews and refinement, multi-page design systems and optional Flutter handoff.

Use this Skill: https://skilld.dev/gh/chensir-indie/app-dev-skills/image-to-layered-html-prototype

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesrender-contract.md

≈703 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Rendering coordinates and reproducibility

Default reconstruction checks use 1 reference pixel = 1 CSS px, DPR=1, screenshot scale=css. For a 591×1280 reference, set viewport=591×1280 and produce a 591×1280 capture. A 393×852 logical viewport at DPR=3 yields a 1179×2556 device capture. Declare the mapping and match the reference; do not multiply reference width by DPR again.

render-config.json records actual browser.version(), viewport, deviceScaleFactor, screenshotScale, locale, colorScheme, scroll, font sources/SHA, animation state, timezone and fixture data. When pages share CSS/JS/images, each page's render-config.json may declare "sharedRuntimeDirs":["../shared"]. The validator permits only explicitly listed sibling shared directories. Record every runtime image/SVG in that page's asset-manifest.json using relative paths such as ../shared/assets/plant.png and its SHA. Shared CSS/JS/fonts and registered assets are covered by capture receipts and final hashes. Do not disguise another page, reference or evidence directory as shared runtime resources. A package version is not the browser version. Do not attribute an arbitrary measured one-level color difference to JPEG decoding without an experiment.

Before capturing, await document.fonts.ready, all img.decode() calls and the application ready marker. Freeze transitions, animations and caret; use a fixed date and local fixture. An imagegen reference may have no source browser. Compare against frozen pixels without inventing its runtime environment.

A desktop preview may uniformly scale the whole artboard, but update its wrapper dimensions too, preventing transform-induced blank space and horizontal scrolling. Record compact / baseline / wide and long-copy adaptation tests separately. Uniformly shrinking the canvas is not responsive acceptance.

Environment check and setup

Run from this skill directory. Capture needs Python 3.9+, Node.js 22+, npm, Playwright and a browser; measurement/validation additionally uses Pillow and PyYAML. Concepts need no rendering setup.

sh scripts/doctor.sh
# For a standalone installation when dependencies are missing:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt
npm install
npx --no-install playwright install chromium
sh scripts/doctor.sh

In a collection checkout use npm ci at the repository root instead of standalone npm install. Use --scope python or --scope browser for narrower checks. Python is needed in both scopes. Installed Chrome can be selected with PLAYWRIGHT_CHANNEL=chrome for doctor and capture. Use macOS/Linux or WSL; follow doctor output for missing runtimes and browser libraries. Keep dependent acceptance pending until repaired.

Asset and dependency notices.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts28d3 checks · Risk SAFE
  • Gen Agent Trust Hub28d

    This skill is a legitimate development tool for converting UI images into layered HTML. It uses browser automation and image analysis. The main security considerations are its inherent attack surface for indirect prompt injection (as it processes user-provided HTML and images) and its use of standard dynamic execution patterns for environment setup and browser interaction.

  • Socket28d

    No alerts

  • Snyk28d

    Risk: LOW · No issues

Signed by skilld at b6c2291. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 4 weeks ago

README badge

README badge for chensir-indie/app-dev-skills/image-to-layered-html-prototype