Skip to content
cccskills
FreePublished on GitHub

figma-to-code

Convert Figma designs to production-ready code adapted to the project stack. Detects existing components and design tokens.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3 stars(GitHub 3 + cccskills 0)
Works withFigma

Run score Not tested

See how to install

Files included (3)

  • SKILL.md3.0 KB
  • references/checklist-and-output.md899 B
  • references/stack-detection.md1.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Figma to Code

Convierte diseños de Figma en código adaptado al stack del proyecto actual.

Input

El usuario proporciona:

  1. URL de Figma (obligatorio) — figma.com/design/{fileKey}/{fileName}?node-id={nodeId}
  2. Qué implementar (opcional) — componente específico, pantalla, sección
  3. Stack override (opcional) — si quiere algo distinto al stack del proyecto

Process

1. Parsear URL y obtener diseño

Extraer fileKey y nodeId de la URL:

  • figma.com/design/:fileKey/:fileName?node-id=:nodeId → convertir - a : en nodeId
  • figma.com/design/:fileKey/branch/:branchKey/:fileName → usar branchKey como fileKey

Llamar a get_design_context con fileKey y nodeId para obtener:

  • Código de referencia (React+Tailwind por default)
  • Screenshot del diseño
  • Hints contextuales (Code Connect, tokens, annotations)

2. Detectar stack del proyecto

Detectar framework (Next.js, React, Vue, Svelte, Flutter, SwiftUI, RN) y UI library (shadcn, MUI, Chakra, Tailwind, Styled Components) del proyecto.

→ Read references/stack-detection.md for detection tables and adaptation rules

3. Buscar componentes existentes

Antes de generar código nuevo, buscar en el proyecto:

  • Componentes UI reutilizables que matcheen con el diseño
  • Tokens de diseño (colores, spacing, typography) ya definidos
  • Patrones de layout existentes
# Buscar componentes UI
find src/components -name "*.tsx" -o -name "*.vue" -o -name "*.svelte" 2>/dev/null

4. Adaptar código al stack

El output de get_design_context es React+Tailwind de referencia. Adaptar al stack detectado (shadcn, CSS Modules, Styled Components, Vue, Svelte, Flutter).

→ Read references/stack-detection.md for stack adaptation mapping table

5. Generar código

Para cada componente/pantalla:

  1. Crear archivo(s) siguiendo la convención del proyecto
  2. Reutilizar componentes existentes donde sea posible
  3. Mapear colores/fonts a tokens del proyecto
  4. Responsive — si el diseño tiene breakpoints, implementarlos
  5. Accesibilidad — aria labels, semantic HTML, keyboard nav
  6. Estados — hover, active, disabled, loading, empty, error

6. Checklist post-generación & Output

→ Read references/checklist-and-output.md for 7-item quality checklist and output template format

Rules

  • SIEMPRE leer el diseño de Figma antes de generar código
  • NUNCA generar código sin antes buscar componentes existentes en el proyecto
  • Preferir reutilización sobre creación nueva
  • Si el diseño usa componentes que no existen → crearlos siguiendo el design system
  • Responsive por default
  • Accesibilidad por default
  • No generar archivos de test para componentes UI (a menos que se pida)
  • En español para comentarios, en inglés para código

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

See all skills by SebastianLuser

Report a problem with this skill