Diagram

Renders interactive diagrams in the browser using Cytoscape.js. Use when the user asks to visualize, diagram, draw, render, or show a graph, flowchart, dependency tree, roadmap, architecture diagram, or any node-and-edge structure. Always renders live in browser — never as a static image.

5 stars 1 forksSoftware Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add npow/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add npow/claude-skills --skill diagram
Manual install
git clone --depth 1 https://github.com/npow/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/diagram ~/.claude/skills/diagram

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Diagram

Renders interactive, draggable diagrams in the browser using Cytoscape.js from context-supplied nodes and edges.

## Workflow

1. **Extract nodes and edges** — read labels, connections, and any grouping/color hints from the user's request or conversation context.
2. **Assign colors and positions** — choose a color scheme and set x/y coordinates for a readable layout. See [TEMPLATE.md](TEMPLATE.md) for layout patterns.
3. **Write the HTML file** — write a complete self-contained file to `/tmp/diagram.html` using the Cytoscape.js template. See [TEMPLATE.md](TEMPLATE.md) for the full template.
4. **Render in browser** — follow [`_shared/chrome-devtools-render.md`](../_shared/chrome-devtools-render.md) to open `/tmp/diagram.html`, wait for render, screenshot, and fix-and-reload if needed. `wait_for` a string from the legend or a node label. See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for diagram-specific fixes.

## Self-review checklist

Before delivering, verify ALL:

- [ ] Screenshot shows all nodes with readable text — no overflow, no overlap
- [ ] Solid edges are solid, dashed edges are dashed (check `dashed: 'yes'` not `dashed: true`)
- [ ] `cy.fit(cy.elements(), 60)` is the last line of the script
- [ ] CDN URL is exactly `https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.29.2/cytoscape.min.js`
- [ ] Legend matches the color scheme used in the diagram
- [ ] Hint text `drag nodes · scroll to zoom · drag background to pan` is present
Read the full skill on GitHub

Details

Skill name
diagram
Path
diagram/SKILL.md
License
Apache-2.0
Repo updated
20 August 2026

FAQ

What does the Diagram skill do?

Renders interactive diagrams in the browser using Cytoscape.js. Use when the user asks to visualize, diagram, draw, render, or show a graph, flowchart, dependency tree, roadmap, architecture diagram, or any node-and-edge structure. Always renders live in browser — never as a static image.

How do I install the Diagram skill?

Claude Code plugin: /plugin marketplace add npow/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Diagram popular?

It lives in npow/claude-skills, which has 5 GitHub stars and 1 forks.

Related skills

Autopilot

5

npow/claude-skills

Use when the user says "autopilot", "build this", "make it", "ship it", "just do it", "do it", "implement this", or gives a vague idea, spec, task list, or bug fix and expects autonomous execution. Handles decomposition, agent coordination, and verification automatically. "build me end to end", "go from idea to code", "do everything", "run this autonomously". Follows the Spec-Driven Development workflow: specify → clarify → plan → tasks → analyze → implement.

Productivity & Notes

Build Python Library

5

npow/claude-skills

Implements pip-installable Python libraries from scratch using src layout, pyproject.toml, and pytest. Use when the user asks to build, create, implement, or scaffold a Python library, package, pip package, middleware, SDK, or wrapper. Covers project scaffolding, proxy/wrapper patterns, provider-agnostic interfaces, async/sync support, and test infrastructure.

Software Development

Canon Design Review

5

npow/claude-skills

Architecture-level design review evaluating 15 Tier 2 best practices drawn from DDD (Evans), POEAA (Fowler), Release It! (Nygard), DDIA (Kleppmann), Team Topologies (Skelton/Pais), How Buildings Learn (Brand), and Systemantics (Gall). Auto-invoke when a PR touches: - Service definitions, infrastructure code, API boundaries, or database schemas - Files matching **/architecture*, **/design*, **/api/*, **/schema*, **/migrations/* - Any directory named services/, infrastructure/, platform/, domain/, core/ Also invoke when the user says: - "design review", "architecture review", "review the design"

Software Development

Prod Readiness

5

npow/claude-skills

Scans a codebase and config for 24 production readiness items and produces a scored report. Use when the user asks to check production readiness, audit for prod, review operational concerns, scan for health checks, verify deployment readiness, or assess if code is ready for production.

Software Development

Develop Board Game

5

npow/claude-skills

Creates a complete, faithful digital version of a board game as a single-file HTML/JS/CSS application. Use when the user asks to build, implement, or digitize a board game, card game, or tabletop game. Handles rules implementation, turn management, multiplayer (local hot-seat, split-tab, online P2P), UI layout, and automated testing via Playwright.

Software Development

Request Refactor Plan

5

GAGAA-HUE/ASHUO-claude-skills

Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.