Image Web Design Replication Specification Generator: Generate Editable HTML and Style-Locked Specifications from URL or Screenshot

Introduction

When performing webpage replication or “extending a few pages based on an existing site,” a common practice is to directly ask the model to write HTML/CSS and then verbally describe the color scheme and spacing within the conversation. While the page may function, the style constraints are scattered across the chat history, making it easy for the style to drift when adding subsequent pages. Below is an introduction to the Image Webpage Design Replication Specification Generator (@user_2516c825/html-replica-style-lock) on SkillHub: it not only restores the page but also translates the design language into reusable Markdown specifications and JSON design tokens, facilitating style-consistent extensions by other frontend-related Skills.

What is this

The Image Webpage Design Replication Specification Generator is a high-fidelity Agent Skill designed for webpage replication and style inheritance, located at @user_2516c825/html-replica-style-lock. The current version is 1.0.0. It originates from the SkillHub community, falls under the dev-programming category, and is published by user_2516c825 (listed as “Lao Liao’s Agent Lab” on the SkillHub page). The tag requires_api_key=false indicates it does not depend on additional API Key configuration.

It solves a core problem: after inputting a webpage URL or page screenshot, it does not merely output a single HTML page. Instead, it simultaneously produces two style constraint files for subsequent AI/Skill reference, effectively “locking in” the visual temperament.

Core Functions

Verified via the official description, the Skill performs visual reverse analysis and outputs three types of artifacts:

  1. High-Fidelity HTML Page: A directly runnable static page implementation.
  2. design-style-spec.md: A document precipitating the overall design language, layout logic, component rules, and visual constraints that should not deviate (the style-lock specification).
  3. design-tokens.json: Structured design tokens covering colors, fonts, spacing, border radius, shadows, grids, etc.

After completing the replication, the above specifications can be handed over to frontend-skill or other page generation Skills to continue expanding new pages. The English description also mentions compatibility with frontend-slides for presentation or slide-style extensions while strictly aligning with the original style. The Skill is based on the universal SKILL.md format and is executed by the Agent following a specific workflow.

Installation and Activation

First, confirm if skillhub is installed on your local machine:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to perform a complete installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing this Skill, it is mandatory to use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/ and may not be recognized. Example:

skillhub install @user_2516c825/html-replica-style-lock --dir <your skills directory>

Common paths for various clients (from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, refresh or restart the Agent as required by the client to ensure the new Skill is loaded.

Method 2: Let AI Install via Official Prompts

The installation prompt provided on the SkillHub page is: Please install @user_2516c825/html-replica-style-lock according to SkillHub Installation and Priority Source Configuration. Send the above instruction to an AI client that supports Skills, and let the Agent complete the CLI check and installation according to the documentation.

The differences between Cursor, Codex CLI, and Claude Code mainly lie in the skills directory path and whether a restart is needed; the installation command and coordinates are consistent, with no separate divergent versions.

Typical Usage

The official documentation does not provide fixed CLI subcommands; usage involves providing input and stating the goal within a conversation where the Skill is enabled. The reproducible workflow is as follows:

  1. Prepare Input: Provide the target page’s URL or upload a page screenshot (full page or key viewport, depending on the materials you can provide).
  2. Trigger Skill: Call or reference @user_2516c825/html-replica-style-lock in the Agent, requesting webpage replication and the generation of style constraint files.
  3. Verify Artifacts: Check if the generated HTML can be opened locally; confirm that design-style-spec.md and design-tokens.json exist in the same directory (or the path agreed upon by the Skill).
  4. Style Inheritance Extension: When adding new pages or slides, pass the HTML and the two constraint files to Skills like frontend-skill or frontend-slides, explicitly requiring adherence to the tokens and non-deviating items in design-style-spec.md and design-tokens.json.

When searching for installation, you can also use SkillHub:

skillhub search html-replica-style-lock

Use Cases and Notes

Suitable for: Webpage replication, design restoration, multi-page style-consistent extension, scenarios requiring the precipitation of reference pages into design system documentation, or preparing unified visual specifications for “page-to-PPT/slide” conversion.

Notes:

  • Restoration quality depends on URL accessibility, screenshot completeness, and the Agent’s adherence to Skill instructions; complex interactions and backend logic are not within the scope of the “static high-fidelity HTML” promise.
  • During the extension phase, ensure design-style-spec.md and design-tokens.json are passed as hard constraints to downstream Skills; otherwise, relying solely on HTML makes it difficult to maintain long-term style consistency.
  • SkillHub Statistics (based on crawled data): Rating 100000, Downloads 4815, Installations 29; data changes with platform updates, refer to the SkillHub page for the latest figures.

Conclusion

The Image Webpage Design Replication Specification Generator decomposes “replicating a page” and “locking the style” into deliverable HTML + specifications + tokens, reducing drift when AI expands pages later. Installation coordinates: @user_2516c825/html-replica-style-lock. Official entries:

  • API / Installation Page: https://api.skillhub.cn/user_2516c825/html-replica-style-lock
  • SkillHub Display Page: https://www.skillhub.cn/skills/user_2516c825/html-replica-style-lock
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye