← Back to blog
AiAbout 6 min read

One sentence, one architecture diagram, and the hard part is the logos

Published Nov 29, 2026
One sentence, one architecture diagram, and the hard part is the logos

Describe a stack in a sentence and get a diagram back is a demo that has been available for about a year, and most versions of it produce something that looks like a diagram from a distance. Boxes float. Arrows pass through labels. The Postgres logo is a blue elephant that someone recoloured to match the palette, which is the kind of detail that gets a deck rejected in review.

stack-diagram is a skill that takes the boring parts seriously. It passed three thousand stars this month, was created on 1 November, and is MIT licensed.

The install is one line, the output is four formats

npx skills add caru-ini/stack-diagram

It works in Claude Code, Codex, Cursor and other agents that read the skill format. In the Claude apps you upload the release zip instead.

What comes back is either a self-contained HTML file with fonts and logos inlined, so it renders anywhere without a network; a PNG; a dependency-free React component; or an Artifact. The PNG and the React component are rendered from the same HTML, so there is one source of truth for what the diagram is.

That single-file choice is more useful than it sounds. A diagram that depends on a CDN and a font licence is a diagram that will look wrong in a year, in a wiki, in a PDF someone exported, and in the slide a colleague rebuilt by hand.

Where the logos come from

This is the part I did not expect to be the most engineered piece.

Logos are fetched at build time in a fixed order: svgl first, then devicon, then gilbarbara/logos, then the brand's own repository. For the big clouds it goes further and uses each vendor's own icon package: AWS Architecture Icons, Google Cloud product icons, Azure icons from Microsoft Learn, the Kubernetes community icon set, CNCF artwork.

Databricks is the exception the README calls out by name. There is no official icon package, so the diagram uses Databricks' own artwork found through a community catalogue, and the licence section states that the catalogue is unofficial and the artwork remains Databricks'.

Two rules follow from that: logos are never recoloured, and logos are never redrawn. A tile stays white so the logo keeps its own colours, which is why every diagram renders in both light and dark themes with the tiles unchanged and only the group labels switching to the brand's dark-theme mark.

For anyone who has shipped a customer deck, that is the correct answer to a real problem. Brand guidelines generally forbid altering a mark, including tinting it to fit your palette. A generator that ignores this produces assets that cannot be published.

The agent checks its own render

The second design decision is about verification.

Lines are routed around labels, and the agent renders the diagram and looks at the result before handing it over. The README's phrasing is "no arrows through text", which sounds like a small aesthetic preference until you have seen a generated diagram where the arrow into the cache layer goes straight through the words "managed Redis".

This is the same pattern showing up across agent tools this month: the model produces an artifact, then inspects the artifact, then fixes it. It works because the check is cheap and the failure is visible. A diagram either has a line crossing a label or it does not.

The requirement list is short: Python 3.9 or newer, network access for the logos. PNG export uses Playwright with Chromium.

What the sentence can contain

The examples in the repository are worth reading as a specification of scope. One asks for a monorepo tooling diagram: a pnpm workspace with Turborepo, Biome, Vitest and Lefthook, with GitHub Actions running CI and publishing to npm. Another asks for an AI docs chatbot: Next.js on Vercel searching Supabase pgvector and answering with Claude, with Inngest syncing Notion every night.

Neither is cloud architecture in the enterprise sense. Both are the stacks people are actually building this year, which is why the tool spends its effort on tooling logos and framework marks rather than only on cloud services. AWS, Google Cloud and Azure are covered with vendor icon packs, and so are the small pieces that make a modern app legible in a diagram: the queue, the auth provider, the payment processor, the CI runner.

The prompt is also the weak point. A sentence that omits the region, the private networking or the cache layer produces a diagram that omits them, and the diagram will look authoritative anyway. The tool makes no attempt to invent what you did not say, which is the right behaviour and also means the output is only as complete as your description.

The gallery is opt-in, twice

After drawing, the agent offers once to post the diagram to a public gallery. It shows exactly what would become public: the light and dark PNGs, an English title, the tech stack, a display name. It posts only after you say yes twice. Your prompt is never sent. A GitHub login is optional and only exists so you can delete the post later.

That is a careful piece of design in a category where it is easy to be careless. A diagram of someone's architecture is a map of their infrastructure, and a gallery of such maps is a reconnaissance resource whether or not anyone intended it that way.

Why deterministic beats generative here

A diffusion model can draw a beautiful system diagram. What it cannot do is guarantee that the box labelled "Neon" is the actual Neon logo rather than an invented database cylinder that resembles it, or that the arrow from the API to the database points the right way in every revision.

Architecture diagrams are a documentation format with correctness requirements. The set of boxes is known, the relationships are known, and the labels are exact strings. That is a rendering problem, not an imagination problem.

Once you accept that, the interesting work moves to the boring places: icon provenance, licence notes, arrow routing, theme parity, and a file that survives being emailed. The skill's licence section even notes that Microsoft permits the Azure icons in architecture diagrams, training materials and documentation, which is the kind of sentence that only appears in a project that expects to be used at work.

What it still cannot do

It cannot know your architecture is wrong. Ask for a diagram of a stack that does not exist and you will get a clean, well-labelled diagram of a stack that does not exist.

It also will not replace judgement about what belongs in the picture. A diagram with twenty services is a diagram nobody reads, and no amount of correct logos fixes that. The tool's contribution is that once you have decided what to show, the showing is accurate and repeatable.

For teams that maintain architecture docs in a repository, the useful part is the React component and the self-contained HTML. Both can be regenerated from the same sentence when the stack changes, which turns a diagram from a screenshot that rots into a build artifact. That is a small improvement in tooling and a large one in whether the document is ever true.

Turn ideas into images with ChatPicture

60 free credits every day. Generate, edit, and download — no prompt engineering degree required.

Related articles