Md2pdf Export
wentorai/Research-Claw
Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension.
Creates SVG illustrations for a Markdown article as animated SVG, static SVG or PNG files, and places them in the text at planned positions.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills svg-article-illustrator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/svg-article-illustrator .claude/skills/svg-article-illustrator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "svg-article-illustrator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator into .claude/skills/svg-article-illustrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "svg-article-illustrator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustratorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills svg-article-illustrator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/svg-article-illustrator .agents/skills/svg-article-illustrator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "svg-article-illustrator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator into .agents/skills/svg-article-illustrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "svg-article-illustrator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills svg-article-illustrator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/svg-article-illustrator .cursor/skills/svg-article-illustrator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "svg-article-illustrator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator into .cursor/skills/svg-article-illustrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "svg-article-illustrator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/svg-article-illustrator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills svg-article-illustrator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/svg-article-illustrator .gemini/skills/svg-article-illustrator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "svg-article-illustrator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator into .gemini/skills/svg-article-illustrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "svg-article-illustrator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills svg-article-illustratorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/svg-article-illustrator .github/skills/svg-article-illustrator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "svg-article-illustrator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator into .github/skills/svg-article-illustrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "svg-article-illustrator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills svg-article-illustrator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/svg-article-illustrator .opencode/skills/svg-article-illustrator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "svg-article-illustrator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/svg-article-illustrator into .opencode/skills/svg-article-illustrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "svg-article-illustrator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
svg-article-illustratorCreates SVG illustrations for a Markdown article as animated SVG, static SVG or PNG files, and places them in the text at planned positions.
This skill reads an article in Markdown, plans where illustrations belong, designs an SVG for each spot and inserts the result. It offers three output modes: dynamic SVG with SMIL animation, which is the default, static SVG, and PNG export. In the two SVG modes the code is embedded straight into the Markdown file instead of linked as an image, to keep animation and compatibility. PNG output is produced only when you ask for it, using the bundled `svg2png.js` script.
Placement follows simple rules: at least one image after each second-level heading, roughly one per two or three key paragraphs, and extra images at conceptual turning points. Each spot gets a placeholder tag that is later replaced with the generated SVG. When eight or more images are planned, the work is split into batches of three to five and handed to parallel sub-agents, then collected in ID order. Finished SVGs are archived into a timestamped folder named after the article.
The two SVG modes need no installs; PNG export needs Node.js and puppeteer. The skill is written in Chinese and aimed at illustrating WeChat Official Account articles. Reference files cover design principles, each mode, PNG export and multi-agent generation, and `assets/` holds layout and animation material.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Shell and JavaScript), which the agent can run.
Shell commands in SKILL.md call:
nodeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
SVG Article Illustrator loads about 981 tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 31 tokens; SKILL.md has 286 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 286 words, ~981 tokens.
.claude/skills/svg-article-illustrator/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.AI 驱动的文章配图生成工具,使用 SVG 技术为公众号文章生成高质量配图。
重要说明:默认模式(dynamic-svg 和 static-svg)将 SVG 代码直接嵌入到 Markdown 文件中,而不是使用
的图片引用语法。这确保了动画效果和最佳兼容性。
/svg-article-illustrator @path/to/article.md根据用户需求和发布平台选择合适的输出模式:
| 用户场景 | 使用模式 | 加载参考文件 |
|---|---|---|
| 默认/未指定 | dynamic-svg | references/dynamic-svg.md |
| 需要动画效果 | dynamic-svg | references/dynamic-svg.md |
| 需要 PNG 兼容性 | png-export | references/png-export.md |
| 不知道如何使用 SVG | png-export | references/png-export.md |
| 明确要求静态效果 | static-svg | references/static-svg.md |
| 需要静态 SVG 代码 | static-svg | references/static-svg.md |
默认模式:当用户未明确指定时,使用 dynamic-svg 模式。
当配图数量 ≥ 8 张时,自动启用多 Agent 并行生成以提升效率。
详见:references/multi-agent-generation.md
核心思路:
[[ILLUSTRATION:ID:简短描述]] 到文章启用条件:
读取源文章 Markdown 文件
识别核心概念和关键信息点
规划配图位置:
[[ILLUSTRATION:ID:简短描述]]评估并选择生成模式:
[[ILLUSTRATION:ID:描述]]默认行为:除非用户明确要求 PNG 格式或图片文件引用,否则必须直接将 SVG 代码嵌入到 Markdown 文件中。
<svg> 标签)<svg> 标签)scripts/svg2png.js 转换为 PNG每次完成配图生成后,将文章中的 SVG 代码提取并归档到 Skill 内部:
# 归档目录结构
.claude/skills/svg-article-illustrator/archive/YYYYMMDD_HHMMSS_文章名/
├── 1_配图名称.svg # 提取的 SVG 文件
├── 2_配图名称.svg
└── ...归档命名规则:
YYYYMMDD_HHMMSS_文章标题# 标题),去除特殊字符序号_配图名称.svg20260209_163045_AI_Agent法律工作流未来范式/1_AI_Agent_演进概览.svg2_提示词设计.svg所有输出模式都遵循相同的核心设计原则,详见:references/core-principles.md
核心要点:
默认模式,支持 SMIL 动画效果。
核心特性:
静态 SVG 代码直接嵌入 Markdown。
核心特性:
生成独立的 SVG 和 PNG 文件。
核心特性:
scripts/svg2png.js使用 scripts/svg2png.js 进行高保真转换:
node scripts/svg2png.js input.svg [output.png] [dpi]© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files (scripts, references, assets) in skills/svg-article-illustrator of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
SVG Article Illustrator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| SVG Article Illustrator this skillcat-xierluo/legal-skills | 720 | — | ~981 | Automated safety check: Pass | MIT | |
| Md2pdf Exportwentorai/Research-Claw | 858 | — | ~2.1k | Automated safety check: Notes | Custom licence | |
| Markdown PRD to HTML Rendererowainlewis/blueprint | 412 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Web Visualsglifxyz/glif-mcp-server | 213 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Article Illustration Batch GeneratorSpaceZephyr/design-buddy | 176 | — | ~1k | Automated safety check: Pass | None | |
| Markdown To HTMLgithub/awesome-copilot | 40k | 1 repos | ~6.2k | Automated safety check: Pass | MIT |
wentorai/Research-Claw
Convert Markdown files to PDF, PNG, or JPEG using headless Chrome (Puppeteer), following the same methodology as VS Code's Markdown Preview Enhanced extension.
owainlewis/blueprint
Converts a complete Markdown PRD or technical design into one verified, static HTML reading page without changing what it says.
glifxyz/glif-mcp-server
Make images, textures, illustrations and background video for a website or app you are building, with Glif, and wire them into the code.
SpaceZephyr/design-buddy
Splits a Markdown article by heading, drafts an image prompt for each section, then generates diagrams with the Gemini API and embeds them in the note.
github/awesome-copilot
Convert Markdown files to HTML similar to marked.js, pandoc, gomarkdown/markdown, or similar tools; or writing custom script to convert markdown to html and/or working on web template systems like…
kepano/obsidian-skills
Renders Markdown notes from Knap templates and JSON data on the command line, including notes built from Defuddle web page output.
cat-xierluo/legal-skills
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
Categories
Creates SVG illustrations for a Markdown article as animated SVG, static SVG or PNG files, and places them in the text at planned positions. This skill reads an article in Markdown, plans where illustrations belong, designs an SVG for each spot and inserts the result. It offers three output modes: dynamic SVG with SMIL animation, which is the default, static SVG, and PNG export.
SVG Article Illustrator fits situations like: adding illustrations to a Markdown article that has several sections; producing animated SVG diagrams for an article; converting article SVGs to PNG for platforms that do not accept SVG; generating many illustrations at once for a long article.
Run `npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a claude-code`. Or copy the skill folder (skills/svg-article-illustrator in cat-xierluo/legal-skills) into .claude/skills/svg-article-illustrator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a codex`. Or copy the skill folder (skills/svg-article-illustrator in cat-xierluo/legal-skills) into .agents/skills/svg-article-illustrator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill svg-article-illustrator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/svg-article-illustrator, .gemini/skills/svg-article-illustrator, .github/skills/svg-article-illustrator and .opencode/skills/svg-article-illustrator in your project.
Going by SKILL.md and its folder, SVG Article Illustrator needs a shell and JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js and puppeteer, only for the PNG export mode.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
SVG Article Illustrator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 981 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with SVG Article Illustrator: Md2pdf Export (wentorai/Research-Claw, 858 stars), Markdown PRD to HTML Renderer (owainlewis/blueprint, 412 stars), Web Visuals (glifxyz/glif-mcp-server, 213 stars) and Article Illustration Batch Generator (SpaceZephyr/design-buddy, 176 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.