agentleFS
RamezHanyRamezHany/payload-cms-skills/skills/figma-handoff/SKILL.md

figma-handoff

Skill0 starsChanged 13 days agoMITView on GitHub

Turn a Figma file into the Payload CMS frontend. Use when the brief includes a Figma link, a frame, or a design handoff, before bootstrap or before changing an existing Next.js layout. Maps frames to locale routes, writes tokens into the existing Tailwind theme, and stops instead of inventing screens.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read PROJECT.md. Under ## Design, set Figma file to the URL the client gave.

    line 16
  2. Distinctive:

    Use the Figma tools available in this session (a file session, then the frame's layout and text).

    line 21
  3. Distinctive:

    If no Figma tool is available, stop.

    line 23
  4. Very specific:

    Write a frame map in PROJECT.md under ## Design before editing React.

    line 25
  5. Very specific:

    Follow the project-architecture skill first.

    line 29
  6. Very specific:

    If the app is not Next.js yet, stop after the frame map and follow scenario C in the payload-project-kickoff skill.

    line 40
  7. Very specific:

    Read colors, type, radius, and spacing from the variables or from the frame, and write the hex values and font names into PROJECT.md.

    line 44
  8. Very specific:

    Put them in the Tailwind theme the project already uses (src/app/(frontend)/globals.css or the file the architecture skill names).

    line 46
  9. Distinctive:

    Use the frame's text. Do not rewrite headlines.

    line 53
  10. Very specific:

    If a locale is RTL, the localized layout sets dir.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Figma handoff

Build the screens that exist in the file. Do not invent pages, sections, or copy to fill gaps.

Step 1: Record the file

  1. Load the agent-guardrails skill.
  2. Read PROJECT.md. Under ## Design, set Figma file to the URL the client gave. If there is no URL, stop and ask. Do not search the web for a similar design.
  3. From a figma.com/design/<fileKey>/... URL, keep fileKey. If the URL has node-id, convert - to : and keep that node. A branch URL uses the branch key as the file key.

Step 2: Read the frames

Use the Figma tools available in this session (a file session, then the frame's layout and text). Read the frames the brief names. If the brief names none, read the pages marked for the website, not the cover or the archive.

If no Figma tool is available, stop. Ask the client for the frames or for a Dev Mode export. Do not rebuild the site from a screenshot description you were not given.

Write a frame map in PROJECT.md under ## Design before editing React. Columns: frame name, route, locale, notes. The route pattern is in references/frame-map.md.

Step 3: Put the frontend in the standard folders

Follow the project-architecture skill first.

What you foundWhere it goes
A page framesrc/app/(frontend)/[locale]/...
A repeating sectionsrc/components/sections/<Name>.tsx
A small control used on more than one pagesrc/components/ui/<Name>.tsx
Brand SVGpublic/brand/

Pages compose sections. Do not paste a whole frame into page.tsx.

If the app is not Next.js yet, stop after the frame map and follow scenario C in the payload-project-kickoff skill. Do not start a second frontend.

Step 4: Tokens go in the theme that already exists

Read colors, type, radius, and spacing from the variables or from the frame, and write the hex values and font names into PROJECT.md.

Put them in the Tailwind theme the project already uses (src/app/(frontend)/globals.css or the file the architecture skill names). Do not add a second theme, a second CSS framework, or a shadcn preset as the base design system.

The shadcn CLI may fetch one named registry component only when PROJECT.md lists that exact component. That fetch is the creative-frontend skill, not this one.

Step 5: Match the frame, then stop

  1. Implement one frame at a time, in the order of the map.
  2. Use the frame's text. Do not rewrite headlines.
  3. Images in the file are placeholders until the client supplies files. Use the payload-media skill for real images. Do not hotlink Figma URLs from the website.
  4. If a locale is RTL, the localized layout sets dir. Do not hardcode a left-to-right page for Arabic.
  5. Desktop and the narrow frame, when the file has one. If the file has no narrow frame, stop and ask before inventing a mobile layout.

Motion, 3D, or a copied component waits for the creative-frontend skill. A static section that matches the frame is enough for this skill.

Stop and ask

  • The Figma URL is missing, or the tools cannot open the file.
  • A frame has no route in the brief.
  • The file contradicts PROJECT.md (an extra language, a payment step, a page the brief does not mention).
  • You would need a paid Figma plan or a paid component to match the frame.

Done when

  • PROJECT.md has the file URL, the hex colors, the font names, and the frame map
  • Every implemented route is a row in that map
  • No route exists that the map does not list
  • Tokens live in the existing theme file
  • The next skill is named: payload-bootstrap for a new site, or the feature skill for a site that already has Payload

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.