Nov 7, 2026
stack-diagram: Describe Your Stack in a Sentence, Get an Architecture Diagram with Official Logos
A 2k-star agent skill that turns one sentence about your stack into an architecture diagram with official logos — self-contained HTML, PNG, React component, or Claude artifact.
Architecture diagrams are tedious to draw by hand and easy to let go stale. stack-diagram is a 2k-star agent skill built around one promise from its README: describe your stack in a sentence, get an architecture diagram with official logos. The agent renders it in light and dark themes and checks it before handing it over.
Why This Skill Matters
Any doc that needs a picture of how the pieces talk to each other ends up needing a diagram someone has to maintain. stack-diagram makes the diagram a prompt away and keeps the output shareable: the result is one self-contained HTML file with fonts and logos inlined, so it renders anywhere without a network. The PNGs and the React component are rendered from that same file.
The logo handling is the detail that makes the output look professional. Logos are fetched at build time from svgl, then devicon, then gilbarbara/logos, or the brand's own repository — and the three cloud vendors get their own icon packages: AWS Architecture Icons, Google Cloud product icons, and Azure icons from Microsoft. The scripts never recolor or redraw a logo; tiles stay white in both themes so logos keep their own colors, and only group labels switch to the brand's dark-theme logo.
Installation
npx skills add caru-ini/stack-diagram
It works with Claude Code, Codex, Cursor, and other agents that support skills. In the Claude apps, upload stack-diagram.zip from the repo's Releases page as a skill instead. The skill needs Python 3.9+ and network access for the logos; PNG export uses Playwright with Chromium.
Real Workflow: Diagram a Vercel + Neon + Stripe Stack
Say you are writing the RFC for a new service and want the architecture picture for the cover. Your stack: Next.js and a Hono API on Vercel, Postgres on Neon, auth with Clerk, payments with Stripe, GitHub Actions for deploys.
-
Install the skill with the command above, then give the agent the README's own example prompt:
Diagram our stack: Next.js and a Hono API on Vercel. Postgres on Neon, auth with Clerk, payments with Stripe. GitHub Actions deploys. -
The agent renders the diagram and checks it — the README's quality rule is "no arrows through text": lines are routed around labels, and the agent renders the diagram and inspects it before handing it over.
-
You get the diagram in the format you need: a self-contained HTML file (the default), a PNG, a dependency-free React component, or a Claude Artifact.
The same one-sentence flow covers the README's other examples: a monorepo tooling diagram (pnpm workspace, Turborepo, Biome, Vitest, Lefthook, GitHub Actions), an AI app (Next.js searching Supabase pgvector, answering with Claude, Inngest syncing Notion nightly), and the cloud-specific versions — AWS with CloudFront, S3, an ALB, Fargate, RDS and ElastiCache; Google Cloud with a global load balancer, Cloud Storage, GKE, Cloud SQL and Memorystore; Azure with Front Door, Blob Storage, App Service, Azure SQL and Managed Redis. The AWS, Google Cloud, and Azure examples use each vendor's own icons.
Real Workflow: Light, Dark, and the Public Gallery
Every diagram is rendered in both themes. Per the README, tiles stay white so logos keep their own colors, and group labels switch to the brand's dark-theme logo.
After drawing, the agent offers once to post the diagram to the public gallery at stacks.caru.moe. The gallery flow shows you exactly what will be public (the light and dark PNGs, an English title, the tech stack, and a display name), and posts only after you say yes twice. The README states your prompt is never sent; a GitHub login is optional, never shown, and only lets you delete the post later.
Tips
- Keep the HTML file: it is the one file the PNGs and the React component are rendered from, and the README suggests dropping it into a repo or wiki, or publishing it as a Claude artifact and sharing the link.
- Name the cloud in your sentence. The README's AWS, Google Cloud, and Azure examples render with each vendor's own icons.
- Diagrams are not limited to clouds: the README's "Dev tooling, not just clouds" example draws a pnpm monorepo's CI, lint, and test tooling as its own picture.
- Logos are downloaded at build time, so run the skill where network access to svgl, devicon, gilbarbara/logos, and the vendor icon sources is available.
When Not to Use This
The skill draws architecture and tooling diagrams from the description you provide; the README documents no link to your live infrastructure. Logos are not bundled (they are downloaded at build time), so it is not usable fully offline. And per the README's own licenses-and-trademarks section, brand names and logos remain trademarks of their owners; their use in a diagram does not imply endorsement.
See the leaderboard for more skills.