Unified HTML Generator
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_ad708a9f/unified-html-generator into your AI assistant.
About this skill
Problem Solved
Between a design output and a runnable prototype, the usual pain is not just “does the page open,” but CSS variables, component tokens, icons, charts, and sidebar layout drifting out of alignment. This skill converts phase-design outputs such as DSL JSON or design specification documents into a single-file final.html, aiming to reproduce FTdesign-constrained pages without introducing a complex front-end engineering setup.
How It Works
- Input: prefers DSL JSON, and can also accept specification documents containing page lists, layout decisions, component-token summaries, and BEM container mappings;
- Output: a single HTML file with CSS variables, component styles, mock data, and responsive interactions;
- Icons and charts: uses
Font Awesome 6.4.0with multi-source CDN fallback, loadsECharts 5.4.3on demand, and useswaitForEChartspolling to avoid chart rendering races; - Layout constraints: fixed 240px sidebar, main content with
margin-left: 240px, and white content cards with 24px padding; - Quality checks: CSS semicolons,
var(--ft-xxx)format, tag closure,fa-solid fa-*icon classes, brand colors, and sidebar states.
The skill also follows the L7-L10 layered structure, keeping design system, component assets, templates, and DSL Schema separate;design_engine.pycan serve as a local CLI entry point for querying components, design-system data, and DSL.
Boundaries and Notes
Best suited to B-side admin pages, dashboards, permission/user management, list/form prototypes. If the page depends on login state, real APIs, complex routing, or backend permission models, it should be treated as a front-end visual prototype. This skill is closer to a design-to-frontend bridge than a general React/Vue scaffold. Confirm that upstream DSL is complete and that token prefixes such as GEN::, NAV::, and ENT:: cover the target components.
Use Cases
- Generate an interactive B-side admin prototype directly from design DSL without setting up a front-end project.
- Review FTdesign sidebar layout and brand colors by outputting a single-file HTML with mock data for team walkthrough.
- Introduce ECharts dashboards into the prototype with CDN fallback, eliminating manual waitForECharts polling.
- Generate static pages with icons and responsive interactions based on BEM mapping and token summaries in the design doc.
Best For
- Front-end engineers who need to produce demo-ready HTML prototypes from design DSL without a full front-end setup
- UI designers responsible for B-side admin design fidelity who need to verify FTdesign tokens and sidebar specs
- Product managers who use mock data for walkthroughs and need single-file HTML to share with stakeholders
- Front-end architects validating ECharts loading strategies and CDN fallback logic during prototyping
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Restores Lanhu designs to target framework code using schema JSON, design tokens, and image assets.
Automatically detects engineering or competition code, analyzes bugs, vulnerabilities, algorithm complexity, and edge cases, then produces risk-level findings with before/after fixes.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.