agentsclimarketplace

Figma driven implementation

Skill fatsecret-group/fatsecret-workflow/skills/figma-driven-implementation

Use when implementing UI components that have a Figma design reference with known nodeIds, to ensure layout, sizing, spacing, and colors match the design exactlyFrom its SKILL.md

Install
npx -y skills add fatsecret-group/fatsecret-workflow --skill figma-driven-implementation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.9 KB, as published. Nobody here has run it

When to Use

  • Invoked from a task's Implement step (the writing-plans standard cycle) when the task creates or modifies UI
  • Component nodeIds are available — typically listed in the task's Files section, or carried over from story-analysis output (Source / Key UI Specs)
  • Do NOT invoke if the current task has no Figma design association

The Rule

When implementing ANY visual component from a Figma design, query Figma for that specific component. Do NOT rely on memory, the plan, or approximate values.

Per-Component Workflow

For each UI element you are implementing:

  1. Query: Call mcp__figma__get_design_context with the specific component's nodeId (from the task's Files section or story-analysis output)
  2. Extract: Pull exact values from the returned code/metadata:
    • Dimensions (width, height — use fixed or flexible as design indicates)
    • Padding and margins
    • Font: family, size, weight, line height
    • Colors (map to FSColorExtension tokens when possible, otherwise use literal with a // Figma: #hex comment — do NOT use FSColor, it is outdated and being replaced)
    • Corner radius
    • Shadows and opacity
  3. Implement: Write SwiftUI code using these exact values
  4. Next: Move to the next component

When metadata is incomplete: if get_design_context omits constraints, variants, states, or asset details for a component, do NOT infer "exact values" silently — fetch the component's screenshot via Figma MCP to corroborate, or ask the user. Record which values came from metadata vs screenshot vs user answer.

For each component:
  get_design_context(nodeId) → extract values → write SwiftUI → next

Mapping to Project Design System

Figma valueProject equivalent
ColorsFSColorExtension (check FSColorExtension.swift first). Do NOT use FSColor — it is outdated and being replaced.
Fonts (SwiftUI)FSFont (check FSFont.swift first)
Fonts (UIKit / NSAttributedString)Prefer the NSAttributedString extension in Extensions.swift that initializes with FSFont, instead of assembling attribute dictionaries by hand
ComponentsDSComp* series, existing SwiftUI views
SpacingUse literal values if no spacing tokens exist

If an exact FSColorExtension/FSFont match exists, use it. If not, use the literal value with a // Figma: #hex or // Figma: <font>/<size>/<weight> comment.

After All Components Are Implemented

This skill's job ends at per-component Figma extraction + implementation. The final screenshot-vs-Figma visual comparison is owned by review-task (its UI Verification check) — it is NOT done here. Keeping a single visual gate avoids duplicating the comparison at implementation time and matches the writing-plans Implement step ("no simulator run — that's review-task's job").

Before handing off, confirm each component was implemented from a fresh per-component Figma query (not from memory or the plan). If you notice a discrepancy while implementing, fix it by re-querying that component's nodeId — but do not run a simulator-screenshot / user-comparison pass here; that happens in review-task Step 2.

Red Flags

ThoughtReality
"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.

This Is a Rigid Skill

Follow exactly. Do not skip the per-component query step for any reason.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.