Draw With Pele logo

Draw With Pele

Community
ShenQingchuan
draw-with-pele

使用 Pele 将 Mermaid 文本渲染为可定制主题的 SVG。当用户要求 /draw-with-pele、绘制流程图/时序图/架构图/类图/ER 图/甘特图/思维导图,或将 Mermaid 转成 SVG 时使用。

Overview

PublisherShenQingchuan
Repositoryskills
Skill namedraw-with-pele
Stars
28
Forks
3
Bundled files
36
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 36 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ShenQingchuan on GitHub. Read the source before you install it.

Installation

Install the Draw With Pele AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ShenQingchuan/skills/tree/main/registry/writing/draw-with-pele
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ShenQingchuan/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/registry/writing/draw-with-pele .claude/skills/draw-with-pele
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Draw With Pele in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Draw With Pele on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Draw With Pele is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Draw with Pele

先梳理信息,再写 Mermaid,最后用随附脚本生成 SVG。统一使用 Pele 渲染,保留可继续编辑的源文件。

工作流程

1. 选择最简单的合适图型

  • 流程、分支、依赖:flowchart
  • 多方按时间传递消息:sequenceDiagram
  • 系统与容器关系:C4 或 architecture-beta
  • 类、数据表及其关系:classDiagram、erDiagram
  • 计划与阶段:gantt、timeline
  • 层级与拆解:mindmap、treemap
  • 数值比较:xychart、pie

图型不确定时,读取 reference.md 的速查表。优先表达用户给出的核心关系,不为了显得丰富而堆叠图型。

2. 编写 Mermaid 源文件

确定图型后,只读取 reference.md 中链接的对应官方示例,以其语法为准;复杂变体沿示例文件顶部的链接查阅。然后在用户的工作目录保存为 <名称>.mmd:

  • 一张图只回答一个主要问题;节点使用简短、明确的标签。
  • 中文或含空格、标点的节点标签使用引号,例如 A["提交订单"]。
  • 流程图先选方向:步骤较少且横向展示用 LR,层级较深或步骤较多用 TD。
  • 保留事实之间的关系;缺少的信息不自行编造。
  • 仅需要视觉微调时,优先使用 Pele CSS 变量,具体写法见 reference.md。

3. 渲染 SVG

使用仓库自带的 Node.js runtime 执行:

bash
boss node "$HOME/.agents/skills/registry/writing/draw-with-pele/scripts/render.mjs" \
  "<名称>.mmd" -o "<名称>.svg"

runtime 未就绪时先执行 boss setup-runtime。如果提示缺少 pele 依赖,使用自带 npm 安装后重新执行:

bash
boss npm ci --prefix "$HOME/.agents/skills/registry/writing/draw-with-pele"

尺寸、字体、主题 CSS 等可选参数通过 --help 查看:

bash
boss node "$HOME/.agents/skills/registry/writing/draw-with-pele/scripts/render.mjs" --help

4. 修复并复验

脚本报告语法错误时,根据行号、列号和源码片段修改 .mmd,再运行同一渲染命令。完成标准是脚本退出码为 0,且目标 SVG 已生成。

5. 检查并交付

检查 SVG 的尺寸、文字和连线是否完整;过密时先精简标签或拆分图,再考虑调整方向与 --max-width。最终同时给出:

  • <名称>.svg:可直接打开或嵌入文档的成品;
  • <名称>.mmd:便于继续修改的源文件。

用户只要求源文本时,也至少运行一次渲染来验证语法。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Draw With Pele AI skill do?

使用 Pele 将 Mermaid 文本渲染为可定制主题的 SVG。当用户要求 /draw-with-pele、绘制流程图/时序图/架构图/类图/ER 图/甘特图/思维导图,或将 Mermaid 转成 SVG 时使用。

Why use Draw With Pele on TypingMind?

Because you install it once and use it with any model. Draw With Pele is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Draw With Pele in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ShenQingchuan/skills/tree/main/registry/writing/draw-with-pele. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Draw With Pele?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Draw With Pele?

As many as you like. As long as a model supports skills, you can use Draw With Pele with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Draw With Pele AI skill free?

Yes. It is published on GitHub by ShenQingchuan under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇