House rules and verified recipes for working in Figma through the Figma MCP (use_figma, upload_assets, get_screenshot) and, for local fonts, Figma in the user's Chrome. Images are always cropped IN Figma (upload the whole image into a layer, the frame crops it; never pre-crop); uploading local files into existing layers; reusing one upload in many layers; boards of Instagram posts and stories (naming, layout, carousels); re-reading the user's live edits before restructuring; matching an image...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Figma Mcp?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dima-rdnv-figma-mcp)
---
name: figma-mcp
description: House rules and verified recipes for working in Figma through the Figma MCP (use_figma, upload_assets, get_screenshot) and, for local fonts, Figma in the user's Chrome. Images are always cropped IN Figma (upload the whole image into a layer, the frame crops it; never pre-crop); uploading local files into existing layers; reusing one upload in many layers; boards of Instagram posts and stories (naming, layout, carousels); re-reading the user's live edits before restructuring; matching an image the user shows to its source file; screenshots of very large boards; traps (auto-layout white fills, constraints on resize, local fonts, sections). Use EVERY time a task touches Figma, together with the figma-use plugin skill.
---
# Figma through MCP: house rules and recipes (verified Dec 2026, Figma web/desktop, Windows)
The Figma plugin skills (`figma-use`, `figma-generate-design`) cover the Plugin API itself. This
skill adds what was learned on real boards: the user's rules first, then upload and layout recipes,
then traps.
## The user's rules
1. **Crop in Figma, never pre-crop.** Upload the whole image and let the frame do the cropping:
a rectangle the size of the slot with an `IMAGE` fill, `scaleMode: "FILL"`, inside a frame with
`clipsContent = true`. The designer re-frames by moving or scaling the layer, or by editing the
image crop. Do not cut 4:5 or 9:16 versions in Python first.
- Resizing is fine only to get under the 10 MB upload limit (keep the aspect ratio): e.g. a
5888 px JPEG down to 3000 px on the long side. Cut-out PNGs keep their alpha.
- "Contain" slides (a cut-out on white with margins): make the rectangle the image's aspect ratio,
centred, still `FILL`. Wide video on a tall frame: full width, centred on a frame background
sampled from the image border, so it blends.
- A video that has its own 4x5 / 9x16 exports: use each export's first frame. Other videos: one
first frame (`ffmpeg -frames:v 1`), check it is not black, and name the layer
`<what> (video, first frame)` so the designer knows to swap in the video.
2. **Re-read before you restructure.** The designer edits between turns: moves slides to other
posts, deletes frames, scales or rotates the media, reorders. Read the current tree first (frame
names, x/y, children, rotation, fills) and keep those edits: move their frames instead of
rebuilding them, then rename everything by position.
3. **Name frames for export by position**, e.g. `<Project> - Post 3 - 07` (1080x1350) and
`<Project> - Story 3 - 07` (1080x1920). After any reorder, rename each row left to right.
## Uploading local images into layers
1. Create the target layers first (placeholder grey fill), collect their ids.
2. `upload_assets` with `count = N`, `nodeIds = [...]`, `scaleMode: "FILL"`, `currentPageId`.
At most 60 per call; each URL is single-use and expires in 10 min.
3. POST each file as **raw bytes** with the right `Content-Type`
(`curl -X POST -H "Content-Type: image/jpeg" --data-binary @file <submitUrl>`). Raw bytes keep the
layer name you set; the multipart form renames the layer to the file name. Six parallel POSTs
handled 44-48 files without errors.
4. The same image in several layers (post and story): upload once, then in `use_figma` copy
`{ type: "IMAGE", imageHash, scaleMode: "FILL" }` to the other layers.
5. Check afterwards that every frame has an image fill (a `findAll` for frames without one).
6. **Upload PNG, not WebP, for cut-outs.** A lossy WebP with alpha uploaded fine (`success`, new `imageHash`) but never
rendered: `getImageByHash(h).getSizeAsync()` threw "Could not read image size from image metadata" and screenshots
showed an empty layer. The same render as an 8-bit PNG worked (2400x1800 ~3-4 MB, 3840x3840 ~7 MB; zeroing RGB
under alpha 0 shrinks it). After every upload, `getSizeAsync()` on the new hash is the quick check (Dec 2026).
7. New renders into a COPY of existing panes: duplicate the frames with `node.clone()`, then upload into the copy's
image layers. Size, rotation, position and `imageTransform` stay, so a render with the old one's pixel size and
framing drops into the same crop; a hidden duplicate of the same render gets the hash copied too.
Images from the web: the Plugin API cannot fetch URLs; relay them with
`curl -sL <img> | curl -X POST -H "Content-Type: image/jpeg" --data-binary @- <submitUrl>`.
## Board of Instagram posts and stories
Layout that reads well zoomed out (copy of the user's own socials boards):
- A section with a dark fill (~#444). One band per post: title (`Archivo Regular` 300 px, white),
4x5 row 682 px below the title, 9x16 row 2617 px below it, frames 1080 wide with 40 px gaps
(pitch 1120), next band 5368 px lower. Row labels `4x5` / `9x16` (200 px, white 60 %) to the left.
- Each frame: solid background sampled from the image (median of a 6 px border), one media layer
named after its source.
- Children of a SECTION are positioned relative to the section; grow it with
`resizeWithoutConstraints` after building.
- Instagram allows 20 slides per carousel: flag any row longer than that instead of cutting it.
- Inserting a post between others: move every node below the cut down by one band, rename the
titles, build the new band, rename the frames of every band by x order.
## Finding the source of an image the user shows
- Screenshots of boards or attached stills: resize the candidate files and the crop to 48x48
(or 48x64), subtract the mean, normalise, dot product. A true match scores 0.97-1.0; the best
wrong one stayed below 0.82. Use JPEG `draft()` to read 15 MB originals fast (176 files in 25 s).
- Splitting a board screenshot into tiles: mask pixels that differ from the background colour, label
connected components, then split columns where the row extents jump or a gap row appears. Two
same-width images stacked without a gap merge; fix those by hand from the expected aspect.
- A file-list screenshot where the user selected files: selected rows have a lighter background
(two clean levels, e.g. 25 vs 51 grey); sample each row's background beside the names.
## Screenshots of very large boards
`get_screenshot` with `maxDimension` up to ~9000 returns a URL; download it and crop bands or rows
with Pillow before looking. For one frame use `node.screenshot()` inside `use_figma` or a small
`get_screenshot` with `enableBase64Response`.
## Traps
- `figma.createAutoLayout()` frames come with a white fill: set `fills = []` on containers.
- `frame.resize()` applies the children's constraints: a group with bottom constraints slides down
(it ended up outside the frame). Position children first, then `resizeWithoutConstraints`.
- Local fonts (anything not in `figma.listAvailableFontsAsync()` inside `use_figma`, e.g. a studio's
licensed sans): text in that font cannot be edited, appended or moved to another parent from
`use_figma`. Do those steps in the user's Chrome where they are signed in to Figma: the editor
exposes the `figma` global 15-30 s after the file loads (poll for it), use top-level `await` and
return `JSON.stringify(result)`. Structure and pictures stay in `use_figma`.
- Switch pages once per `use_figma` call (`await figma.setCurrentPageAsync(page)`).
- Rotated media (the designer rotating a landscape video 90 degrees to fill a portrait frame) reads back
with `rotation` set and swapped width/height; keep it when moving the frame.