# elbow diagram

> Generate editorial-grade SVG and HTML architecture diagrams from JSON using the elbow CLI layout engine.

elbow diagram is a paid AI agent skill on Agensi by Daniel Fałszywy, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Daniel Fałszywy](https://www.agensi.io/creators/daniel-fa-szywy)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/elbow-diagram
- Tags: ai-agents, documentation, rust, svg, automation, diagram

## About this skill

Visualizing system architecture and data flows often results in messy, unreadable SVG spaghetti or tedious manual tweaking in design tools. This skill automates editorial-grade diagram generation by offloading layout, routing, and connector logic to the `elbow` CLI.

### What it does
- **Automated Layout** generates optimized box-and-connector diagrams from simple JSON definitions.
- **Multi-Kind Support** creates sequence, flow, state, ER, swimlane, dependency, and 15+ other diagram types.
- **Violation Reporting** analyzes diagrams for readability issues like line crossings, bends, and ambiguous labels.
- **Editorial Styling** applies consistent visual hierarchies using focal elements, sublabels, and semantic shapes (DB, SVC, APP).
- **Interactive HTML Exports** produces standalone pages where nodes and edges are accessible via CSS data attributes.

### How it works
1. **Identify Kind** by matching the architectural or process requirement to a supported `elbow` kind.
2. **Draft JSON View** defining nodes with specific shapes (service, actor, queue) and edges with styles (sync, async, data).
3. **Execute Render** using `elbow view.json --best --report` to iterate on layouts and resolve routing violations.
4. **Refine Context** by flagging focal elements or splitting complex diagrams into overview and detail views.

### Frameworks & tools
This skill requires the `elbow` CLI (Rust-based) and optionally Python for multi-diagram page builds. It interfaces with JSON view definitions and outputs standard SVG or HTML files.

### Why this beats prompting it yourself
Standard LLM prompting for SVGs often produces broken paths or overlapping text. This skill uses a specialized layout engine that understands architectural semantics, ensuring your diagrams follow editorial design rules and pass automated readability checks.

### Use cases
- Documenting API authentication flows with sequence diagrams.
- Mapping microservice dependencies and network boundaries.
- Visualizing state machine transitions in complex business logic.
- Building database schemas and entity-relationship models.

### Known limitations
Requires the `elbow` CLI to be installed on the system PATH. It does not support sequence frames (loop/alt), callouts, or statistical charts like bar or Sankey diagrams.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the elbow diagram skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the 'elbow diagram' skill differ from just asking an AI to write SVG code?

Unlike generic LLM-generated SVGs that often suffer from overlapping text and messy paths, this skill uses a specialized Rust-based layout engine to enforce architectural design rules and prevent connector tangles.

### What specific types of diagrams can I generate with this skill?

The skill supports over 15 diagram types, including system architectures, sequence diagrams, state machines, entity-relationship models, and swimlane flows.

### Are there any external dependencies or software I need to install to use this skill?

You will need the 'elbow' CLI installed on your system PATH; it is a lightweight Rust-based tool that handles the core layout and routing logic.

### Can I export the diagrams into a format suitable for web documentation?

Yes, the skill can output interactive HTML pages where nodes and edges are accessible via CSS data attributes, making them easy to embed or style for web-based documentation.

### Are there any architectural patterns or diagram types that the engine cannot render?

While it excels at complex architecture, it currently does not support sequence frames (like loop/alt blocks), manual callouts, or statistical charts such as bar or Sankey diagrams.

### How does the skill ensure the resulting diagrams are actually readable?

The skill includes a 'Violation Reporting' feature that automatically analyzes the output for readability issues, such as excessive line crossings or ambiguous labels, and suggests layout optimizations.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
