gztcode/figma-to-code-parity-agent/ios-swiftui-builder

Claude Code and agent skill by gztcode/figma-to-code-parity-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement Figma designs as native iOS SwiftUI code with visual parity constraints. Use when the target platform is iOS SwiftUI and the task requires preserving Figma typography, spacing, assets, components, safe areas, and screenshot-verifiable fidelity.

Install

npx vskill@latest install gztcode/figma-to-code-parity-agent/ios-swiftui-builder

SKILL.md

The same SKILL.md was published earlier as gztcode/figma-to-code-parity-agent/ios-swiftui-builder.

iOS SwiftUI Builder

执行本 skill 时读取 ../../references/ios-swiftui-parity.md、../../references/ios-ui-guardrails.md、../../references/ios-baseline-assets-scaling.md 和 ../../references/tool-capability-routing.md。如果项目有 Code Connect/component mapping,优先按映射组装页面。

Input

  • Design analysis
  • Token mapping
  • Component mapping
  • Asset mapping
  • Implementation gate result
  • Tool capability map
  • Target SwiftUI project path
  • Target screen 或 component path
  • Device/viewport
  • Baseline width 和 iOS version

Output

  • SwiftUI code changes
  • 需要时的 Asset catalog changes
  • Preview 或 simulator run plan
  • 给 visual QA 的 notes

Must

  • 复用 existing SwiftUI components、modifiers、typography helpers 和 asset conventions。
  • 如果 Axiom SwiftUI routing 可用,先按 axiom-swiftui 检查布局、preview、navigation、architecture 和 performance 相关约束。
  • 如果 build、preview 或 simulator 环节出现问题,先按 axiom-build 路由处理环境/构建问题。
  • 页面由 SwiftUI 组装,核心组件由 Design System 承载。
  • 只在 implementation-gate 为 pass 或已批准 degraded 时写代码。
  • 遵守 implementation gate 中的 allowed implementation scope。
  • 将 Figma typography 映射到 app typography tokens,或带 line-height handling 的明确 Font definitions。
  • 可用时使用 Color assets 或 app color tokens。
  • 尊重 safe areas、status bar、navigation bars、tab bars 和 keyboard-related layout。
  • 明确 baseline device、screen width、iOS version、safe area assumptions。
  • 默认可使用 375pt 作为常见 iOS baseline;如果 Figma 或任务指定其他尺寸,必须以指定尺寸为准。
  • 按 scaling policy 区分可响应式缩放的容器/图片与不可盲目缩放的 typography/icon/spacing/radius/button height。
  • 按产品已有模式使用 @ScaledMetric、Dynamic Type handling 或 fixed metrics。
  • 除非任务明确要求 fixed screenshot parity,否则 screen implementation 要能适应 target device。
  • 当项目使用 asset catalogs 时,把 assets 添加到 Assets.xcassets。
  • 在 visual QA 前,可用时运行 SwiftUI preview、simulator 或 project build。
  • 使用 tool-capability-router 选出的 build/preview route;如果使用 fallback,记录原因。

Must Not

  • 不允许把 Figma layer dump 实现成没有 semantic structure 的深层 ZStack/VStack/HStack。
  • 不允许走低质量路径 Figma -> MCP -> AI 直接写一整套 SwiftUI,除非项目没有 Design System 且 report 明确标注风险。
  • 不允许在 gate 未通过时自行补 token、补组件或伪造 asset。
  • 不允许使用 arbitrary .offset() 追视觉,除非 Figma 明确要求绝对定位且 report 说明原因。
  • 不允许所有元素按屏幕宽度盲目等比缩放。
  • 不允许使用 fixed y 坐标处理底部按钮、Safe Area、NavigationBar、TabBar 或 keyboard avoidance。
  • 当 tokens 存在时,不允许 hardcode colors、fonts、spacing、radius 或 shadows。
  • 不允许未经批准修改 shared components 或 shared tokens。
  • 不允许引入 UIKit,除非任务明确允许。
  • iOS / SwiftUI 且 Axiom 可用时,不允许绕过 Axiom routing 直接按泛化经验写复杂 SwiftUI。
  • 当 measured values 或 tokens 存在时,不允许用随意的 Spacer() 或 padding values 靠眼睛对齐。
  • 不允许用 system default typography 替代 Figma typography 而不报告。
  • 除非设计明确使用 SF Symbols,否则不允许用 Image(systemName:) 替代 Figma-provided custom icons。
  • 不允许忽略 iOS renderer 在 shadows、blur、text 和 safe area 上的差异。
  • 不允许修改 unrelated app navigation、data models 或 app lifecycle code。

Evidence

  • Changed Swift files
  • Changed asset catalog files
  • Reused components 和 modifiers
  • 使用过的 token mappings
  • Build/preview/simulator command 和 result
  • Tool route used and fallback reason
  • Baseline/scaling assumptions
  • 给 QA 的 local screenshot path

Failure Mode

出现以下情况时,报告 blocker 或 limitation:

  • 项目因为与当前任务无关的原因无法 build 或 preview。
  • Required fonts 在 iOS 中不可用。
  • 某个 Figma effect 如果没有 custom renderer 就无法在 SwiftUI 中高保真表达。
  • Existing components 无法表达 required variant,除非修改 design system。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gztcode/figma-to-code-parity-agent/ios-swiftui-builder/badge)](https://verified-skill.com/skills/gztcode/figma-to-code-parity-agent/ios-swiftui-builder)

Something wrong with this skill or its page? Tell us.