# AI use cases for Stack Diagram (caru-ini/stack-diagram)

Repo: [caru-ini/stack-diagram](https://github.com/caru-ini/stack-diagram) | Use cases: 3 | Page: https://dedupedai.com/use-cases/caru-ini-stack-diagram/

stack-diagram is an agent skill: describe your stack in a sentence and get an architecture diagram with official logos. It works with Claude Code, Codex, Cursor and other agents that support skills, and outputs a self-contained HTML file, PNG, a React component or an Artifact.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Draw your architecture from one sentence: https://dedupedai.com/use-cases/caru-ini-stack-diagram/diagram-your-stack-in-one-sentence/
- Draw cloud architectures with each vendor's own icons: https://dedupedai.com/use-cases/caru-ini-stack-diagram/diagram-aws-gcp-or-azure/
- Export a diagram as HTML, PNG or React: https://dedupedai.com/use-cases/caru-ini-stack-diagram/export-and-share-your-diagram/

## How to draw your architecture from one sentence with Stack Diagram

Repo: [caru-ini/stack-diagram](https://github.com/caru-ini/stack-diagram) | Difficulty: Beginner | Time: 10 minutes | Basis: From the README

Install the skill and describe your stack to get a diagram with official logos.

**Who it is for:** A developer who wants a diagram of Next.js, Postgres and friends without opening a drawing tool.

**The problem:** Hand-drawn architecture diagrams take time and logos end up wrong.

**The outcome:** A diagram of your stack with official logos in light and dark themes.

### Steps

1. Run `npx skills add caru-ini/stack-diagram`
2. Ask your agent: Diagram our stack: Next.js and a Hono API on Vercel. Postgres on Neon, auth with Clerk, payments with Stripe. GitHub Actions deploys.
3. Review the rendered diagram the agent checks before handing it over

### Prompt to paste into your agent

```text
Install the skill with `npx skills add caru-ini/stack-diagram`, then diagram our stack: <describe your services>. Give me the HTML file.
```

### Caveat

Logos are downloaded at build time, so it needs network access.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/caru-ini-stack-diagram/diagram-your-stack-in-one-sentence/

## How to draw cloud architectures with each vendor's own icons with Stack Diagram

Repo: [caru-ini/stack-diagram](https://github.com/caru-ini/stack-diagram) | Difficulty: Beginner | Time: 15 minutes | Basis: From the README

Describe an AWS, Google Cloud or Azure setup and get a diagram with that cloud's icons.

**Who it is for:** A cloud engineer documenting VPCs, load balancers and databases.

**The problem:** Cloud diagrams need the right vendor icons and network groupings.

**The outcome:** A diagram using AWS, Google Cloud or Azure's own icons, never recolored.

### Steps

1. Install with `npx skills add caru-ini/stack-diagram`
2. Ask: 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.
3. Swap in Google Cloud or Azure wording to get that vendor's icons

### Prompt to paste into your agent

```text
Using the stack-diagram skill, draw our app on <AWS, Google Cloud or Azure>: <describe services and subnets>.
```

### Caveat

This card is written from the caru-ini/stack-diagram README, not from a test run by Deduped. Before you start, make sure you have an agent that supports skills. Check the repo for newer instructions before you rely on these steps.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/caru-ini-stack-diagram/diagram-aws-gcp-or-azure/

## How to export a diagram as HTML, PNG or React with Stack Diagram

Repo: [caru-ini/stack-diagram](https://github.com/caru-ini/stack-diagram) | Difficulty: Beginner | Time: 10 minutes | Basis: From the README

Pick the format you need and share it as an artifact or in a repo.

**Who it is for:** A team that wants the diagram in a wiki, a README or a Claude artifact.

**The problem:** A diagram is only useful if it fits where your docs live.

**The outcome:** A self-contained HTML file, PNG, dependency-free React component or Artifact.

### Steps

1. Draw your stack with the skill
2. Ask for the format you need: self-contained HTML file (default), PNG, a React component, or an Artifact
3. For PNG export make sure Playwright with Chromium is available
4. Drop the file into a repo or wiki, or publish it as a Claude artifact

### Prompt to paste into your agent

```text
Using the stack-diagram skill, draw <stack> and export it as <HTML, PNG, React component or Artifact>.
```

### Caveat

The agent offers once to post the diagram to a public gallery and only posts after you say yes twice.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/caru-ini-stack-diagram/export-and-share-your-diagram/
