The stack diagram kit: one sentence in, official logos out
The short version
stack-diagram is a free, open-source skill for Claude Code (it also works with Codex, Cursor and other agents that support skills). You describe your stack in one sentence, the way you would say it out loud, and Claude draws the architecture diagram: official logos on white tiles, labeled group boxes and arrows with short labels, on graph paper.
The clever part is what it refuses to do. It never draws or recolors a logo. It fetches the official one, so Vercel looks like Vercel and Stripe looks like Stripe. Then it renders the picture and checks it before handing it over, so arrows go around labels, not through them. You get one HTML file with the logos inside, so it opens anywhere.
| What | The number |
|---|---|
| GitHub stars | 1,929 |
| Latest release | v0.4.0 |
| What you get | One HTML file (fonts and logos inlined) |
| Price | Free (MIT, open source) |
Source: the stack-diagram GitHub repository (README and SKILL.md), read 7 Nov 2026; numbers from the GitHub API that day.
Your links
| What | Link |
|---|---|
| The repo (README, install, examples) | github.com/caru-ini/stack-diagram |
Install: one line
Open your terminal (needs Node.js and Python 3.9 or newer) and paste:
npx skills add caru-ini/stack-diagram
Then restart Claude Code. In the Claude apps, upload stack-diagram.zip from the project's latest GitHub release as a skill instead. It needs network access, because the logos are downloaded when the diagram is built.
Copy these prompts
Paste them into Claude Code, in this order.
1. Describe your stack in one sentence
The exact prompt from the reel. Swap in your own tools:
Diagram our stack: Next.js and a Hono API on Vercel. Postgres on Neon, auth with Clerk, payments with Stripe. GitHub Actions deploys.
2. Draw it from your real code
A diagram drawn from a description is only as true as the description. Open Claude Code inside your project folder and type:
Read this project's package files, config and environment variable names (not their values), work out every hosted service it actually uses, then use stack-diagram to draw the architecture. Show the main request path from the user, one box per service, and group them by where they run. Tell me any service you were unsure about instead of guessing.
3. Make one for the person asking
Redraw that diagram for someone non-technical, like an investor or a new teammate. Keep the official logos, cut it to the 6 to 8 boxes that matter, label every arrow in plain words, and export it as one HTML file and a PNG I can drop into a slide.
What you get
| Thing | What it does |
|---|---|
| Official logos | Fetched for you from svgl, then devicon, then gilbarbara/logos, or the brand's own repository. Never recolored or redrawn. A dark logo goes on a dark tile instead of being touched |
| Cloud icons | AWS, Google Cloud and Azure diagrams use each vendor's own icon set |
| Plain nodes | Things that are not brands (a user, a cron job, a queue) get simple pictograms, never a made up logo |
| Clean arrows | Lines are routed around labels, and the agent renders the diagram and checks it before handing it over |
| Arrow meaning | A solid accent arrow is the main request path, a neutral solid one is internal, a dashed one is deploy or dev time |
| Light and dark | Every diagram renders in both themes; tiles stay white so logos keep their colors |
| Formats | One self-contained HTML file (the default, opens without a network), PNG, a dependency-free React component, or a Claude artifact |
More sentences that work
From the project's README:
Draw our monorepo tooling: a pnpm workspace with Turborepo, Biome, Vitest and Lefthook. GitHub Actions runs CI and publishes to npm.
Draw our docs chatbot: Next.js on Vercel searches Supabase pgvector and answers with Claude. Inngest syncs Notion every night.
Draw our app on AWS: CloudFront in front of S3 and an ALB in a public subnet. Fargate, RDS and ElastiCache sit in a private subnet.
Name the role of each tool ("auth with Clerk", "Postgres on Neon"). The skill works out the groups and arrows from what each tool is, and asks only when a tool is ambiguous.
Steal this for your app
- Put your one-sentence prompt in your README. When the stack changes, edit the sentence and regenerate, instead of nudging boxes by hand.
- Keep the HTML file as the source of truth. The PNG and React versions come from it.
- Hand the diagram to your AI coding agent at the start of a session. It is a faster way to show how the parts fit than pasting file after file.
Good to know
- Brand logos stay the property of their owners; the project says a logo in a diagram does not imply endorsement. The code is MIT.
- After drawing, the agent may offer once to post your diagram to a public gallery. It shows what will be public and posts only after you confirm. Say no and nothing leaves your machine except the logo downloads.
- The README examples are diagrams of about six to ten boxes. For a very large system, draw one diagram per area.
Run this on your codebase
Use stack-diagram on this project. First list every external service the code actually talks to, with the file where you found it. Then draw the architecture with the main user request as the highlighted path, and check the result: no arrow crosses a label, every logo is the official one, and nothing appears on the diagram that is not in the code. Save it as stack-diagram.html in the docs folder.