d2-render

Community

Render D2 diagrams from text or code.

Authordiegomarino
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the process of converting D2 diagram definitions into visual formats like SVG or PNG, eliminating manual rendering steps and ensuring consistency.

Core Features & Use Cases

  • Render .d2 files: Directly convert D2 source files into images.
  • Extract and Render from .md: Pull D2 code blocks from Markdown files and render them.
  • Directory Rendering: Process all .d2 files within a specified directory.
  • Configurable Output: Choose between SVG and PNG formats, and specify output directories.
  • Use Case: You have a complex architecture described in a .d2 file. Use this Skill to quickly generate an SVG image for your documentation or presentation.

Quick Start

Render the D2 diagram defined in the file 'diagrams/architecture.d2' to an SVG image in the default output directory.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: d2-render
Download link: https://github.com/diegomarino/claude-toolshed/archive/main.zip#d2-render

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.