惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
腾讯CDC
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
美团技术团队
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
博客园_首页
Recent Announcements
Recent Announcements
云风的 BLOG
云风的 BLOG
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
Docker
博客园 - Franky
Jina AI
Jina AI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
So I built a Figma Design Agent for an Agentic AI Hackath...
Aniket Dhaka · 2026-05-12 · via DEV Community
Cover image for So I built a Figma Design Agent for an Agentic AI Hackathon #kiro #figma #agents #geminicli

Aniket Dhakane

Design-to-code handoffs are one of the biggest time sinks in frontend teams

I have been working as a UI developer lately at an organization where we are developing multiple MFEs (Micro Frontends) which are interlinked with a main Dashboard (Can't go into too much details).

All our products follow a same design library which is written in a separate NX repo, which is then imported as a package. This helps us keep a common Design System which boosts our development speed and reduce the feature development time.

Till now the process of maintaining this Design System Repo was manual, a UX developer would build the design in Figma, then the developer would recreate it manually with the help of AI, but there was no one step agent to just paste the figma link and get a whole live storybook preview of built component with agent hooks to directly raise PRs using the ADO (Azure Devops) MCP.

ai-agents-everywhere

In this article I am going to show you how you can create your own design agent using gemini CLI (or claude code), Figma MCP and Vercel's web-design-guidelines skills. (It won't contain the PR & ADO part)

Here's how I set it up, and how you can too

Pre-Requisites

  • Gemini CLI (or Claude Code)
  • Figma MCP Extension
  • web-design-guidelines SKILL.md

You can get gemini CLI using npm install -g @google/gemini-cli, and steps to install the Figma MCP extension is given here & you can get the SKILL.md here

Setup

setup-meme

  • First start up your gemini cli in the directory which you want to work on and prompt it to generate you an agent in global level

~/.gemini/agents/.md

and paste the following Markdown file along with the prompt

---
name: figma-design-agent
description: "A specialist in translating Figma designs into production-ready code with pixel-perfect accuracy, high accessibility, and following web interface guidelines."
tools: ["*"]
model: gemini-3-flash-preview
---

# Figma Design Agent

You are a senior software engineer and UI/UX specialist. Your primary goal is to help users bridge the gap between Figma designs and production code.

## Core Expertise

- **Design Translation:** Implementing UI components and pages from Figma URLs with 1:1 visual fidelity.
- **Accessibility & UX:** Ensuring all code follows the Vercel Web Interface Guidelines, prioritizing semantic HTML, focus states, and keyboard navigation.
- **Design Systems:** Building and maintaining design systems, tokens, and reusable component libraries.
- **Code Connect:** Mapping Figma components to source code for seamless developer handoffs.

## Preferred Workflow

1. **Research:** Use `mcp_figma_get_design_context` and `mcp_figma_get_screenshot` to gather context.
2. **Strategy:** Plan the component architecture and Tailwind/CSS strategy.
3. **Execution:** Implement surgical, high-quality code changes.
4. **Validation:** Use `web-design-guidelines` (via `web_fetch` from Vercel's guidelines URL) to audit the implementation.

## Mandates

- **Pixel Perfection:** Always match the design's spacing, typography, and color tokens exactly.
- **Accessibility First:** Never compromise on semantic HTML or ARIA labels.
- **Tailwind Native:** Use Tailwind CSS for styling unless the project dictates otherwise.
- **Clean Code:** Use modern React/TypeScript patterns, avoiding unused imports and ensuring type safety.

## References

- **Figma Skills:** `figma-implement-design`, `figma-use`, `figma-code-connect`, `figma-generate-design`.
- **UI Guidelines:** Vercel Web Interface Guidelines.

Enter fullscreen mode Exit fullscreen mode

  • Once done you can then paste the SKILL.md inside the skills folder

~/.gemini/skills//SKILL.md

And you are done, type /agents reload followed with /agents list and you will see our newly created agent listed over the cli.

Now just get the figma link of the component or page you want to create and paste it in the cli

@figma-generate-design <FIGMA_DESIGN_LINK>

Wait for the model to generate the site and you are all set, now just iterate over the generated components or keep them as it is if satisfactory.

Below is my experiment with gemini cli (for office we have access to claude opus and the generation from that along with custom steering files is a whole lot better)

Alright then people, keep building and keep experimenting with AI models, we are living in an era where you can build almost anything, all you need is alot of tokens xD

we-require-more-tokens