figma-design-skills: Instructions file for Codex

AGENTS.md

figma-design-skills AGENTS.md is an instructions file for Codex, OpenCode from jeltehomminga/figma-design-skills. It costs 786 tokens per session, scanned A, original, MIT.

A set of instructions for coding agents that build user interfaces from Figma, a tool for designing screens and prototypes. It covers extracting design details and checking whether the built result matches the design.

In plain words
What is it for?
Use it to read sizes, spacing, colors, typography, and structure from Figma, then create a design-spec table. Use it again to measure a rendered web or mobile screen and find differences from the design.
Why use it?
It reduces guesswork when turning a Figma design into code and when checking the finished screen. It also helps keep design values consistent with the project's existing tokens.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is jeltehomminga/figma-design-skills's own configuration. It tells Codex and OpenCode how to work on figma-design-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything figma-design-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jeltehomminga/figma-design-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jeltehomminga/figma-design-skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/jeltehomminga/figma-design-skills

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for figma-design-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jeltehomminga/figma-design-skills/agents-md/github.svg)](https://agentmods.dev/instructions/jeltehomminga/figma-design-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jeltehomminga/figma-design-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/jeltehomminga/figma-design-skills/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for figma-design-skills AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jeltehomminga/figma-design-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/jeltehomminga/figma-design-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 786 This file is loaded in full into every session.
When invoked 786 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00786 $0.00786
Opus 5.5 $0.00314 $0.00314
Sonnet 5.5 $0.00157 $0.00157
Haiku 4.5 $0.00079 $0.00079

Measured 1mo ago against content hash c14d45f2ecc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

figma-design-skills AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Guidance for any coding agent working in — or with — this repository.

This repo ships two composable, tool-agnostic skills for design-to-code fidelity. The summaries below work as passive guidance in any agent; the full step-by-step instructions live in the skill files and should be opened when a task matches.

The two skills

  • Extract — skills/figma-design-extract/SKILL.md. Use when implementing UI from a Figma node (a figma.com URL, "build this design", "match the Figma"). Read exact values via the Figma MCP (get_variable_defs for tokens, get_metadata for sizes, get_design_context for structure; get_screenshot is a visual reference only — never measured). Before concluding a value has no token, check the linked libraries with search_design_system (includeVariables: true). Map every value to a repo design token; never hardcode. Convert letterSpacing from Figma's percent (-2 means -0.02em). Output a design-spec table.
  • Verify — skills/design-fidelity-verify/SKILL.md. Use when checking a built screen ("verify the design", "is this pixel-perfect", "design QA"). Measure the rendered values (web: getComputedStyle; mobile: the resolved style off the rendered React fiber over the Metro/CDP eval channel — not native view props, which have no introspection channel on Android and return less than the fiber read on iOS Fabric). Walk every spec-table row, classify it, fix highest-severity first, bounded to ~3 iterations, and report residuals honestly. Runnable readers ship in skills/design-fidelity-verify/scripts/.

Core rules (both skills)

  • Tokens/variables are the source of truth. Never measure from a screenshot.
  • Fidelity means the right token, not the literal pixel. So resolve every measured value back to its named token before labelling a row — a bare hex/px delta is not a finding. Verdicts: PASS · DRIFT (name both tokens) · HARDCODED (resolves to none) · VARIANT (wrong state — re-pick the node) · MISSING (selector matched nothing; an error, never a pass).
  • Tag each drift theme-level (one upstream, cross-app fix) or component-level (fix here). Never patch a theme default locally.
  • Reuse existing components before scaffolding new ones.
  • Prove a match by measuring rendered values, not glancing; cap the fix loop at ~3 iterations and report residuals honestly.
  • Compare box/position values with a ±1px tolerance — rendered rects are fractional.

Read the full file on GitHub · 33 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 33 lines · 786 tokens per session scan A c14d45f2ecc0

Subscribe to this mod's changes

figma-design-skills AGENTS.md is an instructions file published in the GitHub repository jeltehomminga/figma-design-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 786 tokens to every session, about $0.0031 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories