Svg Article Illustrator logo

Svg Article Illustrator

Community
cat-xierluo
svg-article-illustrator

AI驱动的SVG文章配图生成工具,支持动态SVG、静态SVG和PNG导出三种输出模式。当用户需要为文章生成配图、创建SVG插图、将SVG转换为PNG,或提到"为文章配图"、"生成插图"时使用此技能。

Overview

Publishercat-xierluo
Repositorylegal-skills
Skill namesvg-article-illustrator
Stars
722
Forks
109
Bundled files
10
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.

  • 10 bundled files

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

  • Open source

    Published by cat-xierluo on GitHub. Read the source before you install it.

Installation

Install the Svg Article Illustrator 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/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator
  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/cat-xierluo/legal-skills.git /tmp/legal-skills
mkdir -p .claude/skills
cp -r /tmp/legal-skills/skills/svg-article-illustrator .claude/skills/svg-article-illustrator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Svg Article Illustrator 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 Svg Article Illustrator 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 Svg Article Illustrator 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.

SVG Article Illustrator

AI 驱动的文章配图生成工具,使用 SVG 技术为公众号文章生成高质量配图。

重要说明:默认模式(dynamic-svg 和 static-svg)将 SVG 代码直接嵌入到 Markdown 文件中,而不是使用 ![](path.svg) 的图片引用语法。这确保了动画效果和最佳兼容性。

快速开始

/svg-article-illustrator @path/to/article.md

依赖说明

  • dynamic-svg / static-svg 模式:无需安装任何依赖
  • png-export 模式:需要安装 Node.js 和 puppeteer,详见 references/png-export.md

选择输出模式

根据用户需求和发布平台选择合适的输出模式:

用户场景使用模式加载参考文件
默认/未指定dynamic-svgreferences/dynamic-svg.md
需要动画效果dynamic-svgreferences/dynamic-svg.md
需要 PNG 兼容性png-exportreferences/png-export.md
不知道如何使用 SVGpng-exportreferences/png-export.md
明确要求静态效果static-svgreferences/static-svg.md
需要静态 SVG 代码static-svgreferences/static-svg.md

默认模式:当用户未明确指定时,使用 dynamic-svg 模式。


并行生成模式

当配图数量 ≥ 8 张时,自动启用多 Agent 并行生成以提升效率。

详见:references/multi-agent-generation.md

核心思路:

  1. 主 Agent 分析文章内容并规划配图
  2. 插入占位符 [[ILLUSTRATION:ID:简短描述]] 到文章
  3. 解析占位符,按批次分发(每批 3-5 张)
  4. 并行启动多个 Task Agent 生成
  5. 主 Agent 按 ID 顺序收集并替换占位符

启用条件:

  • 规划的配图数量 ≥ 8 张

核心工作流程

第一阶段:内容分析

  1. 读取源文章 Markdown 文件

  2. 识别核心概念和关键信息点

  3. 规划配图位置:

    • 每个二级标题(##)后至少 1 张图
    • 每 2-3 个重要段落 1 张图
    • 重要概念转折点额外配图
    • 在规划位置插入占位符 [[ILLUSTRATION:ID:简短描述]]
  4. 评估并选择生成模式:

    • ≥ 8 张 → 并行生成(多 Task Agent)
    • < 8 张 → 顺序生成

第二阶段:设计 SVG

  1. 根据选择的输出模式应用相应规范
    • dynamic-svg:添加 SMIL 动画效果
    • static-svg:生成静态 SVG 代码
    • png-export:生成 SVG 文件
  2. 遵循共享设计原则:references/core-principles.md

第三阶段:生成与输出

  1. 解析占位符:提取所有 [[ILLUSTRATION:ID:描述]]
  2. 并行/顺序生成:
    • ≥ 8 张:并行生成(多 Task Agent)
    • < 8 张:顺序生成
  3. 替换占位符:将生成的 SVG 代码替换占位符

默认行为:除非用户明确要求 PNG 格式或图片文件引用,否则必须直接将 SVG 代码嵌入到 Markdown 文件中。

  • dynamic-svg:将 SVG 代码直接嵌入 Markdown 文件(使用 <svg> 标签)
  • static-svg:将 SVG 代码直接嵌入 Markdown 文件(使用 <svg> 标签)
  • png-export(仅当用户明确要求时):
    1. 保存 SVG 文件到源文章目录
    2. 使用 scripts/svg2png.js 转换为 PNG
    3. 在 Markdown 中插入图片引用 ![](path.png)

第四阶段:归档

每次完成配图生成后,将文章中的 SVG 代码提取并归档到 Skill 内部:

bash
# 归档目录结构
.claude/skills/svg-article-illustrator/archive/YYYYMMDD_HHMMSS_文章名/
├── 1_配图名称.svg  # 提取的 SVG 文件
├── 2_配图名称.svg
└── ...

归档命名规则:

  • 格式:YYYYMMDD_HHMMSS_文章标题
  • 文章标题取自 Markdown 的第一个一级标题(# 标题),去除特殊字符
  • SVG 文件命名:序号_配图名称.svg
  • 示例:20260209_163045_AI_Agent法律工作流未来范式/
    • 1_AI_Agent_演进概览.svg
    • 2_提示词设计.svg
    • ...

共享设计原则

所有输出模式都遵循相同的核心设计原则,详见:references/core-principles.md

核心要点:

  • 概念聚焦:每张图只表达 1-2 个核心概念
  • 极简设计:浅色主题,大图形,少文字
  • 画布尺寸:800x450(16:9 比例)
  • 边界控制:所有元素在有效区域内(60px 安全边距)

模式特定规范

Dynamic SVG 模式

默认模式,支持 SMIL 动画效果。

详见:references/dynamic-svg.md

核心特性:

  • SMIL 动画:浮动、虚线流动、箭头绘制
  • Emoji 动画:浮动、脉冲效果
  • 逻辑性动画优先:箭头和虚线框必须有动画
  • SVG 代码直接嵌入 Markdown

Static SVG 模式

静态 SVG 代码直接嵌入 Markdown。

详见:references/static-svg.md

核心特性:

  • 无动画效果
  • SVG 代码直接嵌入 Markdown
  • 公众号完美支持

PNG Export 模式

生成独立的 SVG 和 PNG 文件。

详见:references/png-export.md

核心特性:

  • 文件命名:短名-序号.svg(≤15 字符)
  • 保存位置:与源文章同目录
  • PNG 转换:使用 scripts/svg2png.js
  • 跨平台兼容性最佳

PNG 转换脚本

使用 scripts/svg2png.js 进行高保真转换:

bash
node scripts/svg2png.js input.svg [output.png] [dpi]
  • 默认 DPI:600
  • 支持:emoji、中文、CSS
  • 输出位置:总是生成到 SVG 源文件所在目录

成功标准

  • 配图密度 10-15 张,有效增强视觉吸引力
  • 每张配图概念聚焦准确
  • 极简风格贯穿始终
  • 公众号显示正常
  • 跨平台兼容性良好

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 Svg Article Illustrator AI skill do?

AI驱动的SVG文章配图生成工具,支持动态SVG、静态SVG和PNG导出三种输出模式。当用户需要为文章生成配图、创建SVG插图、将SVG转换为PNG,或提到"为文章配图"、"生成插图"时使用此技能。

Why use Svg Article Illustrator on TypingMind?

Because you install it once and use it with any model. Svg Article Illustrator 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 Svg Article Illustrator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator. 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 Svg Article Illustrator?

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 Svg Article Illustrator?

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

Is the Svg Article Illustrator AI skill free?

Yes. It is published on GitHub by cat-xierluo 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 👇