Skip to content

AI Agent Skill to generate and render beautiful Mermaid diagrams as SVG or terminal ASCII — 15 themes, 6 diagram types, batch CLI, no browser.

docs: update README

sunmozongc2355f6d04d6
diff --git a/README.md b/README.md
index 8a44646..64f176c 100644
--- a/README.md
+++ b/README.md
@@ -1,59 +1,41 @@
-# Beautiful-Mermaid Skills
+# Preety-Mermaid Skills
## 简介
-为 Claude AI 提供的 Mermaid 图表渲染 Skill,支持 SVG 和 ASCII 双格式输出。
+为 AI 提供的 Mermaid 图表渲染 Skill,支持 SVG 和 ASCII 双格式输出,让您的文档更加生动。
-## 功能特性
-- 📊 支持 SVG 和 ASCII 渲染导出
-- 🎨 15 种主题选择(zinc-light
+## ✨ 功能特性
-zinc-dark
+- 📊 **多格式支持**:支持 SVG 和 ASCII 渲染导出
+- 🎨 **丰富主题**:内置 15 种精美主题,满足不同场景需求
+- 📈 **全图表支持**:支持 Flowchart, Sequence, State, Class, ER 等 5 种常用图表
+- ⚡ **高效渲染**:支持批量并行渲染,速度飞快
+- 📚 **开箱即用**:提供完整的模板和详细文档
-tokyo-night
+### 支持主题列表
+| Light Themes | Dark Themes | Other |
+| :--- | :--- | :--- |
+| zinc-light | zinc-dark | nord |
+| tokyo-night-light | tokyo-night | nord-light |
+| cappuccin-latte | tokyo-night-storm | dracula |
+| github-light | cappuccin-mocha | one-dark |
+| solarized-light | github-dark | |
+| | solarized-dark | |
-tokyo-night-storm
+## 🚀 安装步骤
-tokyo-night-light
-
-cappuccin-mocha
-
-cappuccin-latte
-
-nord
-
-nord-light
-
-dracula
-
-github-light
-
-github-dark
-
-solarized-light
-
-solarized-dark
-
-one-dark)
-- 📈 支持 5 种图表类型(Flowchart, Sequence, State, Class, ER)
-- ⚡ 支持批量并行渲染
-- 📚 完整的模板和文档
-
-## 安装步骤
-
-### 1. 安装到 Skills 目录
+### 一键安装
```bash
npx skills add https://github.com/intellectronica/agent-skills --skill Pretty-mermaid
```
-### 2. 验证安装
+### 验证安装
```bash
-cd beautiful-mermaid
+cd Pretty-mermaid
node scripts/themes.mjs
```
+> **提示**:首次运行时会自动安装依赖,只需确保您的环境中有 Node.js。
-> **首次运行时会自动安装依赖,只需 Node.js 环境。**
-
-## 快速开始
+## 📖 快速开始
### 列出可用主题
```bash
@@ -76,27 +58,23 @@ node scripts/batch.mjs \
--theme dracula
```
-## 使用示例
+## 📂 使用示例
-查看 `assets/example_diagrams/` 目录下的 5 个模板文件:
+查看 `assets/example_diagrams/` 目录下的 5 个模板文件,快速上手:
- `flowchart.mmd` - 流程图
- `sequence.mmd` - 时序图
- `state.mmd` - 状态图
- `class.mmd` - 类图
- `er.mmd` - ER 图
-## 完整文档
-
+## 📚 完整文档
详细使用指南请参阅 [SKILL.md](SKILL.md)
-## 系统要求
-
+## ⚙️ 系统要求
- Node.js 14+
-## 许可证
-
+## 📄 许可证
MIT License
-## 致谢
-
+## 🙏 致谢
基于 [beautiful-mermaid](https://github.com/lukilabs/beautiful-mermaid) 项目