The Pneumetron
NEWSTOOLSINFRASTRUCTURE
Pneumetron.Agent skill generates editorial diagrams as self-contained HTML and SVG
Share
Skip to article content
  1. Home
  2. ›
  3. News
  4. ›
  5. AI Research
  6. ›
  7. Agent skill generates editorial diagrams as self-contained HTML and SVG
AI Research·November 24, 2026

Agent skill generates editorial diagrams as self-contained HTML and SVG

BY PNEUMETRON|4 MIN READ · 913 WORDS4 MIN READ
Tools
Share

In This Article

  • Output format and design constraints
  • Ecosystem integration and installation
  • Diagram coverage and migration
  • Trade-offs and workflow fit
  • Sources
Illustrative photo: blueprint, ruler, architecture, architectural
Illustrative image: WOKANDAPIX / Pixabay

Cathryn Lavery published diagram-design, an agent skill that produces 52 diagram types as self-contained HTML and SVG files. The tool supports a broad ecosystem of AI coding agents and enforces strict design constraints, though it sacrifices editability for output quality.

Key Takeaways

  • 01The tool outputs self-contained HTML and SVG files with no external dependencies, supporting 52 diagram types across a broad ecosystem of AI coding agents.
  • 02Design constraints enforce a 4px grid, no shadows, and accent colors, with the ability to match brand palettes and fonts automatically.
  • 03Output quality depends on the model, and the same prompt can yield different layouts; the tool cannot produce editable source files for version control.
  • 04Mermaid remains the better fit for diagrams that change frequently in Git, while this skill targets diagrams intended for final publication.

Cathryn Lavery published diagram-design, an agent skill that generates editorial-quality diagrams as self-contained HTML and SVG files. The tool supports 52 diagram types and integrates with a broad ecosystem of AI coding agents, including Claude Code, Cursor, GitHub Copilot, and Codex. Released on GitHub on 2026-04-16, the skill shifts diagram generation from text-based rendering and manual canvas editing to model-driven layout with strict design constraints.

The skill produces a single HTML file containing inline SVG, with no JavaScript, no build step, and no external image dependencies. Users can open the file by double-clicking or export it to SVG or PNG. The output style follows a fixed editorial design system: no shadows, 1px hairlines, and every coordinate snapped to a 4px grid. The tool also checks for overlaps and clipping during generation.

Design choices are driven by a "taste" down approach. The skill reserves an accent color for one or two elements the reader should notice first, targeting a density of 4/10. "The highest-quality move is usually deletion," Lavery writes. "Every node earns its place." The tool offers three static variants for each diagram type: minimal light, minimal dark, and full-editorial. It can also match a brand's palette and fonts by importing them from a website URL.

Output format and design constraints

The skill enforces a consistent visual language across all generated diagrams. Instead of relying on a renderer's default theme, the agent places nodes and edges according to the 4px grid and applies the editorial style guide. The output is a self-contained HTML file that renders identically in any modern browser.

Users can customize the style guide by cloning the repository and installing the skill locally. Changes to references/style-guide.md persist in the clone, and saved profiles in ~/.diagram-design/profiles/ survive package updates. The skill includes a /doctor command for diagnostics and a /profile command to manage style settings.

The tool also supports brand matching. Users can onboard the skill to a website URL, and it will pull the site's palette and fonts. Subsequent diagrams generated in that session will match the brand automatically.

Ecosystem integration and installation

diagram-design supports a wide range of agent hosts through the standard Agent Skills protocol. Users can install the skill with a single command:

npx skills add cathrynlavery/diagram-design

The skill works with Claude Code, Cursor, GitHub Copilot, Codex, Qoder, Factory Droid, Pi, Kiro, OpenCode, Gemini CLI, Cline, Windsurf, Amp, Zed, Warp, Roo, and Kilo. For hosts that support marketplaces, such as Claude Code, GitHub Copilot, and Codex, the skill is available through official plugin marketplaces. Users can add the marketplace and install the plugin using the host's native commands.

When installing across multiple hosts, the CLI recommends symlinking the skill to avoid maintaining separate copies. A single canonical copy links into each host's skills directory, so updates propagate automatically. Where symlinks are unavailable, the CLI falls back to copying the skill.

Illustrative photo: tulip, flower, flower background, nature Illustrative image: Mollyroselee / Pixabay

Claude Desktop has a file limit of 200 files for skill uploads, so the full repository cannot be imported directly. Users must build a bounded ZIP file using a provided script. The ZIP includes the skill, references, and templates but excludes gallery pages and animated variants.

Diagram coverage and migration

The skill supports 52 diagram types, covering architecture, data flow, charts, timelines, and more. Types include architecture components, sequence diagrams, state machines, ER models, Wardley maps, service blueprints, and exploded axonometric views. Several types have named variants that share the same reference, such as line charts covering slopegraphs and ridgelines, and scatter plots covering bubble and beeswarm charts.

The skill can also import and redraw existing diagrams. It supports Mermaid, PlantUML, draw.io, and Excalidraw files. Users can ask the agent to redraw an existing diagram in the editorial style, effectively migrating legacy diagrams to the new format. This capability allows teams to modernize their diagram library without manual recreation.

Trade-offs and workflow fit

The tool's design choices involve clear trade-offs. The output is not an editable source format. There is no text to diff in a pull request and no canvas to drag a box on. If a diagram needs to change frequently, users must ask the agent to regenerate it or edit the SVG directly.

Output quality depends on the model running the skill. The same prompt can lay out a diagram differently across two runs. While the 4px grid and design constraints reduce variance, the agent's understanding of the content and layout decisions remain model-dependent.

For teams maintaining diagrams in Git that change every sprint, Mermaid remains the better fit. Text-based diagrams allow version control, code review, and automated rendering. diagram-design targets the diagram you are going to publish, where design quality and brand consistency matter more than editability.

The following comparison summarizes the differences between common diagram approaches:

ApproachCreation methodLayoutOutput formatEditability
Mermaid / PlantUMLWriting textAutomaticText that renders on GitHubEdit text source
draw.io / ExcalidrawDragging shapesManualEditable .drawio or .excalidraw fileEdit canvas
diagram-designDescribing to agentAgent on 4px gridSelf-contained HTML + SVGNo text diff; edit SVG

The skill includes a PRIVACY.md file that lists what data it sends over the network. Users should review this file before installation, especially in enterprise environments. The official builds come only from the GitHub repository, and users should verify the source before installing from third-party listings.

Sources

  • github.com: GitHub - cathrynlavery/diagram-design: Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor
#agentskills#diagramming#html#svg#developertools#claudecode
PE
PUBLISHED BY

PNEUMETRON EDITORIAL

Pneumetron's pipeline pairs AI-assisted drafting with human editorial review before publishing — our goal is to make staying informed easier, not to replace real reporting.

Source Material:github.com ↗
Share this article
Share
Stay Informed

Never miss a signal.

Subscribe to the Pneumetron Intelligence Digest.

← Previous
OpenAI updates ChatGPT, robotics tracking benchmark drops scores, models edit weights
Next →
Firecrawl Unifies Web Scraping and Structured Data for AI Agents

More from AI Research

View All →
AI Research2 min ago
Illustrative photo: server, cloud, development, business

Firecrawl Unifies Web Scraping and Structured Data for AI Agents

Firecrawl releases a unified infrastructure for AI agents to search, scrape, and access structured data through a single API. The platform offers a local binary for offline execution and a cloud service that covers 96% of the web with autonomous agent capabilities.

BY PNEUMETRON4 MIN READ
Read more
AI Research3 min ago
Illustrative photo: robot, robotic arm, chess, horse

OpenAI updates ChatGPT, robotics tracking benchmark drops scores, models edit weights

OpenAI rolls out GPT-6.2 Sol with higher instruction-following scores, while a new robotics benchmark reveals off-the-shelf trackers struggle with real-world manipulation. Separately, a small language model improves its own math scores by editing its weights, though the gains lack interpretability.

BY PNEUMETRON4 MIN READ
Read more
AI Research23h ago
Illustrative photo: mining, ethereum, market, digital

LightningMoBA accelerates sparse attention via dynamic routing and kv-centric execution

Researchers publish a co-designed sparse attention kernel that replaces fixed top-k routing with threshold-based retention and reorganizes GPU execution around kv columns, yielding up to 1.60x end-to-end speedups on hopper architectures.

BY PNEUMETRON4 MIN READ
Read more
AI Research23h ago
Illustrative photo: server, cloud, development, business

AWS GA's Amazon Textract Insights for document extraction

Amazon Web Services has generally available a new generative AI API within Amazon Textract that extracts structured fields from mixed documents with confidence scores and page-level grounding. The service processes up to 3,000 pages per request and replaces custom OCR-LLM pipelines with a single managed call.

BY PNEUMETRON5 MIN READ
Read more

Comments

In This Article

  • Output format and design constraints
  • Ecosystem integration and installation
  • Diagram coverage and migration
  • Trade-offs and workflow fit
  • Sources

Most Read

01
AI Research·4d ago
Tencent releases LoopForge to orchestrate coding agents in self-hosted pipelines
02
AI Research·6d ago
Four New AI Papers Advance Reasoning, TTS, and Decoding Efficiency
03
AI Research·6d ago
Recent AI Research Reveals Gaps in Coding Agents and Advances Scientific Modeling
04
AI Research·6d ago
Anthropic Upgrades Fable and Mythos as Frontier AI Expands Open-Source and Robotics
05
AI Research·6d ago
Zyphra releases ZONOS3-Mini open-weight TTS model with 100M active parameters
Daily Digest

Get top AI & tech signals delivered to your inbox every morning.

Subscribe →
Follow Signals
X / TWITTERLINKEDININSTAGRAMYOUTUBETELEGRAM

THE PNEUMETRON

The publication of modern technology, AI, and infrastructure.

AI-assisted, human-reviewed.

NEWS CATEGORIES

  • AI RESEARCH
  • TECHNOLOGY
  • WORLD
  • BUSINESS
  • POLITICS
  • SCIENCE
  • HEALTH
  • SPORTS
  • ENTERTAINMENT

AI & RESEARCH

  • AI RESEARCH
  • INFRASTRUCTURE
  • TOOLS
  • DEEP DIVES
  • TECHNICAL DISPATCHES

RESOURCES

  • ABOUT US
  • CONTACT
  • CAREERS
  • ADVERTISE
Pneumetron.
© 2026 Pneumetron. AI-assisted, human-reviewed.
All rights reserved.
ABOUTTOOLSPRIVACYTERMSCONTACT