Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

figma-generate-diagram — Codex skill: what it does, how to install

Prepares Mermaid.js syntax for the generate_diagram tool and renders editable FigJam boards. Needed before building flowcharts, ERDs, or sequence diagrams.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill figma-generate-diagram -a codex
Open on GitHub

What figma-generate-diagram does

This skill acts as a required filter before invoking the generate_diagram tool. It instructs the agent to create clean Mermaid.js code that renders as an editable FigJam diagram. Supported formats include flowcharts, sequence diagrams, state diagrams, ER diagrams, and Gantt charts.

The skill enforces strict syntax rules. Mermaid input cannot contain emojis, HTML tags, or literal \n escape sequences. Node identifiers require camelCase formatting without underscores to keep line routing intact. If you request an unsupported diagram such as a mindmap, class diagram, or pie chart, the skill halts execution instead of attempting a broken tool call.

Because generated boards live in FigJam, calling design-only APIs like figma.createPage() will throw an error. Keep this skill active if you generate architecture flows or database models through Codex. Without these guidelines, Mermaid rendering frequently fails.

What it helps with

  • Prevent Mermaid syntax failures when rendering FigJam boards
  • Generate architecture flowcharts directly from source code
  • Build database ER diagrams from table definitions
  • Trace API authentication handshakes with sequence diagrams

Example prompts for the agent

  • Generate a FigJam ER diagram for our database schema
  • Draw a sequence diagram for the API authentication flow
  • Build an architecture flowchart for services in this repository

How to install figma-generate-diagram

1Skills CLI (Vercel)

npx skills add openai/plugins --skill figma-generate-diagram -a codex

2Manually: put the files in place

.agents/skills/figma-generate-diagram/SKILL.md

For all projects use ~/.agents/skills/

From the same set201

The whole set →
supabase official supabase Guides the agent through database configuration and strict RLS policies in Supabase. CX Codex GP ChatGPT 8installs remotion-render official Remotion Exports videos and static stills from Remotion projects using CLI commands. CX Codex GP ChatGPT 3installs figma-create-new-file official Figma Creates blank Figma, FigJam, or Slides files inside draft folders. It resolves planKey and editor types before invoking Figma MCP tools. CX Codex GP ChatGPT 6installs swiftui-performance-audit official OpenAI Pinpoints SwiftUI runtime issues like frame drops, unresponsive taps, and excessive view body computations. Works code-first and guides Instruments profiling. CX Codex GP ChatGPT 109installs swiftui-liquid-glass official OpenAI This skill helps build and review SwiftUI Liquid Glass interfaces for iOS 26+. Use it when adopting the API or checking fallbacks, interaction, and design fit. CX Codex GP ChatGPT 121installs swiftui-ui-patterns official OpenAI This skill helps build and refactor SwiftUI interfaces, from navigation and state to layouts and controls. Use it for new screens or changes to an existing project. CX Codex GP ChatGPT 114installs swiftui-view-refactor official OpenAI Refactors SwiftUI view files into clean, testable structures with dedicated subview types and proper Observation ownership. CX Codex GP ChatGPT 113installs ios-memgraph-leaks official OpenAI Captures and inspects iOS leaks from a simulator process or .memgraph. Useful for tracing retained objects and checking a fix with before-and-after evidence. CX Codex GP ChatGPT 1,054installs

Similar

Questions about figma-generate-diagram

How to install figma-generate-diagram in Codex?

Run npx skills add openai/plugins --skill figma-generate-diagram -a codex in your project terminal.

What does figma-generate-diagram do?

It routes requests to appropriate diagram workflows and enforces syntax constraints for Mermaid before calling generate_diagram.

Which diagram formats are unsupported?

The tool rejects mindmaps, pie charts, C4 diagrams, class diagrams, and git graphs. The skill warns about these limitations before running any calls.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor