Our Compliance Checker has now been updated to include a compliance check on the EU AI Act! Learn more.

The FlowZap Diagram Skill Is Live — Here's Why It Matters

2/22/2026

Tags: AI Agents, MCP, FlowZap, Context Engineering, Skills

Jules Kovac

Jules Kovac

Business Analyst, Founder

The FlowZap Diagram Skill Is Live — Here's Why It Matters
November 2026 update: the skill now covers 13 MCP tools and pins flowzap-mcp@2.2.1, with the current quota (10 compliance reviews per rolling 30-day period) and a new section on machine-readable replies: structuredContent on validate, create_playground and compliance_check, MCP annotations on all 13 tools, and an isError flag reserved for a missing output.

 

With solid context engineering, your AI agent calls the right tools and produces the right diagram on the first try

FlowZap's MCP Server already ensures your diagrams validate cleanly in tools like Claude Code, Cursor, and Devin Desktop (formerly Windsurf). Now, with the new FlowZap Diagram Skill, your agent starts from a much smarter place: it knows the FlowZap DSL, when to call each tool, and how to structure diagrams on the first try.

The FlowZap Diagram Skill is a SKILL.md file that teaches your AI agent how to think about FlowZap diagrams before it writes a single line of .fz code. Understanding your code base, brainstorming development strategies with your favorite LLM, finding optimization strategies and bugs, will now feel smoother than ever.

Install it now:

npx skills add flowzap-xyz/flowzap-mcp --skill flowzap-diagrams

Get it on GitHub.

 

What is context engineering (and why should you care)?

You've probably heard the term prompt engineering — crafting the right question to get a good answer from an LLM. Context engineering goes further. It's about designing the entire information environment the model operates in — not just what you ask, but what the model already knows when your request arrives.

In concrete FlowZap terms:

  Without the Skill With the Skill
What the agent knows Tool names and JSON schemas from the MCP server Full DSL rules, 4 shapes, handle syntax, gotchas, templates, and a step-by-step workflow
What it does first Guesses FlowZap syntax based on Mermaid/PlantUML patterns it saw in training Follows explicit FlowZap Code rules injected into its context window
Typical failure label="Start" on nodes (wrong), missing lane prefix, inventing shapes Rare — the gotchas section catches common errors before they happen
Token cost High (multiple validate → fix → re-validate loops) Low (usually validates on first try)

An MCP server gives the agent hands (tools it can call). A SKILL.md gives it domain expertise (knowledge of when, why, and how to use those tools correctly). You need both.

 

Five developer pain points this solves

1. "It writes perfect FlowZap Code from the start."

LLMs can default to Mermaid syntax because it's prevalent in their training data. By explicitly stating the FlowZap DSL rules right up front, the skill ensures your agent writes native, accurate .fz code immediately.

2. "It nails the precise node and edge syntax."

FlowZap Code uses label:"Text" on nodes but [label="Text"] on edges. The skill includes a dedicated Gotchas section that explicitly trains the agent on these nuances, ensuring crisp, error-free connections every time.

3. "Cross-lane diagrams work flawlessly."

Complex, multi-actor workflows require precise lane prefixes (like sales.n5.handle(top)). The skill provides the agent with a complete two-lane template to reference, so cross-lane edges connect perfectly without prompting.

4. "It validates on the first pass, saving time and tokens."

Instead of a costly "validate → fix → re-validate" loop, the skill gives the agent a clear, step-by-step workflow to follow. By knowing the rules before it writes, first-pass validation success goes up dramatically.

5. "It knows exactly when to jump in."

You don't even have to mention "FlowZap" by name anymore. The skill includes explicit trigger conditions, so whether you ask for a "workflow", "flowchart", "process diagram", or "sequence diagram", the agent knows exactly which tool to reach for.

 

Three things the skill teaches that a tool list cannot

The MCP server answers "what can I call". These three answers decide whether the diagram holds up, and none of them fits in a JSON schema.

1. A valid diagram is not yet a process

A diagram can pass the validator and still read badly: two circles open the flow, a rectangle floats with nothing leading to it, a branch ends on a box instead of a closing circle. The validator stays silent because the syntax is correct. Since 2.2.0 the creation tools return an advisory audit that names the defect (multiple-start-nodes, orphan-node, dead-end-node, no-terminal-circle) while still creating the diagram. The skill tells the agent to read that block, fix the code and call the tool again, instead of handing over a flow nobody can follow.

2. A mind map is not a compressed workflow

The same DSL renders a mind map, but the rules invert: only circles and rectangles appear, diamonds and task boxes are errors, edge directions are ignored because connectivity builds the tree, and cross-links between branches are a feature, not a defect. Four dedicated tools cover it, and the process audit does not apply, because a mind map has no beginning and no end. Without the skill, an agent that hears "mind map" calls the workflow tools and produces something that renders but reads as a sprawl.

3. Compliance is a workflow, not a button

Asking for a SOC2 or GDPR review does not work on a diagram that never modelled the data flow. The skill forces the sequence: build the data-flow diagram first (lanes as actors, edges carrying the data), validate it, create the playground, then run the audit on the same code, and return both links. It also states the real quota, ten reviews per rolling thirty-day period, the retention of the audit page, ninety days, and the processor disclosure the agent owes the user, since the analysis runs on Deepseek. An agent that skips that last part answers a compliance question without saying who read the code.

 

What's inside the SKILL.md

The file follows the open Agent Skills Specification — a lightweight standard adopted by Claude Code, Cursor, Devin Desktop (formerly Windsurf), Codex, Warp, Zed, Gemini CLI, GitHub Copilot, Google Antigravity, and 30+ other coding agents.

Here's what we packed into it:

  • YAML frontmatter — name, description, allowed-tools, metadata for discovery and indexing on skills.sh.
  • MCP setup — One-command install for every compatible platform.
  • 13 MCP tools — A quick-reference table covering flowzap_validate, flowzap_fix, flowzap_create_playground, flowzap_get_syntax, flowzap_export_graph, flowzap_artifact_to_diagram, flowzap_diff, flowzap_apply_change, flowzap_compliance_check and the four flowzap_mindmap_* tools.
  • DSL quick reference — The 4 shapes (circle, rectangle, diamond, taskbox), all syntax rules, and the gotchas section.
  • 4 templates — Single lane, two lanes with cross-lane edge, decision branch, and a full multi-lane authentication flow. Copy-pasteable starting points for any complexity.
  • Process shape audit — The four defects the validator never blocks but a reader always sees: two beginnings, a floating step, a dead end, no closing circle. The agent reads the advisory block and fixes the shape before handing the diagram over.
  • Mind maps — Four dedicated tools, the readiness rules (circles and rectangles only), the template parameters, and the exemption from the process audit: a mind map has no beginning or end.
  • Compliance checks — A full workflow for SOC2, GDPR, PIPL and the EU AI Act, the real quota, the retention of the audit page, and the processor disclosure the agent owes the user.
  • Machine-readable replies — structuredContent on validate, create_playground and compliance_check, so the agent reads a verdict instead of parsing prose.
  • Step-by-step workflow — So the agent doesn't just know the syntax — it knows the process to follow.
  • Public API fallback — For platforms that don't support MCP (like Replit or Lovable.dev), the skill documents the public endpoints: /api/validate, /api/fix, /api/playground/create and /api/compliance-check.

 

How to install it

Option A: Via the skills CLI (recommended)

Works with Claude Code, Cursor, Devin Desktop (formerly Windsurf), Google Antigravity, Gemini CLI, GitHub Copilot, Codex, and 37+ agents:

npx skills add flowzap-xyz/flowzap-mcp --skill flowzap-diagrams

Option B: Manual (any agent)

  1. Copy the SKILL.md from GitHub.
  2. Place it in your agent's skills directory:
    • Claude Code: .claude/skills/flowzap-diagrams/SKILL.md
    • Devin Desktop (formerly Windsurf): .devin/skills/flowzap-diagrams/SKILL.md for the project — the agent interface also lets you select the global skills folder.
    • Google Antigravity: .agents/skills/flowzap-diagrams/SKILL.md (workspace) — Antigravity reads its skills and MCP servers from ~/.gemini/config/ (global) and .agents/ (workspace).
    • Cursor: .cursor/skills/flowzap-diagrams/SKILL.md
  3. Restart your agent or reload the window.

Option C: Global install

npx skills add flowzap-xyz/flowzap-mcp --skill flowzap-diagrams -g

This makes the skill available in every workspace, not just the current project.

 

Do I still need the MCP Server?

Yes. The skill and the FlowZap MCP server are complementary — not interchangeable.

  SKILL.md MCP Server
What it provides Domain knowledge, syntax rules, workflow instructions Executable tools (validate, fix, create playground, export, diff, patch, compliance, mind maps)
Analogy A senior engineer's cheat sheet The API the engineer calls
Without it Agent has tools but doesn't know how to use them well Agent knows the rules but can't execute anything

The best setup is both: install the MCP server for tool access, install the skill for context. That's context engineering.

 

In short

FlowZap Diagram Skill: Give your AI agent the knowledge, not just the tools.

npx skills add flowzap-xyz/flowzap-mcp --skill flowzap-diagrams

We'll iterate on the skill based on real-world failure patterns. If your agent still produces broken diagrams after installing the skill, open an issue — we want to know.

 

Other documentation

JUST USE THE MCP
Back to all Blog articles