diagram

Generate SVG diagrams from textual prompts with PNG previews.

3|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/spm1001/claude-suite --skill diagram-spm1001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagram
Source: https://github.com/spm1001/claude-suite/tree/main/skills/diagram
Command: npx skills add https://github.com/spm1001/claude-suite --skill diagram-spm1001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps Claude turn abstract concepts into clear, shareable diagrams by generating structured SVGs, rendering PNG previews, and applying iterative self-critiques to improve clarity.

Core Features & Use Cases

  • SVG generation with proper viewBox and structure for scalable diagrams
  • PNG rendering via sips (macOS) or rsvg-convert for quick previews
  • Self-critique using CRAP principles (Proximity, Alignment, Repetition, Contrast) and iterative refinement
  • Composes with brand/styling skills to apply consistent colors and typography
  • Use cases include Venn diagrams, flow charts, architecture diagrams, and data visualizations for slides or docs

Quick Start

Provide a diagram prompt such as: "Create a Venn diagram showing A and B with labeled regions." The skill will return an SVG and a PNG preview after rendering.

Frequently Asked Questions about diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an SVG diagram from a text prompt?

You can generate an SVG diagram from a text prompt by providing a description of the visual, such as a Venn diagram or flowchart. The skill outputs a structured SVG with a proper viewBox and renders a PNG preview for quick viewing.

What is CRAP-based iterative rendering for diagram visualization?

CRAP-based iterative rendering is a self-critique process that applies design principles—Proximity, Alignment, Repetition, and Contrast—to refine diagrams. The skill evaluates the generated SVG against these principles and iterates until the visual clarity meets quality standards.

Can I create architecture diagrams and flowcharts for technical documentation?

Yes, you can create architecture diagrams and flowcharts for technical documentation. The skill automates diagram creation from textual prompts, supporting Venn diagrams, flowcharts, and architecture diagrams suitable for presentations and technical briefings.

Does rendering PNG previews from SVG require rsvg-convert?

Rendering PNG previews from SVG does not strictly require rsvg-convert. The skill supports PNG rendering via sips on macOS or rsvg-convert, allowing you to generate quick visual previews of your SVG diagrams depending on your environment.

How do I apply consistent brand styling and typography to an SVG diagram?

To apply consistent brand styling and typography to an SVG diagram, you can compose this skill with brand or styling skills. This synergy allows the generated SVG visuals to integrate specific colors and typography guidelines seamlessly into the final output.

What is the best way to fix misaligned elements in a generated flowchart?

The best way to fix misaligned elements in a generated flowchart is through the skill's iterative self-critique mechanism. It automatically evaluates alignment and other CRAP principles, refining the SVG structure until the visual layout achieves proper clarity and balance.