Skip to content
Skill

HTML diagram

Generates styled HTML/CSS architecture and pipeline diagrams that embed directly

HTML diagram is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
shell, Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About HTML diagram

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 39 files (333 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

HTML diagram 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.

More from kevinlin/skills

  1. Builds a cross-tool report on how you use your local AI coding agent sessions

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Gives your agent a senior-engineer checklist for reviewing diffs, PRs and branches

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Removes AI-writing tells from any text and rewrites it to fit its genre

    • Open source
    • 5 GitHub stars
    • Writing style
  4. Produces structured HTML gap analysis reports and a master gap register for bids

    • Open source
    • 5 GitHub stars
    • Productivity
  5. Turns meeting recordings and notes into speaker-attributed transcripts and verified recaps

    • Open source
    • 5 GitHub stars
    • Productivity
  6. Guides an agent through research, planning and phased implementation for complex tasks

    • Open source
    • 5 GitHub stars
    • Developer tools