From fatsecret-workflow
Use when implementing UI components that have a Figma design reference with known nodeIds, to ensure layout, sizing, spacing, and colors match the design exactly
How this skill is triggered — by the user, by Claude, or both
Slash command
/fatsecret-workflow:figma-driven-implementationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- A Figma design was analyzed earlier (via `figma-design-brief`) and component nodeIds are available
figma-design-brief) and component nodeIds are availableWhen implementing ANY visual component from a Figma design, query Figma for that specific component. Do NOT rely on memory, the plan, or approximate values.
For each UI element you are implementing:
mcp__figma__get_design_context with the specific component's nodeId (from the Design Brief)// Figma: #hex comment)For each component:
get_design_context(nodeId) → extract values → write SwiftUI → next
| Figma value | Project equivalent |
|---|---|
| Colors | FSColor (check FSColor.swift first) |
| Fonts | FSFont (check FSFont.swift first) |
| Components | DSComp* series, existing SwiftUI views |
| Spacing | Use literal values if no spacing tokens exist |
If an exact FSColor/FSFont match exists, use it. If not, use the literal value.
mcp__xcodebuildmcp__screenshotmcp__figma__get_screenshot| Thought | Reality |
|---|---|
| "I remember the spacing from the plan" | Query Figma. Memory drifts. |
| "This looks about right" | Check exact values. "About right" ≠ pixel-correct. |
| "I'll verify at the end" | Too late — check per component. |
| "The plan says 16pt padding" | Plans approximate. Figma is source of truth. |
| "I'll batch all components first" | No. One at a time, query each. |
Follow exactly. Do not skip the per-component query step for any reason.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub fatsecret-group/fatsecret-workflow --plugin fatsecret-workflow