caru-ini/stack-diagram

Agent skill: describe your stack in a sentence, get an architecture diagram with official logos

stack-diagram — What it is

stack-diagram is a tool that turns a plain-English description of your tech stack into an architecture diagram using official product logos. You write one sentence like "Next.js and a Hono API on Vercel, Postgres on Neon, auth with Clerk, payments with Stripe, GitHub Actions deploys" — it draws the diagram for you.

How you use it

It's packaged as a skill for AI coding assistants. You install it with:

npx skills add caru-ini/stack-diagram

It works with Claude Code, Codex, Cursor, and other agents that support skills. In the Claude desktop apps, you can instead download stack-diagram.zip from the Releases page and upload it as a skill.

What it produces

You get a diagram in the format you need:

  • Self-contained HTML file (the default) — fonts and logos are inlined, so it renders anywhere with no network connection. You can publish it as a Claude artifact, drop it into a repo or wiki, or share a link.
  • PNG image
  • Dependency-free React component
  • Artifact format

The PNGs and the React component are all rendered from the same HTML file.

What the diagrams look like

  • Official logos, fetched for you. Logos are downloaded at build time from svgl, then devicon, then gilbarbara/logos, or the brand's own repository. AWS icons come from AWS's own icon package. Logos are never recolored or redrawn.
  • No arrows through text. Lines are routed around labels, and the agent renders the diagram and visually checks it before handing it over.
  • Light and dark themes. Every diagram is rendered in both. Tiles stay white so logos keep their own colors; group labels switch to the brand's dark-theme logo.

What kinds of stacks it can draw

The README shows four example categories:

Example Stack described
Web app Next.js + Hono API on Vercel, Postgres on Neon, Clerk auth, Stripe payments, GitHub Actions deploys
Dev tooling pnpm workspace with Turborepo, Biome, Vitest, Lefthook; GitHub Actions runs CI and publishes to npm
AI app Next.js on Vercel searches Supabase pgvector, answers with Claude; Inngest syncs Notion nightly
AWS CloudFront in front of S3 and an ALB in a public subnet; Fargate, RDS, ElastiCache in a private subnet

So it handles cloud apps, AI apps, and developer tooling — not just cloud infrastructure.

Sharing to the public gallery

After drawing a diagram, the agent offers once to post it to a public gallery at https://stacks.caru.moe. Before posting, it shows exactly what will be public — the light and dark PNGs, an English title, the tech stack, and a display name — and only posts after you confirm twice. Your original prompt is never sent. A GitHub login is optional and never displayed; it only lets you delete the post later. The gallery site's source code lives in the site/ folder of the repo.

Requirements

  • Python 3.9 or newer
  • Network access (to fetch logos at build time)
  • For PNG export specifically: Playwright with Chromium

Licenses and trademarks

  • Code and docs: MIT (see LICENSE)
  • Bundled fonts: SIL Open Font License 1.1 (in skills/stack-diagram/assets/fonts/)
  • Logos are not bundled with the skill — they're downloaded at build time from svgl, devicon (MIT), gilbarbara/logos (CC0), AWS Architecture Icons, and Lucide (ISC), or from the brand's own site or repository
  • All brand names and logos are trademarks of their respective owners; appearing in a diagram doesn't imply endorsement

Related

  • Project
  • Project
  • Project
  • Project