Figma-AI-Bridge: Skill for Claude Code

.github/skills/workflow-diagram/SKILL.md

workflow-diagram is a skill for Claude Code, Codex from renfei-design/Figma-AI-Bridge. It costs 77 tokens per session (2,384 once invoked), scanned A, original, MIT.

A Figma tool for creating workflow diagrams, flowcharts, process maps, decision trees, and other diagrams made from connected shapes.

In plain words
What is it for?
It is for mapping processes, decisions, subprocesses, notes, and swimlanes in Figma.
Why use it?
It removes the need to draw each box, arrow, label, and layout element separately.

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 FIGMA_TIMEOUT_MS=60000 node scripts/figma_cmd.mjs <channel> create_workflow_diagram '<JSON>'.

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/workflow-diagram/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 workflow-diagram

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/renfei-design/figma-ai-bridge/workflow-diagram"><img src="https://agentmods.dev/badge/skills/renfei-design/figma-ai-bridge/workflow-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,384 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.00077 $0.02384
Opus 5 $0.00039 $0.01192
Sonnet 5 $0.00015 $0.00477
Haiku 4.5 $0.00008 $0.00238

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

Security

Grade A, and why

workflow-diagram 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 10d 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/workflow-diagram/SKILL.md · 229 lines

How it starts

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

Workflow Diagram

Build workflow diagrams in Figma using the create_workflow_diagram command. One command builds the entire diagram — shapes, arrows, labels, and layout are handled automatically.

Prerequisites

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

Shape Types

Type Shape Use for
start Green pill Entry point of a workflow
end Red pill Termination / completion points
process White rectangle Actions, tasks, operations
decision Yellow diamond Yes/no branches, conditions. Always has 2+ labeled outgoing edges
subprocess Purple double-border rectangle Referenced sub-processes, external calls
note Dashed yellow box Comments, annotations, side notes

Command Schema

{
  "title": "My Workflow",
  "direction": "TB",
  "nodes": [
    { "id": "start", "type": "start", "label": "Begin" },
    { "id": "step1", "type": "process", "label": "Do something" },
    { "id": "check", "type": "decision", "label": "OK?" },
    { "id": "done", "type": "end", "label": "Done" }
  ],
  "edges": [
    { "from": "start", "to": "step1" },
    { "from": "step1", "to": "check" },
    { "from": "check", "to": "done", "label": "Yes" },
    { "from": "check", "to": "step1", "label": "No" }
  ],
  "x": 0,
  "y": 0
}

Parameters

Parameter Type Required Default Description
title string No "Workflow Diagram" Diagram title
nodes array Yes Node definitions
edges array Yes Edge definitions
direction "TB" | "LR" No "TB" Top-to-bottom or left-to-right
swimlanes array No Optional lane groupings
x, y number No 0 Canvas placement offset
spacing object No Override nodeWidth, nodeHeight, horizontalGap, verticalGap

Read the full file on GitHub · 229 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. 10d ago First seen · 229 lines · 77 tokens per session scan A 0312213022c5

Subscribe to this mod's changes

workflow-diagram is a skill published in the GitHub repository renfei-design/Figma-AI-Bridge (16 stars, last pushed 6mo ago), licensed MIT. It adds 77 tokens to every session and 2,384 once invoked, about $0.0004 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.