react-vue-H5-convert

react-vue-H5-convert is a skill for Claude Code, Codex from HuolalaTech/huolala-figma-mcp. It costs 51 tokens per session (2,388 once invoked), scanned A, original, Apache-2.0.

A conversion guide for turning an HTML design export into H5 mobile web code, React code, or Vue code. H5 means a web page designed for mobile browsers; React and Vue are tools for building user interfaces.

In plain words
What is it for?
Use it to convert an index.html file, extract its styles and image paths, organize resources, implement interactive controls, and create repeated lists in H5, React, or Vue.
Why use it?
It separates styles, gives elements meaningful class names, and carries over interactions and repeated content from the original HTML. This makes design-export code easier to maintain and use on the chosen platform.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to convert an index.html file, extract its styles and image paths, organize resources, implement interactive controls, and create repeated lists in H5, React, or Vue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HuolalaTech/huolala-figma-mcp --skill react-vue-h5-convert
Clone the repo
git clone --depth 1 https://github.com/HuolalaTech/huolala-figma-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-vue-H5-convert

README.md
[![agentmods](https://agentmods.dev/badge/skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert/github.svg)](https://agentmods.dev/skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert)
Your own site
<a href="https://agentmods.dev/skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert"><img src="https://agentmods.dev/badge/skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-vue-H5-convert

Your own site · 80×15
<a href="https://agentmods.dev/skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert"><img src="https://agentmods.dev/badge/skills/huolalatech/huolala-figma-mcp/react-vue-h5-convert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.02388
Opus 5 $0.00026 $0.01194
Sonnet 5 $0.00010 $0.00478
Haiku 4.5 $0.00005 $0.00239

Measured 11d ago against content hash 0dd6092c9fb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

react-vue-H5-convert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

assets/skills/react-vue-H5-convert/SKILL.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

U2C 代码转换

将 UI2Code 工具生成的 index.html 转换为规范的前端代码,支持 H5、React、Vue 平台。

When to Use

  • 当需要将设计稿转换后的 index.html 转换为目标平台代码时
  • 当需要进行样式抽离和语义化 class 命名时
  • 当需要识别并实现交互组件(选中态、按钮等)时
  • 当需要实现循环渲染(React/Vue 平台)时

Instructions

参数说明

参数名 类型 默认值 说明
source_dir string - ZIP 包解压后的目录路径
target_dir string ${source_dir}/target_code 代码输出目录
platform string H5 目标平台:H5、React、Vue

步骤 0:创建代码文件夹

  • 如果用户指定了代码保存位置,则以用户指定的位置创建代码文件夹
  • 否则在 ${source_dir} 中创建子文件夹 target_code 存储代码

步骤 1:读取 index.html 并分析结构

  1. 完整读取:读取 ${source_dir}/index.html 文件

  2. 结构分析

    • 记录每个元素的层级关系(父子关系)
    • 记录同级元素的顺序
    • 记录每个元素的类型(div、span、img 等)
    • 记录每个元素的行内样式和属性
  3. 样式提取:提取所有行内样式属性,包括:

    • 尺寸:width、height
    • 间距:margin、padding、margin-top、margin-left 等
    • 定位:position、top、left、right、bottom
    • 字体:font-family、font-size、font-weight、line-height
    • 颜色:color、background-color、border-color
    • 边框:border、border-radius、border-width 等
    • 布局:display、flex-direction、justify-content、align-items 等
  4. 图片路径提取:提取所有 <img src>background-image 路径

  5. 文本内容提取:提取所有文本内容,特别注意需要精确宽度的文本元素

步骤 2:处理资源(图片和字体)

2.1 判断资源目录
  • 检查 ${source_dir} 下是否包含 images/ 目录(图片资源)
  • 检查 ${source_dir} 下是否包含 fonts/ 目录(字体资源)
  • 如果包含则执行后续流程,如果不包含则跳过对应步骤
2.2 图片语义化命名规则

⚠️ 强制要求

优先级 命名来源
1 附近文本内容
2 用途功能
3 位置作用

命名格式

  • 使用小写字母、数字、连字符(-)
  • 多个单词用连字符连接
  • 示例:favorite-driver-icon.pngback-arrow-icon.pnguser-avatar.png

禁止:使用 UUID、随机字符串、image_{序号} 或中文命名

2.3 复制资源
资源类型 源目录 目标目录 命名规则
图片 ${source_dir}/images/ ${target_dir}/images/ 语义化命名
字体 ${source_dir}/fonts/ ${target_dir}/fonts/ 保持原有文件名

⚠️ 强制要求:更新所有代码文件中的路径引用

步骤 3:代码文件结构生成

默认文件结构

平台 文件结构
H5 index.htmlstyles.cssscript.js
React index.jsxstyles.css
Vue index.vue

Read the full file on GitHub · 246 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 246 lines · 51 tokens per session scan A 0dd6092c9fb6

Subscribe to this mod's changes

react-vue-H5-convert is a skill published in the GitHub repository HuolalaTech/huolala-figma-mcp (78 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 2,388 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

zoom-meeting-sdk-web-component-view

Zoom Meeting SDK Web - Component View. Embeddable Zoom meeting components with Promise-based API for flexible integration. Ideal for React/Vue/Angular apps and custom layouts. Uses ZoomMtgEmbedded with async/await patterns and embeddable UI containers.

anthropics/knowledge-work-plugins · 61 tokens

ui-toolkit/web

Reference skill for Zoom Video SDK UI Toolkit. Use after routing to a web video workflow when you want prebuilt React UI instead of building a fully custom Video SDK interface.

anthropics/knowledge-work-plugins · 39 tokens

astro

Build content-focused websites with Astro — zero JS by default, islands architecture, multi-framework components, and Markdown/MDX support.

sickn33/agentic-awesome-skills · 28 tokens

tanstack-form

Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, Lit, and Svelte.

Kiranism/next-shadcn-dashboard-starter · 34 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

web-development

Use when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React, Vue, Vite, browser flows, or CloudBase Web integration.

TencentCloudBase/CloudBase-AI-Toolkit · 49 tokens