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.

referencesreconstruction.md

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

Asset extraction and contour reconstruction

A screenshot is not a layered source file, but its visible shapes can be measured and fitted. Infer unknown occluded regions only where needed; inference is not permission to change visible contours arbitrarily.

  1. Look for separate assets from the same generation task. Compare visible parts, shape, viewpoint and shadows; similar filenames do not establish identity. An unrelated substitute is for layout debugging only. If it remains in the final capture, that asset and its ROI stay visually pending.
  2. If only a flattened image exists, locate source coordinates and edges for the photo/subject. Extract a transparent subject under the actual imagegen tool's constraints, preserving visible parts, viewpoint and proportions while removing all text, backplates, buttons and background. Independent background assets must also be UI-free. Do not treat the whole image as the extracted result.
  3. Inspect white/green fringes, holes and translucent pixels against white, dark and target backgrounds. Record alpha bounds and sourceCrop. Scale to visible boundaries, not merely PNG dimensions.
  4. Mark occluded boundaries inferred. If generation changes visible subject shapes, record the mismatch and continue repairing it. Do not describe failed extraction as “the source file is missing, so HTML cannot be made.”
  5. Mark backplate anchors along visible contours: curvature changes, sloped-edge endpoints, steps and corner tangencies. Use one SVG viewBox, record Bézier control points and close the path. Draw fill, stroke and shadow separately. Plants are usually in front of the backplate and text above both; follow actual occlusion.
  6. Redraw icons as independent vectors, checking stroke-width, linecap, linejoin and optical size. A heart cannot become a leaf, and an emoji cannot replace a camera icon.
  7. Sample unobstructed background color areas and fit the gradient before adding separate texture and subject shadows. Derive angle, stops and opacity through comparison iterations instead of substituting an unrelated gradient.

For each asset record provenance, original hash, processing, source crop, intrinsic dimensions, alpha bounds, target rectangle, object-position and contour differences. Measurements observe the visible screenshot; original font parameters and generation internals may remain unknown.

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