Install the "image-to-code" agent skill from https://github.com/yuzhworkhard-wq/image-to-code/tree/main into .claude/skills/image-to-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-to-code", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "image-to-code" agent skill from https://github.com/yuzhworkhard-wq/image-to-code/tree/main into .agents/skills/image-to-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-to-code", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "image-to-code" agent skill from https://github.com/yuzhworkhard-wq/image-to-code/tree/main into .cursor/skills/image-to-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-to-code", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "image-to-code" agent skill from https://github.com/yuzhworkhard-wq/image-to-code/tree/main into .gemini/skills/image-to-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-to-code", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "image-to-code" agent skill from https://github.com/yuzhworkhard-wq/image-to-code/tree/main into .github/skills/image-to-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-to-code", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "image-to-code" agent skill from https://github.com/yuzhworkhard-wq/image-to-code/tree/main into .opencode/skills/image-to-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-to-code", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Works in 12 steps: 检查输入图片和项目约束。 → 把原图等比归一化到 750px 宽度。 → 建立 layers.manifest.json:记录每个图层的原图… → …
Tasks that involve Image generation
SKILL.md covers 目标, 最高优先级规则, 跨目录调用一致性 and 执行流程, plus 17 more sections
Runs Python scripts from its folder
What it does
Image To Code is an agent skill from yuzhworkhard-wq/image-to-code. 像素级 750px 图片转代码与高清切图工作流。当 Codex 需要把当前选中的 UI 图片、截图、App/Web 设计稿、Figma 图片导出稿或设计长图转换为代码,并输出独立透明 PNG 切图资源时使用。适用于严格 1:1 等比例还原、画板宽度精确 750px、高清放大切图、防模糊和背景抠除、必要时用 image2/imagegen 抠透明 PNG、文本可编辑、简单图形原生矢量/代码化,最终代码需要自适应适配,或需要把完成稿导出/导入 Figma 为可编辑图层的任务。
Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `README.md`, `agents/openai.yaml` and `references/figma-editable-export.md`).
It sits in Media & Creative, covering Image generation. It works with Figma. The repository describes itself as: Codex skill for 750px image-to-code reconstruction and transparent PNG slicing. The licence is MIT.
When your agent uses it
Tasks that involve Image generation
Example prompts
“/image-to-code”
Requirements
Python 3
Workflow steps
12 steps, taken from the first numbered list in SKILL.md.
8完成 750px 基准代码后,进入自适应细化阶段:加外层 fit wrapper,按容器或视口整体缩放 750px 画板,不得对子元素重新排版。
9分模块校验:矢量、文本、位图/图标切图分别验收。
10做整页 750px 叠图复核,并做 375px 手机宽度和至少一个其他手机宽度的自适应截图。
11根据具体错位、缺图、裁切、样式差异或手机端溢出继续迭代。
12交付代码、高清切图资源、manifest 和简短还原报告。
What it can do on your machine
Read from SKILL.md and the folder at commit 886c882. 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
Image To Code loads about 3.7k tokens when it runs, and up to ~7.3k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 831 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~63
When it runs· the whole SKILL.md, loaded when a task matches
~3.7k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~7.3k
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.
Download SKILL.mdSave it as .claude/skills/image-to-code/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
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.
Image To Code compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Image To Code this skillyuzhworkhard-wq/image-to-code
When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets.
Capability-based multi-tool matrix for image and graphic design: AI generation, raster/vector editing, UI mockups, diagrams, upscaling, photo library, and publishing.
像素级 750px 图片转代码与高清切图工作流。当 Codex 需要把当前选中的 UI 图片、截图、App/Web 设计稿、Figma 图片导出稿或设计长图转换为代码,并输出独立透明 PNG 切图资源时使用。适用于严格 1:1 等比例还原、画板宽度精确 750px、高清放大切图、防模糊和背景抠除、必要时用 image2/imagegen 抠透明…. Image To Code is an agent skill from yuzhworkhard-wq/image-to-code.
When should I use Image To Code?
Image To Code fits situations like: tasks that involve Image generation.
How do I install Image To Code in Claude Code?
Run `npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a claude-code`. Or copy the skill folder (the yuzhworkhard-wq/image-to-code repository) into .claude/skills/image-to-code in your project. Claude Code loads it when a task matches its description.
How do I install Image To Code in Codex?
Run `npx skills add yuzhworkhard-wq/image-to-code --skill image-to-code -a codex`. Or copy the skill folder (the yuzhworkhard-wq/image-to-code repository) into .agents/skills/image-to-code in your project. Codex loads it when a task matches its description.
Can I use 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 yuzhworkhard-wq/image-to-code --skill 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/image-to-code, .gemini/skills/image-to-code, .github/skills/image-to-code and .opencode/skills/image-to-code in your project.
What does Image To Code need to run?
Going by SKILL.md and its folder, Image To Code needs Python for the scripts in its folder. Our summary lists: Python 3.
Does 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 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 Image To Code use?
Image To Code is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Image To Code use?
About 3.7k tokens (SKILL.md is roughly 15k 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 3.7k tokens, read only when the agent opens those files.
What are the alternatives to Image To Code?
Skills that share tags, products or a category with Image To Code: Ky Design To HTML (KyrieCheungYep/ky-design-to-html-skill, 163 stars), Image (Nexus-JPF/note-companion, 870 stars), CLI Hub Matrix Image Design (HKUDS/CLI-Anything, 52k stars) and Structured Image Generation (bytedance/deer-flow, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Image To Code?
yuzhworkhard-wq (a GitHub user) maintains it in yuzhworkhard-wq/image-to-code, which has 347 GitHub stars. The repository was last updated on June 10, 2026.
Source: yuzhworkhard-wq/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.