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.
npx skills add Niall-Young/AItoFigma --skill ai-to-figmagit clone --depth 1 https://github.com/Niall-Young/AItoFigmaWrote 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.
[](https://agentmods.dev/skills/niall-young/aitofigma/ai-to-figma)<a href="https://agentmods.dev/skills/niall-young/aitofigma/ai-to-figma"><img src="https://agentmods.dev/badge/skills/niall-young/aitofigma/ai-to-figma/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.
<a href="https://agentmods.dev/skills/niall-young/aitofigma/ai-to-figma"><img src="https://agentmods.dev/badge/skills/niall-young/aitofigma/ai-to-figma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.02182 |
| Opus 5 | $0.00047 | $0.01091 |
| Sonnet 5 | $0.00019 | $0.00436 |
| Haiku 4.5 | $0.00009 | $0.00218 |
Grade A, and why
ai-to-figma 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI to Figma
Turn a design brief or visual reference into an approved visual direction, rebuild it as validated static HTML, then capture that HTML into an editable Figma Design file.
Core contract
- Resolve the brief, reference role, delivery target, fidelity mode, and device before creating the task workspace. Open the delivery-target chooser only for missing target fields. In Codex, insert it with the native
::codex-inline-visdirective; do not substitute avisualizecontent reference or modal form. - Scaffold
design.mdwith the resolved mode and without creatingindex.html. For adaptation and independent planning, establish the visual direction, generate a full-screen preview, iterate without a fixed limit, and stop until the user explicitly approves one version. - After explicit approval, persist the selected file under
previews/and runscripts/record-preview-approval.mjs. Reconstruction skips only this full-screen preview gate, not generation of separate final assets. - Resolve the local-font Typography Plan, inventory every non-text final visual in the Visual Asset Plan, classify its complexity as
structural,flat, orrich, and show both complete decision tables to the user. Never abbreviate away composition, identity, complexity, method, or status. The approved full-screen preview is a reference, not a final asset. - Resolve every typography and visual-asset row to
ready, validate all required gates, then createindex.htmlwithscripts/init-html.mjs. Stop on any blocked item. - Rebuild the approved direction with static HTML, inline CSS, separate final assets, and only small amounts of native JavaScript. Mark each planned visual with its
data-visual-id; never embed the full-screen preview or introduce React or a remote runtime. - Validate the rendered page and its visual-plan mappings locally before requesting a Figma capture.
- Use Figma MCP
generate_figma_designas the delivery path and open only the root-scopedcaptureUrlemitted byscripts/serve-preview.mjs. Do not silently fall back touse_figma, clipboard HTML, SVG import, or a flat screenshot. - Treat every capture ID as single-use. Permit one diagnosed retry with a new capture ID, then stop and report the failure.
What ships with it
34 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 518 B
- assets/capture-shell.html 3.3 KB
- assets/design-spec-template.md 2.5 KB
- assets/figma-target-chooser.html 3.7 KB
- licenses/MINGCUTE-APACHE-2.0.txt 11 KB
- package-lock.json 526 B
- package.json 135 B
- references/asset-policy.md 6.6 KB
- references/canvas-specs.md 1.4 KB
- references/design-spec.md 6.0 KB
- references/figma-capture.md 3.4 KB
- references/html-authoring.md 3.6 KB
- references/icon-system.md 2.7 KB
- references/reference-modes.md 2.7 KB
- references/target-resolution.md 4.2 KB
- references/transparent-assets.md 5.4 KB
- references/typography.md 2.5 KB
- references/validation-and-recovery.md 3.8 KB
- references/workflow.md 8.4 KB
- requirements-image.txt 15 B
- scripts/init-html.mjs 5.1 KB runs code
- scripts/inline-mingcute-icon.mjs 4.5 KB runs code
- scripts/lib/typography-plan.mjs 12 KB runs code
- scripts/lib/visual-direction.mjs 4.2 KB runs code
- scripts/lib/visual-plan.mjs 9.6 KB runs code
- scripts/list-local-fonts.mjs 1.1 KB runs code
- scripts/record-preview-approval.mjs 3.4 KB runs code
- scripts/remove-solid-background.py 7.4 KB runs code
- scripts/render-target-chooser.mjs 9.6 KB runs code
- scripts/scaffold.mjs 4.3 KB runs code
- scripts/serve-preview.mjs 5.9 KB runs code
- scripts/validate-alpha.py 5.0 KB runs code
- scripts/validate-design.mjs 1.1 KB runs code
- scripts/validate-html.mjs 14 KB runs code
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.
- 11d ago First seen · 94 lines · 94 tokens per session scan A 241523998f8e
ai-to-figma is a skill published in the GitHub repository Niall-Young/AItoFigma (50 stars, last pushed 21d ago), licensed MIT. It adds 94 tokens to every session and 2,182 once invoked, about $0.0005 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.
Other skills, from other repositories
chakra-ui-builder
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…
visual-ralph
Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.
frontend-visual-qa
Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…
prototype-web
A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.
animation-principles
Apply animation principles — easing, staging, follow-through — to one specific UI motion. Use when tuning how an animation feels. For product-wide duration and easing tokens use motion-system (design-systems); for a full interaction spec use micro-interaction-spec.
refactoring-ui
Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent…