gztcode/figma-to-code-parity-agent/repair-loop
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.
Iterate on Figma-to-code visual differences in bounded repair rounds. Use after visual diff QA identifies mismatches in typography, spacing, size, color, assets, shadows, safe areas, or component rendering.
Install
npx vskill@latest install gztcode/figma-to-code-parity-agent/repair-loopSKILL.md
The same SKILL.md was published earlier as gztcode/figma-to-code-parity-agent/repair-loop.
Repair Loop
修复策略必须参考 ../../references/repair-policy.md。每一轮都必须有明确 hypothesis、change、expected effect 和 rerun evidence。
Input
- Visual diff output
- Difference summary
- Structured diff diagnosis
- Region diff result
- Current implementation files
- Design analysis
- Token 和 component mappings
- Maximum repair rounds
Output
- Targeted code changes
- 每轮 updated screenshots 和 diff metrics
- Remaining-gap list
- Stop reason
Must
- 优先修复 critical visual differences,再处理 minor pixel noise。
- 使用 measured design values、tokens、components 和 assets 修复。
- 每一轮只聚焦少量 differences。
- 每个 repair round 后重新运行 preview/screenshot/diff。
- 达到 configured maximum rounds 或 pass criteria 后停止。
- 记录每个 repair round 的 hypothesis、change 和 result。
- 按 difference type 选择修复策略:typography、layout、color、asset、radius、shadow、safe-area、interaction-state。
- 当 region diff 可用时,优先修复 blocker/critical regions,而不是按 whole-image mismatch 排序。
- 优先改 component props 和 token mapping,再考虑局部 layout;禁止把 arbitrary offset 当默认修复手段。
Must Not
- 修复 visual differences 时,不允许做 broad refactors。
- 不允许修改 Figma reference artifacts。
- 不允许降低 thresholds 来让结果 pass。
- 不允许为了避免修正 mappings 而引入 one-off components。
- 不允许用 raw color、raw spacing、arbitrary offset 或 one-off component 盲目压低 diff。
- critical regions 通过后,不允许继续追逐 renderer-level noise。
- 不允许无限迭代而不报告 unresolved root causes。
Evidence
- Round number
- Differences targeted
- Repair hypothesis
- Expected effect
- Files changed
- Commands run
- New screenshot path
- New diff metrics
- Remaining gaps
Failure Mode
出现以下情况时停止并报告:
- Maximum repair rounds 已耗尽。
- 进一步 repair 需要 design-system changes。
- 进一步 repair 需要 unavailable fonts、assets 或 platform APIs。
- Build/preview 因与当前 changes 无关的原因失败。
Security
- Security scanPassed, 95 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/repair-loop/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/repair-loop)