cd /news/ai-agents/stack-diagram-agent-skill-that-draws… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-166151] src=explainx.ai β†— pub= topic=ai-agents verified=true sentiment=↑ positive

stack-diagram: Agent Skill That Draws Your Stack From One Sentence

The GitHub repository caru-ini/stack-diagram trended in early November 2026 for packaging architecture-diagram generation as an installable agent skill that takes a one-sentence stack description and returns a self-contained HTML file with inlined fonts and official logos, plus optional PNG or React output. The skill installs via `npx skills add caru-ini/stack-diagram` and is named for Claude Code, Codex, Cursor and other agentskills.io clients, resolving logos through svgl, devicon, gilbarbara/logos and AWS, Google Cloud and Azure vendor packs while routing connectors around text labels. It requires Python 3.9+ for build scripts, uses Playwright plus Chromium for PNG export, and is MIT-licensed for code with logos remaining vendor trademarks.

by read8 min views1 publishedNov 9, 2026
stack-diagram: Agent Skill That Draws Your Stack From One Sentence
Image: Explainx (auto-discovered)

The GitHub repository caru-ini/stack-diagram trended in early November 2026 because it turns a boring chore β€” drawing architecture diagrams with correct logos β€” into a repeatable agent skill. You write one sentence about your production stack. The agent fetches official icons, routes connectors so lines do not slice through text, and hands back a self-contained HTML file (or PNG / React) you can drop into a wiki, PR or deck.

If you already use agent skills for coding, this is the same packaging idea applied to documentation craft, not model weights.

TL;DR #

Question Answer
What do I run? npx skills add caru-ini/stack-diagram per the README
Hosts named Claude Code, Codex, Cursor, other agentskills.io clients
Default output Single HTML file with inlined fonts and logos
Themes Light and dark renders; tiles stay white for brand colors
Logo sources svgl, devicon, vendor packs (AWS, GCP, Azure)
Python needed? Yes, 3.9+ for the build scripts
PNG path Playwright plus Chromium
License MIT for code; logos remain vendor trademarks

Why developers forwarded it #

Architecture diagrams fail in two predictable ways: wrong logos (recolored SVG hacks) and unreadable routing (arrows through labels). The README promises both are handled β€” official assets only, lines routed around text, and the agent re-renders to check before delivery.

That matches what teams actually argue about in design reviews, not what slide templates optimize for. It also rides the same wave as skills we covered for Claude animated shorts via Remotion and Blader humanizer patterns: small repos that become agent-native utilities faster than traditional npm CLIs because npx skills add lowers install friction.

The repo's skills.sh badge links to skills.sh/caru-ini/stack-diagram, the discovery surface many Cursor and Claude users search before GitHub Trending.

What the skill actually does #

From the README workflow:

  1. Parse a natural-language stack description (example: Next.js and Hono on Vercel, Postgres on Neon, auth with Clerk).
  2. Resolve each named product to a logo pipeline: trysvgl , thendevicon , thengilbarbara/logos , then vendor repositories.AWS, Google Cloud and Azure icons come from each cloud's published packs.
  3. Layout groups and edges, enforcingno arrows through labels .
  4. Render HTML withinlined fonts and logos so the file works offline β€” important for artifacts and email attachments.
  5. Optionally export PNG or adependency-free React component from the same source.

The output is explicitly not a generic whiteboard export. It is a branded architecture view suitable for RFCs and onboarding docs.

stack-diagram packages architecture-diagram generation as an installable agent skill

Install paths and host differences #

Terminal-first agents use:

npx skills add caru-ini/stack-diagram

Claude apps without CLI skills can upload stack-diagram.zip from GitHub Releases as a skill bundle.

Cursor users should confirm their build supports the same skills ; the README points to agentskills.io for the compatibility list. If your client only runs MCP tools, this repo is not an MCP server β€” it is a skill package with Python helpers underneath.

Our agent skills complete guide explains how skills differ from MCP and from raw prompts; stack-diagram is a worked example of skills as packaged procedures plus local scripts.

stack-diagram resolves product names to official logo pipelines through svgl, devicon and vendor packs

Examples in the README #

The project ships prompt templates beyond SaaS web apps:

  • Dev tooling monorepos β€” pnpm, Turborepo, Biome, Vitest, Lefthook, GitHub Actions.
  • AI apps β€” Next.js on Vercel, Supabase pgvector, Claude, Inngest syncing Notion.
  • Regional cloud layouts β€” AWS, GCP and Azure three-tier patterns withvendor-native icons .

Each example reinforces one design rule: name real products, not abstract boxes. The skill's matcher lives or dies on whether it recognizes your strings.

After a diagram, the agent may offer once to publish light and dark PNGs to stacks.caru.moe. The README states:

  • It shows exactly what would be public (PNGs, English title, stack list, display name).
  • It requires two explicit yes answers .
  • Your prompt is never sent .
  • GitHub login is optional and only enables later deletion.

For teams under NDA, decline the gallery. The local HTML artifact still works.

Licensing and trademark hygiene #

Code and docs are MIT. Fonts use SIL Open Font License 1.1. Logos are not bundled; they download at build time under each vendor's terms. The README repeats that diagram use is not endorsement and that Microsoft permits Azure icons in architecture diagrams per their published guidance.

That matters for commercial decks. A skill that auto-fetches logos is convenient; your legal review may still want a static export archived with attribution.

Limitations honest builders should expect #

  • Network required for logo fetches during generation.
  • Python 3.9+ and, for PNG,Playwright/Chromium β€” CI containers need those dependencies.
  • Ambiguous names ("Oracle" database versus cloud) can map wrong; edit the sentence and regenerate.
  • Star counts move ; verify the README on the commit you install, not a screenshot from social media.

The GitHub page showed zero stars in one automated fetch while Trending metadata cited thousands gained since November 1 β€” typical lag between indexer snapshots and the trending email. Use the repo's release tags and issue tracker for maturity, not stars alone.

How this compares to doing it manually #

Approach Pros Cons
stack-diagram skill Fast, logo-accurate, agent-driven iteration Python and Playwright setup
Figma / Lucid templates Designer polish Manual logo compliance
Mermaid in markdown Version controlled Weak logo fidelity
Cloud vendor diagram tools Official stencils Lock-in to one hyperscaler

For agent-heavy teams, the skill wins on iteration speed when the diagram is a living document during refactors. For customer-facing PDFs, you may still touch up spacing in a design tool.

Security note #

The skill runs local Python and fetches third-party SVGs. Treat it like any agent tool chain: run in a trusted environment, pin the skill version in team docs, and review HTML output before hosting on a public domain (inline resources can be large but should not execute remote scripts if you use the stock templates).

For broader agent hardening patterns, see agent sandboxes compared and loop engineering with coding agents.

What people ask after seeing the repo #

Do I need a paid API? No for the skill itself β€” you pay whatever model your agent host bills. Logo fetches hit public CDNs and vendor icon hosts.

Can I use this in client deliverables? The MIT license covers the tooling. Logo trademark rules still belong to each vendor; keep the README's attribution mindset.

Does it replace C4 models? No. C4 captures context containers and components; stack-diagram optimizes logo fidelity for one snapshot of what you run today. Many teams will use both: C4 for narrative, stack-diagram for the quick "what we deploy" slide.

Will it understand internal codenames? Unlikely. Replace internal service names with the public product you actually run in prod, or add a gloss line the matcher can grep.

How does this relate to explainx.ai skills? Our skills directory catalogs installable agent procedures for workshops and products. stack-diagram is an external skill you add the same way you would add a lint or deploy skill β€” it does not ship inside explainx.ai, but it is the kind of utility we expect in agent-heavy teams.

Maintenance and team rollout #

Rollout works best as a doc template, not a one-off demo:

  1. Add the skill to your team skill manifest alongside testing and formatting skills.
  2. Store generated HTML under docs/architecture/ in git so PRs show diagram diffs when stacks change.
  3. Pin the release zip version for Claude app users; floatinglatest will drift when logo sources move.
  4. In CI, skip PNG generation unless you maintain a Playwright image; HTML-only keeps pipelines light.

When your stack changes β€” say you migrate auth from one vendor to another β€” regenerate in the same skill session so group boxes stay aligned. The README's light and dark pair helps Confluence and Notion pages that auto-theme.

Deeper comparison to diagram-as-code #

Diagram-as-code tools (Mermaid, D2, PlantUML) excel at git diffs and reviewability. stack-diagram trades some purity for marketing-grade icons. A sensible split:

  • Use Mermaid inside engineering specs for flows and sequence diagrams.
  • Use stack-diagram for onboarding README heroes and executive summaries.
  • Export PNG only when the audience lives in PowerPoint or PDF.

If you already document agents with DESIGN.md patterns, paste the stack sentence from your DESIGN stack section to keep diagrams synchronized with declared dependencies.

Try it in five minutes #

  1. Clone or npx skills add caru-ini/stack-diagram .
  2. Paste a sentence that names at least five concrete products you deploy today.
  3. Ask the agent for HTML first ; open the file locally and toggle dark mode if your template supports it.
  4. Only then request PNG if you need slides.
  5. Decline gallery upload unless marketing owns the stack list.

Document the prompt sentence your team standardizes on β€” for example listing hosting, database, auth, payments and CI in fixed order β€” so diffs stay readable when only one vendor changes.

Repository layout and commands follow the caru-ini/stack-diagram README as read on November 9, 2026.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @caru-ini/stack-diagram 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/stack-diagram-agent-…] indexed:0 read:8min 2026-11-09 Β· β€”