n8n-figma-workflow-map
Skill1 starsChanged 5 months agoMITView on GitHub
Review a set of n8n workflows and build a complete, n8n-branded workflow map in Figma: orchestrators as staged rows, sub-workflow calls badged with the n8n mark, standalone and opt-in workflows as lanes, and a data-layer band of the tables each workflow reads and writes. Use when asked to map, diagram, visualize, or document how several n8n workflows fit together, to draw an architecture picture of an n8n project, or to produce a branded map for a handoff, a review, or a post. Dark (n8n brand) and light themes.
In this repository8 other files it gives its agents.
- after-effects-extendscriptSkill
- claude-code-hooksSkill
- cloudflare-pages-deploySkill
- figma-design-buildSkill
- kie-image-editSkill
- langgraph-agentSkill
- langsmith-evalsSkill
- video-app-walkthroughSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Never hand-draw the map. Hand placement is how boxes clip, connectors go diagonal, and the brand drifts between maps.
- Distinctive: line 71
Read the warnings it prints.
- Very specific: line 112
Run the chunks in order, one use_figma call each, passing the file text verbatim as code.
- Distinctive: line 137
Screenshot every chunk: Do not run all chunks blind and look at the end.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
n8n workflow map in Figma
A workflow map answers "how do these workflows fit together" in one picture. The n8n editor shows one canvas at a time; the map shows the whole system: which workflow orchestrates, which ones it calls, what runs on its own trigger, and which tables everything touches.
The work splits in two, and the split is the point:
- Review is code plus judgment.
scripts/analyze.mjsreads the workflow JSON and drafts a spec: roles, stages, triggers, sub-workflow calls, SQL tables. You then edit the spec so it teaches, which a script cannot do. - Render is pure code.
scripts/render.mjsturns the spec into ordereduse_figmachunks with the brand, grid, and connectors baked in. You run them and check each one with a screenshot.
Never hand-draw the map. Hand placement is how boxes clip, connectors go diagonal, and the brand drifts between maps.
1. Gather the workflows
You need exported workflow JSON, one file per workflow or one array file. Any of:
- The project's own
workflows/directory, when it keeps exports in git. - The n8n CLI:
n8n export:workflow --all --separate --output=<dir>. - The n8n public API (
GET /api/v1/workflows/{id}) or an n8n MCP server, one workflow per file in a scratch dir.
Include every workflow the orchestrators call. A call to a workflow outside the set is flagged in the review warnings and drawn without a target.
2. Analyze
node scripts/analyze.mjs <dir|file>... --title "Project name" --out spec.json| Flag | Use | ||
--title T | Map title, also the frame name (Workflow map · T) | ||
--hide REGEX | Drop glue nodes by name (`^(Merge | Set | NoOp)`) so stages show the steps that matter |
--dashed REGEX | Mark opt-in workflows dashed even when active; inactive ones are dashed already | ||
--theme dark|light | Dark is the n8n brand default; light for print or a light doc |
What it decides:
- Roles. An orchestrator calls sub-workflows and has an external trigger. A sub-workflow is called and has no trigger of its own. Everything else is standalone.
- Rows. One chained row per orchestrator, busiest first. Standalone workflows go in one lanes row, first four nodes each.
- Stages. From the orchestrator's sticky zones (
## Titleheadings, in canvas order). No stickies means five-node chunks of execution order, flagged for rename. - Nodes. Alternative triggers merge into one node ("Schedule or Webhook"). Execute Workflow nodes become the called workflow, badged with the n8n mark.
- Data. Tables pulled from Postgres/MySQL SQL, grouped by schema, ten per card, captioned with the writers.
Read the warnings it prints. Each one names a fix.
3. Review the spec (the part that makes it a map)
Open spec.json and edit:
principle: one sentence on the architecture decision that shapes the whole system. "One orchestrator, many sub-workflows, each collector continues on error so a dead source degrades the report instead of killing the run." Not a summary of the diagram.- Every
note: rewrite fromTODO rewrite as the why: ...into the design decision the stage embodies and the failure it prevents. Never restate the node labels. A map that only labels does not teach. - Stage
labels:N · NAME, short, uppercase. Rename auto-cut stages. - Stage size: six nodes maximum. Split a zone, or re-run with
--hide. - Hues: each stage owns one hue left to right (
green blue periwinkle orange violet teal); lanes use their own.slateis for opt-in or inactive.redis reserved for error paths only. page: the Figma page to draw on (defaultWorkflow map).review: a read-only record of what the analyzer found. The renderer ignores it.
Customer names, hostnames, and internal URLs in node names land on the map. Scrub them in the spec before the map is shared outside the team that owns the workflows.
4. Render
node scripts/render.mjs spec.json --out chunks/It lints first (TODO text left, unknown hue, stage over six nodes, empty stage),
then writes 00-setup.js, one NN-row.js per row, NN-data.js, and
NN-legend.js. Each is under the use_figma code limit. Fix every lint warning
before you run anything.
5. Draw in Figma
whoamito confirm the account and get theplanKey. Edits on a view-only account fail silently.create_new_file(design file, not FigJam), or use the file the user named.- Run the chunks in order, one
use_figmacall each, passing the file text verbatim ascode.00-setupcreates the page, then8n/markcomponent, the frame, and the header. Every later chunk finds the frame by name and appends below the lowest child. A rerun of00-setuprenames the old frame to(previous)rather than deleting it. get_screenshoton the frame after the setup and after each row. Look for text past a border, a connector crossing a box, a stage taller than its neighbors for no reason. Fix the spec and re-render; do not patch the frame by hand unless it is a one-word fix.- Export or share the frame link. The frame is named
Workflow map · <title>.
Chunk 00 must run before any other; a chunk that cannot find the frame or the mark component throws with that message.
Rules
- The spec is the source. Edit the spec and re-render. Hand edits in Figma are lost on the next render.
- Brand is fixed. Tokens, hues, logo, and type live in
render.mjsandreference/brand.md. Do not restyle per map; a map that looks different from the last one reads as a different system. - Use the real mark. The logo and badge come from
assets/. Never draw an n8n glyph, never recolor it. - One color system. Hue means stage, never role. Red means error, never a stage.
- Screenshot every chunk. Do not run all chunks blind and look at the end.
Tests
node --test tests/*.test.mjs from the skill folder. Synthetic fixtures, no
dependencies, no Figma or n8n instance needed.
Reference
reference/brand.md: dark and light tokens, stage hues, type, logo rules.reference/layout.md: the grid, spacing, and how rows and lanes are laid out.reference/figma-gotchas.md: Plugin API behaviors that break a map, and the fix for each.
For general Figma MCP mechanics (fonts, geometry, styles, the screenshot loop),
load figma-design-build from this repo alongside this skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

