Skip to content
Back to skills

Figma Check

ASecurity

Downloads node and render from Figma and compares them with the app's real screen, measurements included. Recognises an expired token in a single call, and when the design looks wrong it stops and asks instead of deciding on its own.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgonodeapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add Spaghetticoders/developer-skills --skill figma-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Figma Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Figma Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/spaghetticoders-figma-check/badge)](https://www.skillsdirectory.com/skills/spaghetticoders-figma-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: figma-check
description: Downloads node and render from Figma and compares them with the app's real screen, measurements included. Recognises an expired token in a single call, and when the design looks wrong it stops and asks instead of deciding on its own.
---

# Comparing with Figma

## Access

The Figma personal access token lives in an environment variable (`FIGMA_TOKEN`),
never in the repo. The file key lives in the project docs. **A project can have
more than one file**: asking the wrong file for a node returns `null` without
saying why, and it's the first place time gets lost.

```sh
curl -sH "X-Figma-Token: $FIGMA_TOKEN" "https://api.figma.com/v1/files/$KEY/nodes?ids=123:456"
curl -sH "X-Figma-Token: $FIGMA_TOKEN" "https://api.figma.com/v1/images/$KEY?ids=123:456&format=png&scale=2"
```

Ids use `-` in URLs and `:` in the API. The render comes back as a short-lived
URL: download it right away.

**The token expires.** The signature is `{"status":403,"err":"Token expired"}` on
**any** call, `/v1/me` included: try that one first and you'll know in one shot
whether it's the token or the permissions. When it has expired, don't look for
workarounds: ask the user for a new token.

## Finding the node

If you only have the screen's name, walk down level by level instead of guessing:
`?depth=1` gives the pages, `?depth=2` the sections, then the frames inside the section.

## Comparing

Put the render next to the simulator capture (`gui-test`) and look at **text,
sizes and order**, not the general impression. For text, read `characters` from
the node: that's the source, not what you read in the render.

**Watch out for truncated text.** If a title ends with an ellipsis, check
`textTruncation`, `maxLines` and the box width: if they aren't there, **the
designer typed the dots** and it isn't an elision. It happens.

## When the design looks wrong

**Stop and ask before implementing.** Don't invent copy or measurements, and
don't silently ship the version that looks right to you.

Don't block everything else: implement what doesn't depend on that answer,
hold back the uncertain piece, and ask at the right moment.

If the user decides to deviate from the node, **write it down where someone will
find it**: a code comment with the node id and the measurement, the docs, and a
test that fails if it goes back. Otherwise the next person who rereads Figma
"restores" it in good faith.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.