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: improve skill discovery and presentation

imxvfbbca51879f8
diff --git a/README.md b/README.md
index 71c3f75..92e3ec5 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,14 @@
<div align="center">
-# Pretty-Mermaid Skills
+# Pretty Mermaid
-![fLEWT5x.png](https://iili.io/fLEWT5x.png)
+**Beautiful Mermaid diagrams for AI agents**
-Render Mermaid diagrams as beautiful SVGs or ASCII art
+Turn Mermaid source into polished SVGs and terminal-ready ASCII—locally, without a browser.
-Ultra-fast, fully themeable, zero DOM dependencies. Built for the AI era.
+![Pretty Mermaid converts Mermaid source into themed SVG and terminal ASCII diagrams](assets/social-preview.png)
+[![skills.sh](https://skills.sh/b/imxv/pretty-mermaid-skills)](https://www.skills.sh/imxv/pretty-mermaid-skills/pretty-mermaid)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Node.js Version](https://img.shields.io/badge/node-%3E%3D14-brightgreen)](https://nodejs.org/)
[![GitHub stars](https://img.shields.io/github/stars/imxv/Pretty-mermaid-skills?style=social)](https://github.com/imxv/Pretty-mermaid-skills)
@@ -16,8 +17,20 @@ Ultra-fast, fully themeable, zero DOM dependencies. Built for the AI era.
</div>
-## Introduction
-A Mermaid diagram rendering skill for AI, supporting both SVG and ASCII output formats to make your documentation more vivid.
+## 🚀 Install
+
+```bash
+npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y
+```
+
+[View the skill, install count, and security audits on skills.sh →](https://www.skills.sh/imxv/pretty-mermaid-skills/pretty-mermaid)
+
+## Why Pretty Mermaid?
+
+- **Made for AI agents**: works with Claude Code, Cursor, Codex, Gemini CLI, and more
+- **One source, two outputs**: polished SVG for docs and ASCII/Unicode for terminals
+- **No browser required**: renders locally without Chromium, Puppeteer, or a DOM
+- **Flexible by default**: 15 themes, custom colors, six diagram types, and batch rendering
## ✨ Features
@@ -49,11 +62,11 @@ Seamlessly integrates with the following AI coding environments:
- **Codex**
- **qoder**
-## 🚀 Installation
+## Installation details
-### One-click Install
+### Install from GitHub
```bash
-npx skills add https://github.com/imxv/pretty-mermaid-skills --skill pretty-mermaid
+npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y
```
### Verify Installation
diff --git a/README_CN.md b/README_CN.md
index 97a839e..5be3bf0 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -1,13 +1,14 @@
<div align="center">
-# Pretty-Mermaid Skills
+# Pretty Mermaid
-![fLEWT5x.png](https://iili.io/fLEWT5x.png)
+**为 AI Agent 打造的精美 Mermaid 图表**
-将 Mermaid 图表渲染为精美的 SVG 或 ASCII 艺术
+将 Mermaid 源码转换为精美 SVG 与终端友好的 ASCII——本地运行,无需浏览器。
-极速、全主题支持、零 DOM 依赖。为 AI 而生。
+![Pretty Mermaid 将 Mermaid 源码转换为带主题的 SVG 和终端 ASCII 图表](assets/social-preview.png)
+[![skills.sh](https://skills.sh/b/imxv/pretty-mermaid-skills)](https://www.skills.sh/imxv/pretty-mermaid-skills/pretty-mermaid)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Node.js Version](https://img.shields.io/badge/node-%3E%3D14-brightgreen)](https://nodejs.org/)
[![GitHub stars](https://img.shields.io/github/stars/imxv/Pretty-mermaid-skills?style=social)](https://github.com/imxv/Pretty-mermaid-skills)
@@ -16,8 +17,20 @@
</div>
-## 简介
-为 AI 提供的 Mermaid 图表渲染 Skill,支持 SVG 和 ASCII 双格式输出,让您的文档更加生动。
+## 🚀 安装
+
+```bash
+npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y
+```
+
+[前往 skills.sh 查看安装量与安全扫描结果 →](https://www.skills.sh/imxv/pretty-mermaid-skills/pretty-mermaid)
+
+## 为什么选择 Pretty Mermaid?
+
+- **专为 AI Agent 设计**:支持 Claude Code、Cursor、Codex、Gemini CLI 等环境
+- **一份源码,两种输出**:文档用精美 SVG,终端用 ASCII/Unicode
+- **无需浏览器**:本地渲染,不依赖 Chromium、Puppeteer 或 DOM
+- **灵活开箱即用**:15 种主题、自定义配色、六种图表类型和批量渲染
## ✨ 功能特性
@@ -49,11 +62,11 @@
- **Codex**
- **qoder**
-## 🚀 安装步骤
+## 安装说明
-### 一键安装
+### 从 GitHub 安装
```bash
-npx skills add https://github.com/imxv/pretty-mermaid-skills --skill pretty-mermaid
+npx skills add imxv/pretty-mermaid-skills@pretty-mermaid -g -y
```
### 验证安装
diff --git a/SKILL.md b/SKILL.md
index 0e4c4b0..59457e1 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -1,16 +1,13 @@
---
name: pretty-mermaid
description: |
- Render beautiful Mermaid diagrams as SVG or ASCII art using the beautiful-mermaid library.
- Supports 15 themes, 6 diagram types (flowchart, sequence, state, class, ER, XY charts), and ultra-fast rendering.
-
- Use this skill when:
- 1. User asks to "render a mermaid diagram" or provides .mmd files
- 2. User requests "create a flowchart/sequence/state/class/ER/XY chart"
- 3. User wants to "apply a theme" or "beautify a diagram"
- 4. User needs to "batch process multiple diagrams"
- 5. User mentions "ASCII diagram" or "terminal-friendly diagram"
- 6. User wants to visualize architecture, workflows, data models, or chart data
+ Generate and render Mermaid diagrams for architecture docs, READMEs, PRs,
+ terminals, and CI as themed SVG or ASCII/Unicode art. Use this skill whenever
+ the user provides Mermaid code or .mmd files; asks for a flowchart,
+ sequence/state/class diagram, ERD, XY chart, or architecture/workflow/data-model
+ visualization; or wants to beautify, theme, batch-convert, or make a diagram
+ terminal-friendly. Runs locally without a browser or DOM, with 15 built-in
+ themes and custom colors.
---
# Pretty Mermaid
diff --git a/assets/social-preview.png b/assets/social-preview.png
new file mode 100644
index 0000000..cf0a9a9
Binary files /dev/null and b/assets/social-preview.png differ
diff --git a/references/THEMES.md b/references/THEMES.md
index 52394af..b766413 100644
--- a/references/THEMES.md
+++ b/references/THEMES.md
@@ -332,8 +332,8 @@ graph TD
只需要两种颜色就能创建美观的主题:
-```python
-python render_mermaid.py \
+```bash
+node scripts/render.mjs \
--input diagram.mmd \
--output output.svg \
--bg '#0f0f0f' \
@@ -346,8 +346,8 @@ python render_mermaid.py \
对于更丰富的颜色方案,提供可选的强调色:
-```python
-python render_mermaid.py \
+```bash
+node scripts/render.mjs \
--input diagram.mmd \
--output output.svg \
--bg '#0f0f0f' \
@@ -404,7 +404,7 @@ python render_mermaid.py \
### 示例 1:在中文文档中使用 Tokyo Night
```bash
-python render_mermaid.py \
+node scripts/render.mjs \
--input 架构图.mmd \
--output 架构图.svg \
--theme tokyo-night
@@ -413,7 +413,7 @@ python render_mermaid.py \
### 示例 2:创建打印友好的图表
```bash
-python render_mermaid.py \
+node scripts/render.mjs \
--input diagram.mmd \
--output diagram.svg \
--theme zinc-light
@@ -422,7 +422,7 @@ python render_mermaid.py \
### 示例 3:批量应用主题
```bash
-python batch_render.py \
+node scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./output \
--format svg \
@@ -432,7 +432,7 @@ python batch_render.py \
### 示例 4:自定义企业主题
```bash
-python render_mermaid.py \
+node scripts/render.mjs \
--input diagram.mmd \
--output output.svg \
--bg '#1a1a1a' \