uniapp-ui-replica-skill

uniapp-ui-replica-skill is a skill for Claude Code from jiushiwon/wg-skills. It costs 80 tokens per session (2,176 once invoked), scanned A, original, Apache-2.0.

A workflow for turning a UI screenshot or design image into working HTML, Vue, or React code. It studies the visible layout, colors, spacing, and components before generating the page.

In plain words
What is it for?
Use it to recreate screenshots, prototypes, Figma designs, or AI-generated interfaces as frontend code.
Why use it?
It helps when you need a coded page to closely resemble an existing design instead of starting from a written description.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to recreate screenshots, prototypes, Figma designs, or AI-generated interfaces as frontend code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/uniapp-ui-replica-skill
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 jiushiwon/wg-skills --skill uniapp-ui-replica-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code.

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 uniapp-ui-replica-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-ui-replica-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-ui-replica-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-ui-replica-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-ui-replica-skill/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 uniapp-ui-replica-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-ui-replica-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-ui-replica-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,176 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00080 $0.02176
Opus 5 $0.00040 $0.01088
Sonnet 5 $0.00016 $0.00435
Haiku 4.5 $0.00008 $0.00218

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

Security

Grade A, and why

uniapp-ui-replica-skill 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 9d 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.

vibeCoding/frontend/uniapp/uniapp-ui-replica-skill/SKILL.md · 177 lines

How it starts

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

UI Replica Skill

把 UI 原型图/截图高还原地复刻成可运行代码。

核心原则:先看到像原图的页面,再谈规范和收敛。第一稿目标是把可见部分还原到 80% 以上;样式收敛、组件沉淀、设计系统治理交给 frontend-style-harmonizer-skillui-component-commands-skill 后续处理。

适用场景

  • 用户发来一张 UI 原型图或截图,要求复刻成代码
  • 图片来源是 AI UI 生成器(Stitch、v0、Galileo AI、Uizard、Figma/AI 等)
  • 用户之前复刻效果差,需要系统化方法提升还原度

不适用场景

  • 用户只有文字需求,没有图片 —— 用 frontend-ui-foundry
  • 用户想从零设计一个新页面 —— 用 frontend-ui-foundryui-ux-pro-max
  • 用户只想改某个已有组件 —— 用 ui-component-commands-skill

两种执行模式

模式 触发方式 输出
快速模式 用户只发图,未指定框架 直接输出单文件 HTML,一句话结构说明,Token 表折叠或后置
完整模式 用户指定技术栈、要求接入项目、或发来多图 走完整 0-6 阶段流程,输出结构分析 + Token 表 + 代码

默认走快速模式。只有用户明确说“我要 Vue/React/uniapp 版本”或“接入项目”时,才进入完整模式。

核心流程

0. 读图准备
   └── 读取本地路径或 URL,失败时要求用户重新提供
   └── 评估图片清晰度、完整性、是否长图/多图
   └── 质量不足时,先告知用户再估算

1. 结构化读图
   └── 识别页面类型(中后台/营销/官网/移动端/文档)
   └── 拆结构:页面 → 区块 → 卡片 → 元素
   └── 标记颜色、字号、间距、圆角、阴影、图标
   └── 识别特殊元素:二维码、图表、头像、地图

2. 收敛 Token
   └── 提取主色、中性色、文字色、背景色
   └── 收敛间距、圆角、阴影、字号阶梯
   └── Token 用于快速保持一致,不强求与项目设计系统对齐

3. 代码生成
   └── 先搭骨架(layout),再填血肉(components)
   └── 默认单文件 HTML + Tailwind CDN(可直接浏览器打开)
   └── 指定框架时生成对应骨架并填充页面
   └── 复杂元素优先用代码模拟,无法模拟再占位

4. 验证与交付
   └── 检查关键状态(hover/active/disabled)
   └── 说明未在浏览器实测
   └── 给出还原度自评和待确认项

输出规范

快速模式

  1. 一句话结构分析:页面类型 + 主要区块
  2. 完整代码:单文件 HTML,可直接打开
  3. Token 表:可选,用户追问时再给
  4. 验证提醒:说明未实测,请用户打开查看并指出差异

完整模式

  1. 结构分析:页面类型 + 结构树
  2. 图质量评估:清晰度、完整性、遮挡情况
  3. Token 表:颜色、间距、圆角、阴影
  4. 完整代码:按指定技术栈输出
  5. 验证提醒与还原度自评:说明未实测,列出待确认项

复杂元素策略

按“能模拟就模拟,不能模拟再占位”处理:

元素 优先方案 降级方案
通用图标 Iconify / 内联 SVG 语义文字标签
二维码 QRCode.js 真实生成 占位 div
图表 ECharts / Recharts 渲染 mock 数据 占位 div
地图 CSS 色块 + 标注点模拟 占位 div
Banner/头像 Unsplash 直接 URL CSS gradient 占位
日历 原生 <input type="date"> 或组件库 DatePicker 占位 div
文件上传 拖拽上传 UI 占位 div

禁止直接使用 Emoji 作为正式图标。

技术栈默认策略

用户输入 工作目录 输出形态
只发图,未指定框架 任意 单文件 HTML + Tailwind CDN
指定 uniapp/Vue/React/HTML 任意 按指定框架生成
要求“接入项目” 目标项目 询问确认后按项目技术栈生成
多图/原型图集 任意 先梳理页面关系,再逐个生成

Read the full file on GitHub · 177 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. 9d ago First seen · 177 lines · 80 tokens per session scan A fe20234cb5d2

Subscribe to this mod's changes

uniapp-ui-replica-skill is a skill published in the GitHub repository jiushiwon/wg-skills (100 stars, last pushed 2d ago), licensed Apache-2.0. It adds 80 tokens to every session and 2,176 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens