AI Agent Hub
Back to skills
HTML Replica Style Lock Generator icon

HTML Replica Style Lock Generator

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_2516c825/html-replica-style-lock.

About this skill

Problem

When recreating a web page, a common failure is producing HTML that only looks similar. The next generated page may then drift in color, typography, spacing, and component states. This skill is aimed at reverse-engineering a reusable visual baseline from a URL or screenshot before handing it to another page-generation skill.

How It Works

It turns the input page into three constrained artifacts:
- index.html: a single-file, semantic, editable high-fidelity baseline with embedded CSS and only high-confidence interactions.
- design-style-spec.md: a style lock specification for humans and AI, covering layout, color, typography, radius, shadow, component states, imagery, and responsive rules.
- design-tokens.json: structured design tokens with fields like colors, typography, spacing, components, responsive, and constraints for direct use by code or later skills.

The main steps include analyzing the layout system, extracting the visual design system, inferring components and interactions, planning the implementation strategy, and documenting design intent. The output also separates must-keep anchors, allowed variations, and forbidden drift, so downstream pages do not become generic templates.

Boundaries

This skill does not bulk-expand pages. When a screenshot is provided, it is treated as the highest-priority visual truth; if the URL differs, the screenshot wins. It is suitable for replication, abstraction, and style locking, not for inventing complex interactions or adding visual language absent from the source.

Use Cases

  • Given a competitor URL, create a single-file HTML baseline plus a style spec and design tokens for later page generation.
  • From a product screenshot, infer layout, typography, color, and component states into a locked style specification.
  • When a site screenshot exists without source code, lock button, card, spacing, and shadow rules before expanding pages.
  • Convert an English visual layout into Chinese typography constraints while producing structured design tokens.

Best For

  • Frontend engineers rebuilding site redesigns who need editable HTML and reusable style constraints from screenshots or URLs.
  • Product design leads handing designs to AI for expansion who want downstream pages to preserve color, typography, and layout.
  • Frontend developers maintaining landing pages who need `design-tokens.json` to keep later components and spacing consistent.
  • Technical leads reverse-engineering competitor pages who need a high-fidelity baseline plus style anchors and forbidden changes.