figma-ios-codegen

agent
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 7 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Figma to iOS UIKit codegen: deterministic data package + Agent skills (Cursor/Claude) for baseline Swift UI.

README.md

figma-ios-codegen

English · 中文 · Docs

Enterprise Figma → iOS UIKit (Swift) codegen: clean the data first, then let the Agent write UI—without dumping raw Figma JSON into the model context.

Works with Cursor / Claude Code / Codex · Delivers runnable baseline UI (layout / styles / mocks) · MIT

Figma link → Agent skills → UIKit

Not an MCP server, and not a Locofy-style commercial exporter. Default path: local Python CLI + open Agent skills.

Core advantages

  1. Enterprise-ready — Design conventions, full-screen coverage gates, host bindings, comment safety, optional API buffering—for team rollout, not one-off demos
  2. Preflight cleaning — Phase 1 emits design.json + audit.json before any LLM runs
  3. Self-hosted bufferpath_mappings in front of Figma REST to cut 429s
  4. Package cache — Reuse cache/… for the same fileKey + nodeId + version (build lock)
  5. Host bindings — Color / font / iconfont maps; miss → UIKit (no invented tokens)
  6. Full-screen gate — Whole frame, not “hero first, rest later”
  7. Comment corrections — Designer comments can rewrite icons (with safety filters)
  8. One rule set, many IDEs — A single AGENTS.md for Cursor / Claude / Codex

Why this?

Problem Typical approach With this repo
Figma JSON blows up context Dump into chat Phase 1 → compact package
Rate limits / 429 Hit Figma every time Package cache + optional proxy
Invented colors / icon APIs Hardcoded “design system” .cursor/bindings/*_map.json
Half-screen delivery “Hero first” Full node coverage gate
One IDE only Cursor-only rules AGENTS.md + CLAUDE.md

60-second start

git clone [email protected]:mythkiven/figma-ios-codegen.git
cd figma-ios-codegen

cp .cursor/figma-ios-preload-data/config.example.json \
   .cursor/figma-ios-preload-data/config.json   # set figma_tokens; never commit

cd .cursor/figma-ios-preload-data
python3 -m src.cli "https://www.figma.com/design/<fileKey>/...?node-id=1-280" \
    --platforms ios

Paste to your agent:

Read AGENTS.md and follow the Figma → iOS UIKit workflow
(data package first, then .cursor/skills/figma-ios-playbook).

Requires: python3 · Figma PAT · iOS 12+ UIKit host
Full walkthrough → Getting started · Cursor / Claude / Codex

For teams

Need Doc
Align Figma authoring with design Design conventions
Plug in your design system / base VC Bindings
See phase boundaries Architecture

Documentation

Everything public lives under docs/:

Getting started · Using with agents · Architecture · Design conventions · FAQ · Schema · Preload architecture · Pipeline · MCP contract · CLI · AGENTS.md · Playbook · Changelog

中文文档 → docs/README.zh.md

Layout

docs/                        # Public docs (canonical)
docs/pic/                    # Images (README / social / launch)
.cursor/skills/              # Phase-2 Agent skills
.cursor/bindings/            # Host tokens
.cursor/figma-ios-preload-data/  # Phase-1 CLI
AGENTS.md                    # Cross-IDE Agent entry

⭐ Star if you ship Figma → iOS in a team—issues and binding examples keep the pipeline honest.

Yorumlar (0)

Sonuc bulunamadi