Figma-AI-Bridge: Skill for Claude Code

.github/skills/figma-doc/SKILL.md

figma-doc is a skill for Claude Code, Codex from renfei-design/Figma-AI-Bridge. It costs 58 tokens per session (1,377 once invoked), scanned A, original, MIT.

A Figma skill for creating structured documentation pages with titles, sections, paragraphs, comparisons, and tables.

In plain words
What is it for?
Use it to create specs, briefs, analyses, and other documentation pages in Figma.
Why use it?
It turns written material into a consistent documentation layout in Figma instead of requiring the page to be assembled manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is renfei-design/Figma-AI-Bridge's own configuration. It tells Claude Code and Codex how to work on Figma-AI-Bridge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Figma-AI-Bridge configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/figma_cmd.mjs <ch> create_doc_page '{.

Reuse

Borrowing it

Nothing to install: this file belongs to renfei-design/Figma-AI-Bridge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/renfei-design/Figma-AI-Bridge/main/.github/skills/figma-doc/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/renfei-design/Figma-AI-Bridge

Made for: Claude Code, Codex.

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 figma-doc

README.md
[![agentmods](https://agentmods.dev/badge/skills/renfei-design/figma-ai-bridge/figma-doc/github.svg)](https://agentmods.dev/skills/renfei-design/figma-ai-bridge/figma-doc)
Your own site
<a href="https://agentmods.dev/skills/renfei-design/figma-ai-bridge/figma-doc"><img src="https://agentmods.dev/badge/skills/renfei-design/figma-ai-bridge/figma-doc/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.

agentmods 80×15 button for figma-doc

Your own site · 80×15
<a href="https://agentmods.dev/skills/renfei-design/figma-ai-bridge/figma-doc"><img src="https://agentmods.dev/badge/skills/renfei-design/figma-ai-bridge/figma-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,377 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.00058 $0.01377
Opus 5 $0.00029 $0.00688
Sonnet 5 $0.00012 $0.00275
Haiku 4.5 $0.00006 $0.00138

Measured 11d ago against content hash 229ff5ae3759, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

figma-doc 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.

.github/skills/figma-doc/SKILL.md · 149 lines

How it starts

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

Figma Documentation Page

Build a structured documentation page in Figma using a standard layout format. One command — generate content, call create_doc_page, done.

Prerequisites

  • figma-ai-bridge plugin running in Figma and connected
  • The create_doc_page command registered in code.js
  • Helper: scripts/figma_cmd.mjs <channel> create_doc_page '<paramsJSON>'

Workflow

1. Generate Content

Read the user's topic, spec, or description. Organize content into sections:

{
  "title": "Document Title",
  "width": 1600,
  "x": 0,
  "y": 0,
  "sections": [
    { "heading": "Section Title", "body": "Paragraph text..." },
    { "heading": "Comparison", "columns": [{"text": "Left col"}, {"text": "Right col"}] },
    { "heading": "Feature Matrix", "table": {
        "headers": ["Requirement", "Option A", "Option B"],
        "rows": [
          ["Goal-oriented workflows", "✅ Native", "❌ Not core"],
          ["Multi-step execution", "✅ First-class", "⚠️ Limited"]
        ]
      }
    }
  ]
}

Each section has ONE of these content types:

  • body — paragraph text with \n for line breaks
  • columns — array of {text} objects (for side-by-side comparison)
  • table{headers: [...], rows: [[...], ...]} (for structured data, feature matrices)

Information Design Guidelines

Content type Best format Example
Narrative explanation body Executive summary, background, recommendations
Pros/cons, either/or columns "Follow this" vs "Don't follow that"
Feature comparison matrix table Requirements × options with ✅/❌
Structured criteria list table Dimensions with ratings or status
Side-by-side analysis columns Two approaches described in prose
Action items / bullet lists body Numbered steps, bullet points
Visual reference with description columns + imageNodeId Component screenshot + explanation text

Cloning Visuals from Source

Columns and body sections support imageNodeId to clone an existing Figma node into the new doc:

  • columns[].imageNodeId — clone into that column (image above text)
  • section.imageNodeId — clone into the body section (image above text)

Read the full file on GitHub · 149 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. 11d ago First seen · 149 lines · 58 tokens per session scan A 229ff5ae3759

Subscribe to this mod's changes

figma-doc is a skill published in the GitHub repository renfei-design/Figma-AI-Bridge (16 stars, last pushed 6mo ago), licensed MIT. It adds 58 tokens to every session and 1,377 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-31.

Related

Other skills, from other repositories

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

figma-build

Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g.…

awdr74100/figwright · 180 tokens

doc-typeset

A document formatter that turns text and design settings into complete, styled HTML. It includes templates for contracts, academic papers, official documents, business reports, meeting notes, research reports, and annual reports.

rojim666/SztuCode · 127 tokens

format-extract

A low-level tool that converts a Word document (.docx) into semantic HTML and extracts embedded images. It also reports on the quality of the resulting HTML conversion.

rojim666/SztuCode · 218 tokens

design-token

A document-design guide that selects a visual theme for a document type and outputs reusable rules for fonts, colours, spacing, page layout, and CSS variables. Design tokens are named style settings that keep formatting consistent.

rojim666/SztuCode · 137 tokens

slides

Create and edit presentation slide decks (.pptx) with PptxGenJS and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding charts/diagrams/visuals, or diagnosing layout…

rojim666/SztuCode · 78 tokens