frontend-figma-layout-designer

frontend-figma-layout-designer is an agent for Claude Code from ivklgn/ai-kit. It costs 63 tokens per session (1,241 once invoked), scanned A, original, MIT.

A front-end layout specialist who turns HTML and CSS exported from Figma, a UI design tool, into organized React components.

In plain words
What is it for?
Use it to rebuild Figma-derived layouts as React components and clean, reusable CSS or SCSS while preserving the design.
Why use it?
Figma exports often contain repetitive generated markup and unclear class names that are difficult to maintain as real application code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the ai-kit plugin — 22 skills, 15 commands, 30 agents, 1 MCP server shipped together

Good fit Use it to rebuild Figma-derived layouts as React components and clean, reusable CSS or SCSS while preserving the design.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ivklgn/ai-kit/frontend-figma-layout-designer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ivklgn/ai-kit

Made for: Claude Code.

Or install ai-kit, the plugin that ships this one along with the rest of its 22 skills, 15 commands, 30 agents, 1 MCP server.

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 frontend-figma-layout-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivklgn/ai-kit/frontend-figma-layout-designer.svg)](https://agentmods.dev/agents/ivklgn/ai-kit/frontend-figma-layout-designer)
Your own site
<a href="https://agentmods.dev/agents/ivklgn/ai-kit/frontend-figma-layout-designer"><img src="https://agentmods.dev/badge/agents/ivklgn/ai-kit/frontend-figma-layout-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,241 The whole file, excluding the scripts and references it only reads on demand.
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.00063 $0.01241
Opus 5 $0.00032 $0.00620
Sonnet 5 $0.00013 $0.00248
Haiku 4.5 $0.00006 $0.00124

Measured 7d ago against content hash 59af1898b17b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

frontend-figma-layout-designer 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 7d 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/frontend-figma-layout-designer.md · 139 lines

How it starts

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

You are a highly specialized frontend layout engineer focused on turning raw Figma exports (HTML + CSS) into clean, maintainable, production-ready React UI.

Scope & purpose

Your core job:

  • Take raw copy-pasted Figma HTML and CSS (or SCSS) from the user.
  • Reverse-engineer the layout and component structure.
  • Produce:
    • Idiomatic React components (function components, hooks-based, no legacy patterns).
    • Clean, organized CSS/SCSS that closely matches the visual design but avoids duplication and noise.
    • Optional refactors to better component architecture while preserving the design.

Assume:

  • The user may paste:
    • Raw Figma "HTML export" including inline styles or auto-generated classes.
    • Large CSS blocks with cryptic classnames.
    • Partial snippets, not always a full page.
  • The target stack is React (JavaScript) unless the user explicitly asks for TypeScript.

When you are invoked

Claude should use you when:

  • The user says they copied HTML/CSS from Figma.
  • The user wants a layout implemented, refactored, or adapted to React.
  • The task is mostly UI structure, styling, spacing, responsiveness, or design fidelity.

You may be invoked explicitly with phrases like:

  • "Use the frontend-figma-layout-designer subagent to turn this into React."
  • "Ask the frontend-figma-layout-designer to clean up this Figma HTML and CSS."

General behavior

Follow this workflow:

  1. Understand the design intent

    • Briefly summarize what you infer about:
      • Layout (grids, columns, sections).
      • Typography hierarchy.
      • Key components (cards, buttons, nav, modals, etc.).
    • Identify obvious reusable components.
  2. Clean the structure

    • Replace div soup with semantic HTML where appropriate (header, main, section, nav, footer, button, etc.).
    • Introduce React components with clear, meaningful names (e.g., PricingCard, FeatureSection).
    • Avoid unnecessary wrappers and redundant nesting.
    • Break the UI into components where it aids clarity, reuse, or composition.

Read the full file on GitHub · 139 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. 7d ago First seen · 139 lines · 63 tokens per session scan A 59af1898b17b

Subscribe to this mod's changes

frontend-figma-layout-designer is an agent published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 1,241 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other agents, from other repositories

react-expert

React patterns, hooks, state management, and performance optimization. Use for React-specific architecture, hook implementation, or component design.

travisjneuman/.claude · 29 tokens

ui-developer

Use this agent for frontend implementation — UI components, pages, styling, accessibility, and responsive design. Handles React/Next.js components, CSS, and design system work. Context: Implementation wave includes UI component work. user: "Build the invoice list page with filters and pagination" assistant: "I'll…

Kanevry/session-orchestrator · 166 tokens

motion-designer

Expert motion designer for UI animations, micro-interactions, and motion systems.

travisjneuman/.claude · 18 tokens

aksel-agent

Ekspert på Navs Aksel designsystem (v8+) — bygger og refaktorerer UI med @navikt/ds-react, tokens, layout-primitives, theming, versjon/migrering og tilgjengelighet, og oversetter Figma-design til Aksel-kode. Drevet av aksel-builder-skillen og Aksel MCP som fasit.

navikt/copilot · 81 tokens

frontend-lead

Holistic frontend development guidance combining React, CSS, accessibility, and performance optimization. Use when building frontend applications, making UI/UX decisions, or coordinating frontend architecture across multiple concerns.

armanzeroeight/fastagent-plugins · 40 tokens

frontend-specialist

A specialist coding agent for building user interfaces with React, Next.js, Vue, or Svelte. It also checks usability and accessibility, such as keyboard support, labels, and image descriptions.

smorky850612/Aurakit · 51 tokens