lov-document-illustrator SKILL.md skillA
lov-document-illustrator from lovstudio/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add lovstudio/skills/lov-document-illustrator@v0.3.1Pins v0.3.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- lovstudio/skills
- Path
skills/document-illustrator/SKILL.md- Versions recorded
- 7
- Latest version
- v0.3.1, committed Sep 25, 2026
- First version recorded
- May 7, 2026
- Size
- 6,700 bytes
- Repository stars
- 72
- License
- MIT
为文档原地插入 AI 配图。读取文档后全局规划插入点,并行生成所有图片, 异步插回原文。支持封面图、自定义比例和三种风格。 Use when: 用户要求为文档/文章/笔记生成配图、插图。 Also trigger when user mentions: 配图、插图、illustration、 generate images、document images、为文章加图。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 文档插画师 · Document Illustrator
基于 AI 智能分析的文档配图生成工具。全局规划、并行生成、异步插入,高效为文档添加配图。
## 核心流程(5 步)
```
备份 → 全局规划插入点 → 并行生成图片 → 异步插入原文 → 清理备份
```
### Step 0: 备份原文件
在修改前先创建备份,确保安全回滚:
```python
import shutil
backup_path = f"{doc_path}.illustrator-backup"
shutil.copy2(doc_path, backup_path)
```
所有后续操作直接在原文件上进行。
### Step 1: 全局确定所有插入位置
读取完整文档,一次性规划所有图片的插入位置:
1. 使用 Read 工具读取完整文档
2. AI 分析内容结构,识别核心主题
3. 为每个主题确定**精确的插入锚点**(行号 + 上下文文本)
4. 输出一份插入计划表:
```
插入计划:
[1] 行 15 后 | 锚点: "## Rules 的诞生" | 主题: Rules 演化历程
[2] 行 42 后 | 锚点: "## Commands 打包" | 主题: 工作流打包
[3] 行 78 后 | 锚点: "## MCP 动态能力" | 主题: 第三方集成
...
[cover] 行 1 前 | 封面图 | 主题: 全文概要
```
**关键**:插入锚点使用上下文文本(而非纯行号),这样即使前面的插入导致行号偏移,后续插入仍可通过锚点定位。
### Step 2: 并行生成所有图片
用 Agent 工具并行启动所有图片生成子任务:
```
对每个插入计划项,同时启动一个 Agent:
Agent 1: generate_single_image.py --title "..." --content "..." --output images/illustration-01.png
Agent 2: generate_single_image.py --title "..." --content "..." --output images/illustration-02.png
Agent 3: generate_single_image.py --title "..." --content "..." --output images/illustration-03.png
...
```
- 所有 Agent 并发执行,不互相等待
- 每个 Agent 完成后返回图片路径或错误信息
- 预期总耗时 = 单张耗时(10-20s),而非 N * 单张耗时
### Step 3: 异步插入原文
…Read the whole file at its exact version.
How to install
mdr add lovstudio/skills/lov-document-illustrator@sha256:48c10dd43f0bf7baThe line at the top of this page pins the label v0.3.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ub5gyfjjkuf7qorc)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between May 7, 2026 and Sep 25, 2026, about one every 24 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.3.1 latest | 2026-09-25 | 4b67fd1 | 6,700 B | A | view · diff |
| v0.3.0 | 2026-09-07 | a09848e | 6,659 B | A | view · diff |
| v0.3.0 | 2026-08-23 | 00fafa8 | 6,646 B | A | view · diff |
| v0.2.1 | 2026-08-10 | d704a55 | 5,924 B | A | view · diff |
| v0.2.1 | 2026-08-10 | 22e49cf | 5,297 B | A | view · diff |
| v0.2.1 | 2026-08-09 | a4179a1 | 5,297 B | A | view · diff |
| v0.2.1 | 2026-05-07 | cb778a0 | 5,303 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6700 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
lovstudio/skills · 72 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ub5gyfjjkuf7qorc GET https://markdownregistry.com/api/v1/resolve?ref=lovstudio/skills/lov-document-illustrator GET https://markdownregistry.com/api/v1/blob/48c10dd43f0bf7ba0d39ad96e779efc1daa0eb3ae4735f19b85f93fb15a20b6e
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.