# HTML diagram

> HTML diagram is an open-source agent skill for developer tools. Generates styled HTML/CSS architecture and pipeline diagrams that embed directly. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/kevinlin/skills/tree/main/html-diagram
- **Repository:** https://github.com/kevinlin/skills
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** html-diagram
- **Collection:** https://github.com/kevinlin/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill has the agent draw system architecture, CI/CD, ETL and other pipeline diagrams as self-contained HTML and CSS instead of Mermaid or ASCII. It supplies thirteen visual styles and thirteen structural layouts, and the agent picks one of each by the shape of the system, then copies the template classes and fills in the components.

The workflow is fixed: choose a style, choose a layout matching stacked tiers or a left-to-right stage flow, reuse the template's class names without inline styling, and output raw unfenced HTML so Markdown renders it. Reference material covers grouped product panels, sub-grouped components, user-type tags, KPI blocks and orthogonal SVG connectors between boxes.

The skill is made of Markdown templates plus two Python scripts: one rebuilds a gallery page showing every style, and one exports a diagram to PNG through a headless browser such as Playwright or a local Chrome. Output is plain HTML, so it needs no build step or diagramming service, and the PNG export needs a browser installed.

## When your agent uses it

> Use when the user needs an architecture or system diagram, a CI/CD, build, or release pipeline, an ETL or data pipeline, a deployment flow, a left-to-right component or stage flow, or any diagram inline in a Markdown wiki or page. This skill applies even when Mermaid or ASCII seems more compatible.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and Python scripts](https://github.com/kevinlin/skills/tree/HEAD/html-diagram)
- [Asks for: Read, Write, Edit, Glob, Bash](https://github.com/kevinlin/skills/blob/HEAD/html-diagram/SKILL.md)
- [No network calls found in its scripts](https://github.com/kevinlin/skills/tree/HEAD/html-diagram)
- [License: MIT](https://github.com/kevinlin/skills/tree/HEAD/html-diagram)

## Features

- **Thirteen visual styles:** Ready-made color and typography themes, each suited to a different audience or tone.
- **Thirteen structural layouts:** Wireframe skeletons such as three-column, pipeline, dashboard and hub-and-spoke.
- **Pipeline stage flows:** Left-to-right stage templates with arrows for CI/CD, ETL and data pipelines.
- **SVG connector arrows:** Orthogonal arrows and labels that link components inside a diagram.
- **PNG export script:** Renders a diagram to a cropped 2x PNG through a headless browser backend.
- **Gallery regeneration:** Script that rebuilds a page showing every style side by side.

## Good for

- Draw an architecture diagram of my microservices and databases
- Show the stages of our CI/CD release pipeline as a diagram
- Diagram an ETL job from source systems to the warehouse
- Embed a deployment flow diagram in our Markdown wiki page
- Export a finished system diagram to a PNG file

## Install

### Claude Code

This skill ships in the `ai-sdlc-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add kevinlin/skills
/plugin install ai-sdlc-skills@ai-sdlc
```

Or copy only this skill to `~/.claude/skills/html-diagram`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/html-diagram &&
cp -R "$tmp/html-diagram" ~/.claude/skills/html-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/html-diagram` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/html-diagram` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/html-diagram &&
cp -R "$tmp/html-diagram" ~/.agents/skills/html-diagram &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/html-diagram` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/html-diagram` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/html-diagram &&
cp -R "$tmp/html-diagram" ~/.cursor/skills/html-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/html-diagram` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/kevinlin/skills.git --path html-diagram
```

Or copy the folder to `~/.gemini/skills/html-diagram` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/html-diagram`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/html-diagram &&
cp -R "$tmp/html-diagram" ~/.copilot/skills/html-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/html-diagram` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/kevinlin/skills.git
```

Then copy `skills/html-diagram` into your agent's skills folder as `html-diagram`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

Its allowed tools are Read, Write, Edit, Glob and Bash. PNG export needs a headless browser through Playwright, playwright-cli or an installed Chrome, Chromium or Edge.

### When does HTML diagram trigger?

When the user asks for an architecture or system diagram, a CI/CD, build or release pipeline, an ETL or data pipeline, a deployment flow, a stage flow, or any diagram inline in a Markdown page.

### Does HTML diagram produce Mermaid or ASCII diagrams?

No. It instructs the agent to produce HTML and CSS diagrams and not to offer Mermaid, ASCII or images as alternatives.

### How do I preview the styles?

Open the bundled gallery.html in a browser, which shows all thirteen styles, and regenerate it with the build_gallery.py script after editing a style.

### How do I install HTML diagram in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/html-diagram to use it in all your projects, or to .claude/skills/html-diagram in one project. Or install the ai-sdlc-skills plugin, which includes it: /plugin marketplace add kevinlin/skills, then /plugin install ai-sdlc-skills@ai-sdlc.

### Does HTML diagram run scripts?

Yes. It runs shell and Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use HTML diagram?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to HTML diagram?

The closest alternatives to HTML diagram are Draw io diagram generator, Openhop, Excalidraw diagram generator, Illuminate concept and Mermaid diagram generator.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Draw io diagram generator](https://ai-powered.com/skills/draw-io-diagram-generator): Draw io diagram generator is an open-source agent skill for design and media.
- [Openhop](https://ai-powered.com/skills/openhop): Openhop is an open-source agent skill for developer tools.
- [Excalidraw diagram generator](https://ai-powered.com/skills/excalidraw-diagram-generator): Excalidraw diagram generator is an open-source agent skill for developer tools.
- [Illuminate concept](https://ai-powered.com/skills/illuminate-concept): Illuminate concept is an open-source agent skill for developer tools.
- [Mermaid diagram generator](https://ai-powered.com/skills/mermaid-diagram-generator): Mermaid diagram generator is an open-source agent skill for developer tools.
- [Trace architecture](https://ai-powered.com/skills/trace-architecture): Trace architecture is an open-source agent skill for developer tools.
- [Htmlify](https://ai-powered.com/skills/htmlify): Htmlify is an open-source agent skill for files and documents.
- [Diagramming code](https://ai-powered.com/skills/diagramming-code): Diagramming code is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/html-diagram
