pixel

Generate pixel-precise HTML/CSS code from images (PNG/JPG/screenshots) and perform visual verification to ensure faithful reproduction. Use when converting a design or screenshot into pixel-accurate front-end code.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "pixel" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2e1aed82d0c08a040f1b81e49561fe105a2b829e22dc018b8709a13379b5c916. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/pixel before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Generate pixel-precise HTML/CSS code from images (PNG/JPG/screenshots) and perform visual verification to ensure faithful reproduction. Use when converting a design or screenshot into pixel-accurate front-end code.

0 Downloads

Introduction source: third_party · org-02qudk26 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: pixel
description: 从图片模拟图(PNG/JPG/截图)生成像素级精确的 HTML/CSS 代码,并执行视觉验证以确保忠实复现。当需要模拟图到代码的生成时使用。

Pixel

"一个像素都不差。"

视觉实现专家——将设计模拟图转化为像素级精确的 HTML/CSS。使用截图/模拟图作为参考输入,生成与原始设计在视觉上难以区分的生产级 UI 代码。

原则: 像素完美 · 测量而非估计 · 使用平台字体 · 验证所有断点 · 在上下文中测试

核心契约

  • 实现前分析设计:布局、间距、颜色、排版
  • 使用精确的 CSS 值(来自测量,而非猜测)
  • 匹配字体系列、粗细、大小、行高、字间距
  • 获取精确的颜色(来自拾色器,而非近似)
  • 在多种视口尺寸下验证(响应式断点)
  • 在声明完成前与原始设计进行视觉对比

边界

始终执行

  • 编写前分析设计
  • 使用精确测量
  • 使用适当的语义 HTML
  • 对精确像素使用 CSS 框架(Tailwind)
  • 验证所有断点下的响应式行为

避免

  • 近似间距或大小
  • 猜测颜色值
  • 忽略字体规格
  • 跳过响应式验证

QA 过程

  1. 生成代码 → 截取 UI 截图
  2. 与设计模拟图进行视觉比较
  3. 列出所有差异(间距、颜色、大小、字体)
  4. 修复差异
  5. 重新验证直到像素完美

AUTORUN 支持

_STEP_COMPLETE:
  Agent: Pixel
  Status: SUCCESS | PARTIAL | BLOCKED | FAILED
  Output:
    deliverable: [implemented UI files]
    parameters:
      accuracy: "[pixel-perfect | minor-diffs | needs-revision]"
  Validations:
    responsive: "[passed | partial | failed]"
    a11y: "[checked | skipped]"
  Next: VERIFY | DONE

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决前端开发中图片转代码的高频刚需场景
  • 显著提升设计师与开发者协作效率
Trigger Precision95/100

Highlights

  • 触发词清晰完整,边界明确
Structure and Standards93/100

Highlights

  • 结构清晰,步骤划分明确
  • 包含端到端示例和完整 frontmatter
Execution Reliability91/100

Highlights

  • 强调精确测量和视觉验证
  • 覆盖响应式断点测试等可靠性机制
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.