gztcode/figma-to-code-parity-agent/screenshot-runner
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.
Run the target preview, simulator, emulator, browser, or snapshot test and capture local screenshots for Figma-to-code visual parity validation. Use after platform implementation and before visual diff analysis.
Install
npx vskill@latest install gztcode/figma-to-code-parity-agent/screenshot-runnerSKILL.md
The same SKILL.md was published earlier as gztcode/figma-to-code-parity-agent/screenshot-runner.
Screenshot Runner
本 skill 负责真实运行目标 UI 并产出 local screenshot。没有 local screenshot,就不能进入 visual parity 结论。
Input
- Target platform
- Execution mode
- Project path
- Target screen/component path
- Device/viewport/scale
- Baseline width 和 device family
- Build or preview command
- Tool capability map and selected screenshot route
- Expected output artifact directory
Output
- Run command result
- Local screenshot path
- Runtime environment notes
- Screenshot exclusions 或 normalization notes
Must
- 优先使用目标平台真实预览路径:SwiftUI Preview、iOS Simulator、Android Emulator、browser 或 snapshot test。
- 按
tool-capability-router的 selected route 执行截图;如果 selected route 不可用,必须更新 fallback reason。 - iOS / SwiftUI 且 Axiom simulator/UI route 可用时优先使用;否则回退到 project screenshot command、snapshot test 或
xcrun simctl。 - 如果需要 console evidence,iOS 可优先使用 Axiom
xclog工具;否则记录 fallback logs。 - Fast mode 可跳过截图,但必须在 report 中列为 skipped check。
- Standard/strict mode 必须产出 local screenshot。
- 确认 local screenshot 对应同一个 Figma node、state、viewport 和 scale。
- 记录设备、OS/runtime、viewport、scale、orientation 和 screenshot time。
- 对 iOS 记录 baseline width;默认 375pt 可用,但 Figma/task 指定尺寸优先。
- 如果 status bar、home indicator、navigation chrome 被排除,必须记录。
- 将 screenshot artifact 保存到 task-local output directory。
- 失败时保留 command、stdout/stderr 摘要和下一步 blocker。
Must Not
- 不允许用未运行代码的静态截图冒充 local screenshot。
- 不允许用不同 device、state、scale 或 scroll position 的截图进入 diff 而不报告。
- 不允许隐藏 preview/simulator/emulator 启动失败。
- 不允许声称使用 Axiom 截图路线,除非 capability map 和执行证据都支持。
- 不允许修改 Figma screenshot 来适配 local screenshot。
- 不允许在没有截图证据时声称实现可视结果正确。
- 不允许在 fast mode 跳过 screenshot 后声称 parity pass。
Evidence
- Command run
- Selected screenshot route
- Fallback route and reason
- Command result
- Device/runtime details
- Baseline width
- Local screenshot path
- Screenshot dimensions 和 scale
- Exclusions/normalization notes
Failure Mode
出现以下情况时报告 blocker:
- Project 无法 build/preview/run。
- Simulator/emulator/browser 不可用。
- Target screen 无法导航到。
- Screenshot 无法捕获或尺寸与 baseline 不可解释地不一致。
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
- SKILL.md in the repositoryCheckingskills/screenshot-runner/SKILL.md
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
[](https://verified-skill.com/skills/gztcode/figma-to-code-parity-agent/screenshot-runner)