Skip to content
FramesField
Custom Subagent Developer / Local Tooling design-handoff-reviewer.md
Verified Nov 30, 2026

Figma Handoff and Component Spec Subagent

How to install this Subagent

Install into .claude/agents/ (Claude Code) or .cursor/agents/ (Cursor), then run @design-handoff-reviewer on any Figma section URL before your main coding agent generates component code.

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.

Compatible agent hosts
Claude Code Cursor Codex
Target tool: Figma MCP / Design Systems · License: MIT
  1. STEP 01
    Install the Figma Handoff Reviewer subagent

    Pick Claude Code or Cursor below and download design-handoff-reviewer.md straight from /raw/skills/.

  2. STEP 02
    Inspect a Figma selection URL before coding

    Delegate https://figma.com/design/.../?node-id=X-Y to @design-handoff-reviewer via Figma MCP.

  3. STEP 03
    Catch unbound variables & missing states early

    Maps exact Figma Variables to repo CSS tokens and flags missing mobile/error/focus specs before engineering starts.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (design-handoff-reviewer.md) ↓
Claude Code (.claude/agents/design-handoff-reviewer.md) bash
Installs the read-only pre-implementation Figma handoff auditor into .claude/agents/.
mkdir -p .claude/agents
curl -fsSL https://framesfield.com/raw/skills/design-handoff-and-spec-reviewer-agent -o .claude/agents/design-handoff-reviewer.md

2. Inspect or download the full Subagent file

This is the exact raw file served at /raw/skills/design-handoff-and-spec-reviewer-agent.

Figma Handoff and Component Spec Subagent design-handoff-reviewer.md
---
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)

3. Test it right away (sample prompt & result)

Sample prompt / input
"Run @design-handoff-reviewer on our Figma PricingComparison node (via Figma MCP) against src/styles/global.css before we build PricingTable.astro."
What happens when it runs
- 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.

What you need & known limits

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)

Watch out for

  • 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

Frequently Asked Questions

How is @design-handoff-reviewer different from @ui-design-critic?
@design-handoff-reviewer runs BEFORE coding—inspecting the Figma design tree against your existing Tailwind tokens to prevent guesswork upfront. @ui-design-critic (Skill 35) runs AFTER coding—inspecting live rendered 1440px/390px Playwright screenshots and DOM accessibility.
Can this subagent catch when a designer accidentally uses a slightly off-brand hex?
Yes. Reading your repo's CSS token file alongside the Figma node fills immediately catches near-duplicate detached hexes (like #f6f6f3 instead of #F7F7F5) so engineers snap cleanly to semantic tokens instead of polluting CSS.
Use this page in AI tools or notes
raw .md