跳到正文
cccskills
免费在 GitHub 公开

build-design

Turn a Figma file or design image into a working interface using the project's existing components and design tokens, its shared visual settings. Compare the implementation with the design and report differences, missing states, and parts awaiting backend connections.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Builds UI from a Figma file or a design image so it matches the design, using your project's existing tokens and components.

集成工具Figma
查看安装方法

适用场景

  • Implement an interface from a Figma design
  • Build a screen from a supplied design image
  • Reuse existing components and shared visual settings
  • Compare the implementation at specified screen widths

包含的文件(3)

  • SKILL.md5.9 KB
  • agents/openai.yaml107 B
  • figma.md2.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Build design

This skill turns a design into code that matches it. It reads the design at its source, builds with what the project already has, then compares the result against the design before calling it done.

The design decides. Values come from the design file, never from your taste or a pattern you liked elsewhere. A change the design does not show is a deviation, and a deviation is the user's call.

It owns no domain rules. Where the design breaks one, build it as designed and report the conflict with its owner. Contrast is a requirement in better-accessibility and a measurement in better-colors. Focus and semantics are better-accessibility, type is better-typography and spacing and structure are better-layout. Palette is better-colors, copy is better-writing and surfaces, icons and motion are better-ui. Reviewing finished work is interface-review, exploring alternatives is variant and stress testing a component is break.

1. Read the design at its source

A Figma link means the Figma MCP. Search the available and deferred tools for figma before saying it is unavailable, since the server often sits under a name you did not expect. A server that lists only an authenticate tool is connected but signed out, so ask the user to authenticate. With no Figma tool at all, ask the user to connect one, and do not build from memory or guesswork meanwhile. figma.md holds which tools to call and what each returns.

A screenshot or exported image has no values to read. Sizes are ratios to the capture, so state the scale you assumed and treat every measurement as an estimate. Ask for the Figma link when one exists, since it replaces the whole estimate.

Scope the run to the frames named. Frames that show the same thing at different widths are one piece at several breakpoints, not separate pieces.

This step is done when you hold a screenshot of every frame in scope and its values for spacing, size, radius, color, type and the components used. From a Figma file they are exact. From an image they are estimates at the scale you stated.

2. Map the design onto the project

Read the project's tokens and component library before writing anything. Then map every design value to what exists:

In the designIn code
A bound variable or styleThe token with the same name or the same value
A raw value that equals a tokenThat token
A raw value with no tokenThe nearest existing token, listed in the report as rounded
A component instanceThe project's component of that name, with the variant the design shows
A component instance with no project equivalentPlain markup in place, listed as a deviation, and ask whether a component should exist
A one-off group of layersPlain markup in place, not a new component

Never add a token, a component variant or an arbitrary value to hit a number. Stop and ask which way to go when rounding would visibly change the design. That means more than 2px on spacing or size, or a color landing on a different step.

Check what data the design needs and wire it to what exists. Where the backend for part of it does not exist yet, build that part as UI fed by props and name it in the report as unwired.

3. Build only what the design shows

Implement the frames, the breakpoints the frames define and the states the file draws, such as hover, empty or error. A state the file does not draw is not yours to design. Leave it to the existing component's default and list it as missing.

Leave everything around the piece as it was. No neighbouring copy edits, no icon swaps, no "while I was here" cleanups. A diff wider than the design is the most common way this goes wrong.

4. Compare against the design

Render the build at each frame's width beside the design screenshot and walk it element by element. Compare the properties Read the design at its source collected. "Gap is 12px, design is 16px" is a finding. "Feels a bit tight" is not.

With a browser at hand, screenshot each width and compare. Without one, hand over the local URL with the widths to check and say the comparison is unverified. Do not report a match you did not look at.

Fix every mismatch you caused, then compare again. This step is done when every remaining difference is a rounding or a question.

5. Report and stop

ElementDesignBuiltStatus
Card padding20pxp-5Matches
Title size15pxtext-sm, 14pxRounded to token
BadgeFilled pillText labelDeviates, asked: no badge component exists

Then list, one line each, and omit a list with nothing in it:

  • Unwired. What renders from props until the backend exists.
  • Missing states. What the design does not draw.
  • Domain conflicts. Where the design breaks a rule, with the owning skill.

Close by saying where the build is running and at which widths you compared.

Before you finish

You noticeFix
"Figma isn't connected" written before any tool searchSearch the tools for figma first
Values in code that appear in no Figma response, only in the screenshotRead them from the design context
An arbitrary utility such as w-[343px] or a raw hex in the diffMap it to a token, or ask if rounding shows
A new file under the components directory for a frame that is not a componentInline it as plain markup
A loading or error branch the design never drewRemove it, keep the default and list it as missing
Files in the diff that no frame touchesRevert them
A contrast or focus change the design does not showRestore the design and report the conflict with its owner
A comparison claimed with no screenshot of the buildRender each frame width, or say it is unverified
Hard-coded sample data with no mention in the reportList it under Unwired

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Review and fix interface accessibility against WCAG 2.2, a web accessibility standard. Check keyboard navigation, focus, screen reader labels, forms, motion, and zoom, then report failures with their criteria and implement fixes using the project's existing styling system.

中文简介正在准备中。当前显示英语简介。

  • Check flows using only the keyboard
  • Fix control names and screen reader announcements
  • Improve form labels and error feedback
jakubkrehel/skills81742026年10月13日 更新

Build and review interface color systems with palettes, format conversions, and semantic tokens that name colors by purpose. Measure foreground and background contrast, and identify inconsistent themes, misused color roles, and colors outside the supported range.

中文简介正在准备中。当前显示英语简介。

  • Build palettes around interface roles
  • Organize color tokens by purpose
  • Measure text and background contrast
jakubkrehel/skills81742026年10月13日 更新

Review an interface across accessibility, layout, writing, typography, color, and visual polish. It coordinates specialist skills, combines evidence from code and rendered screens, and produces one report with findings ranked by their impact on users.

中文简介正在准备中。当前显示英语简介。

  • Reviewing a screen or complete user flow
  • Checking loading, error, and narrow-screen states
  • Prioritizing interface fixes by user impact
jakubkrehel/skills81742026年10月13日 更新

Review and improve interface grouping, alignment, spacing, and responsive structure. Check whether content and actions remain accessible when screens resize, text grows in translation, zoom increases, or the layout switches to right-to-left reading.

中文简介正在准备中。当前显示英语简介。

  • Checking clipping and overlap on narrow screens or at higher zoom
  • Preparing layouts for longer translated text
  • Reviewing right-to-left layouts
jakubkrehel/skills81742026年10月13日 更新

Set and review how interface text renders, including font loading, size hierarchy, line spacing, wrapping, truncation, and punctuation. Apply fixes within the existing styling system and check how realistic content behaves across different widths.

中文简介正在准备中。当前显示英语简介。

  • Organize heading and body text sizes
  • Fix wrapping and truncated text
  • Keep changing numbers aligned
jakubkrehel/skills81742026年10月13日 更新

better-ui

免费

Refine interface surfaces, icons, and motion with specific values for corners, shadows, alignment, and transitions. Preserve the project's existing design conventions while identifying visual inconsistencies, touch interaction problems, and missing alternatives for reduced motion.

中文简介正在准备中。当前显示英语简介。

  • Refining corners and shadows on nested cards
  • Unifying icon appearance across interaction states
  • Adjusting button feedback and entrance animations
jakubkrehel/skills81742026年10月13日 更新

查看 jakubkrehel 的全部技能

报告此技能的问题