Agent skill

Yueban Image To Code

by SemineChen in SemineChen/yueban-image-to-code

像素级 750px 图片转代码与切图工作流。当 Codex 需要把当前选中的 UI 图片、截图、App/Web 设计稿、Figma 图片导出稿或设计长图转换为代码,并输出独立透明 PNG 切图资源时使用。适用于严格 1:1 等比例还原、画板宽度精确 750px、禁止自动排版优化、文本可编辑、简单图形原生矢量/代码化、图标和位图独立透明 PNG…

No licenceAuto-check passedFrontend & Design

Install Yueban Image To Code

skills CLI
$ npx skills add SemineChen/yueban-image-to-code --skill yueban-image-to-code -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SemineChen/yueban-image-to-code yueban-image-to-code --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yueban-image-to-code
GitHub stars
127
Token cost
~1.9k tokens
SKILL.md length
421 words
Files
8 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

像素级 750px 图片转代码与切图工作流。当 Codex 需要把当前选中的 UI 图片、截图、App/Web 设计稿、Figma 图片导出稿或设计长图转换为代码,并输出独立透明 PNG 切图资源时使用。适用于严格 1:1 等比例还原、画板宽度精确 750px、禁止自动排版优化、文本可编辑、简单图形原生矢量/代码化、图标和位图独立透明 PNG…

  • Works in 9 steps: 检查输入图片和项目约束。 → 把原图等比归一化到 750px 宽度。 → 建立 layers.manifest.json:记录每个图层的原图… → …
  • Frontend & Design work in your project
  • SKILL.md covers 目标, 最高优先级规则, 跨目录调用一致性 and 执行流程, plus 15 more sections
  • Runs Python scripts from its folder

What it does

Yueban Image To Code is an agent skill from SemineChen/yueban-image-to-code. 像素级 750px 图片转代码与切图工作流。当 Codex 需要把当前选中的 UI 图片、截图、App/Web 设计稿、Figma 图片导出稿或设计长图转换为代码,并输出独立透明 PNG 切图资源时使用。适用于严格 1:1 等比例还原、画板宽度精确 750px、禁止自动排版优化、文本可编辑、简单图形原生矢量/代码化、图标和位图独立透明 PNG 提取,以及按矢量层、文本层、位图/图标切图三类模块独立验收的任务。

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `README.md`, `agents/openai.yaml` and `references/slicing.md`).

It sits in Frontend & Design. It works with Figma.

When your agent uses it

  • Frontend & Design work in your project

Example prompts

  • “/yueban-image-to-code”

Requirements

  • Python 3

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. 检查输入图片和项目约束。
  2. 把原图等比归一化到 750px 宽度。
  3. 建立 layers.manifest.json:记录每个图层的原图 bbox、缩放后 bbox、类型、z-index、导出文件名。
  4. 先按 manifest 导出切图资源,再写代码。禁止先凭感觉写代码再补切图。
  5. 在 750px 画板中使用 manifest 的精确坐标实现代码。
  6. 分模块校验:矢量、文本、位图/图标切图分别验收。
  7. 做整页 750px 叠图复核。
  8. 根据具体错位、缺图、裁切、样式差异继续迭代。
  9. 交付代码、切图资源、manifest 和简短还原报告。

What it can do on your machine

Read from SKILL.md and the folder at commit e9f2e8a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yueban Image To Code loads about 1.9k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 57 tokens; SKILL.md has 421 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~57
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 421 words (~1,908 tokens).

name
yueban-image-to-code

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (scripts, references) in the repository root of SemineChen/yueban-image-to-code.

  • SKILL.md
  • README.md
  • agents/openai.yaml
  • references/slicing.md
  • scripts/audit_png_assets.py
  • scripts/compare_images.py
  • scripts/extract_png_asset.py
  • scripts/preview_bboxes.py

Open the folder on GitHubat commit e9f2e8a

Compare with similar skills

Yueban Image To Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yueban Image To Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yueban Image To Code this skillSemineChen/yueban-image-to-code127—~1.9kAutomated safety check: PassNone
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma Design to Codewarpdotdev/warp65k4 repos~2.9kAutomated safety check: PassAGPL-3.0
Figma Design System Rules Generatorwarpdotdev/warp65k3 repos~4.6kAutomated safety check: PassAGPL-3.0
Figma Code Connect Componentswarpdotdev/warp65k2 repos~4.2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Figma Design to Code

    warpdotdev/warp

    Turns a Figma frame or component into production code that matches the design, using the Figma MCP server and the project's own design system.

    65k GitHub starsUsed in 4 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • Creates project-specific design system rules from your codebase so coding agents implement Figma designs with your components, naming and tokens.

    65k GitHub starsUsed in 3 repos~4.6k tokens
    Frontend & DesignAuto-check passed
  • Maps published Figma components to their code implementations with Code Connect, using the Figma MCP suggestion and mapping tools.

    65k GitHub starsUsed in 2 repos~4.2k tokens
    Frontend & DesignAuto-check passed
  • Cc Design

    ZeroZ-lab/cc-design

    High-fidelity HTML design and prototype creation. An agent skill from ZeroZ-lab/cc-design.

    827 GitHub stars~2.2k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check: notes

Works with

Questions about Yueban Image To Code

What does Yueban Image To Code do?

像素级 750px 图片转代码与切图工作流。当 Codex 需要把当前选中的 UI 图片、截图、App/Web 设计稿、Figma 图片导出稿或设计长图转换为代码,并输出独立透明 PNG 切图资源时使用。适用于严格 1:1 等比例还原、画板宽度精确 750px、禁止自动排版优化、文本可编辑、简单图形原生矢量/代码化、图标和位图独立透明 PNG…. Yueban Image To Code is an agent skill from SemineChen/yueban-image-to-code.

When should I use Yueban Image To Code?

Yueban Image To Code fits situations like: frontend & Design work in your project.

How do I install Yueban Image To Code in Claude Code?

Run `npx skills add SemineChen/yueban-image-to-code --skill yueban-image-to-code -a claude-code`. Or copy the skill folder (the SemineChen/yueban-image-to-code repository) into .claude/skills/yueban-image-to-code in your project. Claude Code loads it when a task matches its description.

How do I install Yueban Image To Code in Codex?

Run `npx skills add SemineChen/yueban-image-to-code --skill yueban-image-to-code -a codex`. Or copy the skill folder (the SemineChen/yueban-image-to-code repository) into .agents/skills/yueban-image-to-code in your project. Codex loads it when a task matches its description.

Can I use Yueban Image To Code in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SemineChen/yueban-image-to-code --skill yueban-image-to-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yueban-image-to-code, .gemini/skills/yueban-image-to-code, .github/skills/yueban-image-to-code and .opencode/skills/yueban-image-to-code in your project.

What does Yueban Image To Code need to run?

Going by SKILL.md and its folder, Yueban Image To Code needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Yueban Image To Code access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Yueban Image To Code safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Yueban Image To Code use?

No licence was found for Yueban Image To Code or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Yueban Image To Code use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Yueban Image To Code?

Skills that share tags, products or a category with Yueban Image To Code: Figma Design System Builder (warpdotdev/warp, 65k stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars), Figma Design to Code (warpdotdev/warp, 65k stars) and Figma Design System Rules Generator (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yueban Image To Code?

SemineChen (a GitHub user) maintains it in SemineChen/yueban-image-to-code, which has 127 GitHub stars. The repository was last updated on July 17, 2026.

Source: SemineChen/yueban-image-to-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.