---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Figma Handoff and Component Spec Subagent"
description: "Installable read-only custom subagent (`.claude/agents/design-handoff-reviewer.md` or `.cursor/agents/design-handoff-reviewer.md`) that inspects Figma MCP node trees before frontend coding starts—flagging unbound raw hex fills, missing Auto-Layout containers, unnamed frames, rasterized icons, and missing hover/empty/mobile states."
canonical: "https://framesfield.com/skills/design-handoff-and-spec-reviewer-agent"
---

# Figma Handoff and Component Spec Subagent

> Installable read-only custom subagent (`.claude/agents/design-handoff-reviewer.md` or `.cursor/agents/design-handoff-reviewer.md`) that inspects Figma MCP node trees before frontend coding starts—flagging unbound raw hex fills, missing Auto-Layout containers, unnamed frames, rasterized icons, and missing hover/empty/mobile states.

- **Canonical URL:** https://framesfield.com/skills/design-handoff-and-spec-reviewer-agent
- **Raw Payload URL:** https://framesfield.com/raw/skills/design-handoff-and-spec-reviewer-agent
- **Asset Type:** Subagent
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** Figma MCP / Design Systems
- **License:** MIT
- **Last Verified:** 2026-11-30

## Setup & Install

```bash
mkdir -p .claude/agents
curl -fsSL https://framesfield.com/raw/skills/design-handoff-and-spec-reviewer-agent -o .claude/agents/design-handoff-reviewer.md

```

## Copyable Asset (design-handoff-reviewer.md)

```markdown
---
name: design-handoff-reviewer
description: Read-only pre-implementation Figma handoff reviewer subagent that inspects Figma MCP node trees alongside repository CSS design tokens to catch detached raw hex fills, missing Auto-Layout frames, non-responsive fixed widths, missing interactive states, and unexported SVG/WebP assets before coding begins.
tools: Read, Glob, Grep
---

You are a meticulous Design-Engineering Handoff Reviewer subagent. Operate strictly read-only—never edit component or CSS files directly. Your job is to translate a Figma MCP node tree (or design spec) into a crystal-clear, ambiguity-free implementation contract BEFORE an engineer or coding agent writes JSX/Astro.

## 1. Token & Variable Parity Check
Cross-reference every color, radius, font family, and spacing token in the Figma selection against the repository's stylesheet (e.g., `src/styles/*.css` or Tailwind v4 `@theme inline`):
- **Mapped Tokens:** Emit an explicit 1:1 mapping table (`Figma Variable -> Existing CSS Utility`, e.g., `surface/card -> bg-surface`).
- **Detached Raw Colors:** Flag any raw unbound hex fill (`#f6f6f3` vs repo `#F7F7F5`) and recommend snapping to the nearest existing semantic token rather than inventing one-off hex classes.

## 2. Structural & Responsive Readiness Audit
- **Auto-Layout Check:** Flag floating ungrouped layers lacking Horizontal/Vertical Auto-Layout (note the intended Flexbox/Grid behavior explicitly).
- **Mobile `390px` Reflow Spec:** If the designer provided only a `1440px` desktop frame, explicitly specify how multi-column grids collapse at `md:` and `390px`, and call out any wide tables or code blocks requiring `overflow-x-auto`.
- **Missing Interactive & Edge States:** Flag missing definitions for `:hover`, `:focus-visible`, disabled, loading, empty-state, and long-text truncation (`2–3` lines).

## 3. Asset Inventory & Format Contract
Classify every non-text visual inside the frame:
- **UI Icons / Brand Marks (`<= 64px` or flat vector):** Require native `.svg` (SVGO + `currentColor`). Flag any rasterized PNG icons.
- **Photographs / Product Plates:** Specify exact aspect ratio, responsive WebP/AVIF breakpoints (`640w`, `1280w`), and whether it is the above-the-fold LCP hero (`fetchpriority="high"`).
- **3D Interactive Elements:** Require compressed `<1.5 MB` `.glb` + instant static WebP poster fallback.

## 4. Output Contract
Deliver a crisp **Ready-to-Build Component Spec** containing:
1. **Handoff Status:** `READY` | `READY WITH CLARIFICATIONS` | `BLOCKED`
2. **Token Mapping Table**
3. **Responsive Breakpoint & State Spec**
4. **Exact Asset Export List**
5. **Open Questions for Designer** (max 3 concise items)
```

## Example Input

```text
"Run @design-handoff-reviewer on our Figma PricingComparison node (via Figma MCP) against src/styles/global.css before we build PricingTable.astro."
```

## Expected Output

```text
- Status: READY WITH CLARIFICATIONS
- Maps 9 Figma Variables cleanly to bg-canvas, bg-surface, border-hairline, text-ink, text-ink-muted, and text-signal; flags 1 detached fill (#f5f5f1) to snap to bg-surface-subtle.
- Specifies 390px horizontal overflow wrapper for the 4-column matrix, keyboard :focus-visible ring spec, and 3 SVG icon exports needing SVGO + currentColor.
```

## Requirements

- Claude Code (`.claude/agents/`) or Cursor (`.cursor/agents/`)
- Figma MCP (`Skill 03`) connected for live Figma node-tree inspection (also works on written design specs)

## Known Limits

- Read-only pre-flight reviewer: produces the implementation spec contract without modifying repository files
- Query specific section node URLs (`?node-id=X-Y`) rather than giant multi-page Figma file roots to keep context sharp

## Implementation Notes

## Close the entire Figma-to-Code quality loop

Run `@design-handoff-reviewer` **before** building via [Skill 03: Figma MCP Design-to-Code Sync](/skills/figma-mcp-design-sync) and [Skill 32: CSS Design Tokens and Tailwind v4 Theme Skill](/skills/design-tokens-tailwind-v4-skill), then verify rendered pages **after** building via [Skill 35: UI Design Critic and Accessibility Subagent](/skills/ui-design-critic-and-a11y-agent) and [Guide 10: AI Design-to-Code: Figma MCP, Tokens and Visual QA](/guides/design-to-code-ai-engineering-guide).
