architecture-diagram-generator README

The project's README from github.com/Cocoon-AI/architecture-diagram-generator. As one markdown file: README.md.

Architecture Diagram Generator

Need an architecture diagram? Get AI to build you one.

Use Claude.ai with this special skill to generate professional architecture diagrams in seconds. Describe your system, and Claude creates a beautiful, dark-themed diagram as a standalone HTML file you can open in any browser.

Version License Claude

🚀 Quick Start (3 Steps)

Step 1: Install the Skill

⚠️ Available on Free, Pro, Max, Team, and Enterprise plans (Code Execution must be enabled in Settings → Capabilities first)

  1. Download architecture-diagram.zip
  2. Go to claude.ai → Customize → Skills
  3. Click the + button → + Create skill → Upload a skill, then upload the zip file
  4. Toggle the skill on

📚 Need help? See the full installation guide below.

Step 2: Get Text that Describes Your Architecture

You just need a text description of your system. Pick whichever works for you:

Option A: Have AI analyze your codebase

Open your code in Cursor, Claude Code, Windsurf, or ChatGPT and ask:

Analyze this codebase and describe the architecture. Include all major
components, how they connect, what technologies they use, and any cloud
services or integrations. Format as a list for an architecture diagram.

Option B: Write it yourself

Just list your components and how they connect:

- React frontend talking to a Node.js API
- PostgreSQL database
- Redis for caching
- Hosted on AWS with CloudFront CDN

Option C: Ask for a typical architecture

Don't have a specific system? Ask Claude for a starting point:

What's a typical architecture for a SaaS application?

Step 3: Generate Your Diagram by Asking Claude to Use the Skill

Take the output from Step 2 and paste it into Claude (with the Architecture Diagram Generator skill installed):

Use your architecture diagram skill to create an architecture diagram from this description:

[PASTE YOUR ARCHITECTURE DESCRIPTION HERE]

That's it! Claude will generate a beautiful HTML file you can open in any browser.

Then! You can iterate simply by using chat. Ask Claude: Please update XYZ to see your diagram update in real time. You can ask Claude to fix any issues you have with the diagram as well.


Example Prompts for Common Scenarios

For a web app:

Create an architecture diagram for a web application with:
- React frontend
- Node.js/Express API
- PostgreSQL database
- Redis cache
- JWT authentication

For AWS serverless:

Create an architecture diagram showing:
- CloudFront CDN
- API Gateway
- Lambda functions (Node.js)
- DynamoDB
- S3 for static assets
- Cognito for auth

For microservices:

Create an architecture diagram for a microservices system with:
- React web app and mobile clients
- Kong API Gateway
- User Service (Go), Order Service (Java), Product Service (Python)
- PostgreSQL, MongoDB, and Elasticsearch databases
- Kafka for event streaming
- Kubernetes orchestration

📸 Examples

Web Application (React + Node.js + PostgreSQL)

Web App Architecture

AWS Serverless (Lambda + API Gateway + DynamoDB)

AWS Serverless Architecture

Microservices (Kubernetes + API Gateway)

Microservices Architecture

📤 Export your diagram

Open the HTML file in any modern browser and use the toolbar in the header:

No install. No command line. Just open the file and click.

✨ Features

🎨 Color Palette

Component Type Color Use For
Frontend Cyan Client apps, UI, edge devices
Backend Emerald Servers, APIs, services
Database Violet Databases, storage, AI/ML
Cloud/AWS Amber Cloud services, infrastructure
Security Rose Auth, security groups, encryption
External Slate Generic, external systems

📦 Installation

⚠️ Available on: Free, Pro, Max, Team, and Enterprise plans

Prerequisite: Code Execution must be enabled before you can upload a custom skill:

  • Free / Pro / Max — turn on under Settings → Capabilities
  • Team / Enterprise — admin enables under Organization settings → Skills

📚 New to Claude Skills? Check out the official guide: Use Skills in Claude

  1. Download architecture-diagram.zip
  2. Go to Customize → Skills
  3. Click the + button, then + Create skill, then Upload a skill
  4. Choose the zip file and toggle the skill on

Claude.ai Projects (Alternative)

  1. In your Claude.ai Project, upload the architecture-diagram.zip to the Project Knowledge

Claude Code CLI

Extract to your skills directory:

# Global skills
unzip architecture-diagram.zip -d ~/.claude/skills/

# Or project-local
unzip architecture-diagram.zip -d ./.claude/skills/

Manual Setup

Simply ensure both files are accessible to Claude:

architecture-diagram/
├── SKILL.md              # Skill instructions
└── resources/
    └── template.html     # Base template

💾 Output

Claude generates a self-contained HTML file that you can:

📐 What's Included in Output

Each generated diagram includes:

  1. Header — Project title with animated status indicator
  2. Main diagram — SVG with all components and connections
  3. Summary cards — 3 info cards highlighting key details
  4. Footer — Project metadata

🛠 Customization

The skill uses a consistent design system, but Claude will adapt:

📄 Example Output

The generated HTML structure:

<!DOCTYPE html>
<html>
  <head>
    <!-- Embedded styles, Google Fonts -->
  </head>
  <body>
    <div class="container">
      <div class="header"><!-- Title --></div>
      <div class="diagram-container">
        <svg><!-- Architecture diagram --></svg>
      </div>
      <div class="cards"><!-- Summary cards --></div>
      <p class="footer"><!-- Metadata --></p>
    </div>
  </body>
</html>

🔧 Technical Details

📄 Sister skill

For step-by-step workflows that unfold in time — approval flows, runbooks, automation pipelines, process-flow-diagram-generator — same design language, different shape language.

📝 License

MIT License — Free to use, modify, and distribute.

👥 Contributing

Suggestions and improvements welcome! Feel free to:

📬 Contact

Cocoon AI 📧 [email protected]


Made with ❤️ by Cocoon AI

architecture-diagram-generator (Cocoon-AI/architecture-diagram-generator)

Searching Database…

这是什么?这是一个 Claude AI 技能,把你用大白话描述的系统变成漂亮的深色主题架构图,渲染成能在任何浏览器里打开的独立 HTML/SVG 文件。
这是独立应用,还是装进 Claude 的东西?它是一个 Claude 技能包(zip 文件),上传到 claude.ai、Claude.ai Projects 或 Claude Code CLI 里使用——不是单独的应用。
这个技能怎么安装和使用?下载 architecture-diagram.zip,在 claude.ai 上进入 Customize → Skills,从该 zip 创建/上传技能并打开开关,然后描述你的系统(或粘贴代码库分析),让 Claude 生成架构图。
用它之前需要准备什么?你需要一个任意套餐(Free、Pro、Max、Team 或 Enterprise)的 claude.ai 账户,并在 Settings → Capabilities 里启用 Code Execution,然后才能上传自定义技能。
架构图生成后还能改吗?可以——你完全通过对话来迭代,让 Claude 添加组件、更改布局、更新样式或修复问题,HTML 文件会随之更新;没有单独的可视化编辑器。
生成的图里颜色是怎么编码的?每种组件类型都有固定的语义色:青色代表前端,翡翠绿代表后端,紫色代表数据库/存储,琥珀色代表云/AWS,玫红代表安全,石板灰代表通用外部系统。
有没有面向工作流(而不是架构)的相关技能?有——一个叫 process-flow-diagram-generator 的姊妹技能,使用同样的深色设计语言,但面向逐步流程,比如审批流程、运维手册和自动化流水线。
输出用什么字体和视觉风格?图表使用 JetBrains Mono 字体,背景为 slate-950(#020617),并带一层淡淡的 40px 网格纹理;箭头会先绘制,从而干净地垫在组件方框底下。
Creator
Cocoon-AI
Size
0.5 MB
Stars
7.4K
Age
9mo
Commits · 90 Days