Page Generation: Converting phase-design mockups to single-file HTML

Preface

The design phase often produces structured descriptions (JSON, YAML), whereas reviews and demos require pages that can be opened directly in a browser. Manually writing HTML from DSLs or specifications often leads to missing layouts or styles, and inconsistencies with upstream design drafts.

Here we introduce the “Generate Page” skill on SkillHub (@user_ad708a9f/unified-html-generator). It is designed for the phase-design pipeline: converting DSL JSON or SPEC YAML outputs from upstream into runnable single-file HTML prototypes, reducing repetitive work between design and clickable prototypes.

What is this

“Generate Page” is a community-sourced Agent Skill. The current version is 1.0.0, published by user_ad708a9f, and categorized under dev-programming. SkillHub marks requires_api_key=false, meaning no additional API Key is needed after installation.

The official description summarizes it as: converting upstream design schemes (DSL JSON / SPEC YAML output by phase-design) into directly runnable single-file HTML prototypes to achieve “100% design restoration.” The “100%” claim comes from the SkillHub page; actual results still depend on the completeness of the upstream design draft and the execution quality of the Agent.

Core Functions

Based on publicly available information on SkillHub, the confirmed capability boundaries are as follows:

  1. Input format: Accepts DSL JSON or SPEC YAML from the phase-design stage.
  2. Output format: Generates a single-file HTML, emphasizing “directly runnable”—usually implying that styles and structure are packaged in one file for easy local opening in a browser or sharing with colleagues for preview.
  3. Positioning: Located downstream of the design pipeline, used in conjunction with phase-design, rather than drawing pages arbitrarily from scratch using natural language.

The page does not list additional subcommands or scripts separately; specific generation rules are written in the SKILL.md within the Skill package, and the Agent executes them according to the skill instructions after installation.

Installation and Activation

SkillHub recommends two methods: installing via CLI, or sending the installation prompt to an AI to let it operate according to official documentation.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is available:

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub installation documentation to perform a complete installation (including CLI and 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

2. Install “Generate Page” to the current Agent’s skills directory

When installing the skill, you must use --dir to point to the skills directory recognized by the current Agent; otherwise, it will default to installing to ./skills/, which the Agent might not be able to read.

skillhub install @user_ad708a9f/unified-html-generator --dir <your skills directory>

Common paths (subject to SkillHub installation documentation):

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

You can also ask the AI in conversation to install it using the following instruction (consistent with the SkillHub page):

Please install @user_ad708a9f/unified-html-generator according to https://skillhub.cn/install/skillhub.md.

After installation is complete, restart or refresh the Agent as required by your client to activate the new Skill.

Typical Usage

The public page does not include step-by-step screenshots or a fixed example repository. A typical workflow can be reproduced based on upstream and downstream relationships:

  1. Obtain DSL JSON or SPEC YAML in phase-design (or an equivalent design stage).
  2. In a conversation with an Agent that has “Generate Page” enabled, specify that you want to convert the design draft into a single-file HTML prototype using this Skill, and attach the JSON/YAML content or file path.
  3. After the Agent generates the HTML, open the file locally in a browser to check the layout and styles against the design draft.

The conversational side can be condensed to a similar intent (wording can be adjusted based on project habits):

Use the "Generate Page" skill to convert the attached phase-design SPEC YAML into a single-file HTML prototype, requiring it to be openable directly in a browser.

If phase-design and HTML generation are chained by different Skills in your pipeline, ensure the design output is completed first before calling this Skill, to avoid forcing page generation when structured design drafts are missing.

Applicable Scenarios and Notes

Who it is for

  • Teams already using or planning to use phase-design to produce DSL JSON / SPEC YAML.
  • Developers or design collaboration roles who need to quickly obtain clickable HTML prototypes without manually writing full-page markup.

Limitations and Notes

  • Depends on the quality of upstream design drafts; if fields are missing in YAML/JSON, the generation result cannot fabricate design intent out of thin air.
  • The output is a single-file HTML; multi-page routing and backend interfaces for complex applications will not be automatically filled in by this Skill.
  • SkillHub statistics (based on crawled data): Rating 100000, Downloads 2720, Installations 26; as it is a community Skill, the upgrade and maintenance rhythm depends on the publisher.
  • If there are inconsistencies with old data in the leads (such as a different download count), refer to the SkillHub page and the latest crawl data.

Conclusion

“Generate Page” connects the structured design drafts of phase-design to runnable HTML prototypes, making it suitable for short chains from design to demo. When installing, remember the coordinates @user_ad708a9f/unified-html-generator and ensure --dir points to the correct skills directory.

Official SkillHub Page: https://www.skillhub.cn/skills/user_ad708a9f/unified-html-generator
API Coordinate Entry: https://api.skillhub.cn/user_ad708a9f/unified-html-generator

羽毛球分组比赛记分
小程序二维码

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

Xiaoye