baoyu-article-illustrator by jimliu/baoyu-skills
npx skills add https://github.com/jimliu/baoyu-skills --skill baoyu-article-illustrator分析文章,识别插图位置,生成具有类型 × 风格一致性的图像。
| 维度 | 控制内容 | 示例 |
|---|---|---|
| 类型 | 信息结构 | 信息图、场景、流程图、对比图、框架图、时间线 |
| 风格 | 视觉美学 | 概念风、温暖风、极简风、蓝图风、水彩风、优雅风 |
自由组合:--type infographic --style blueprint
或使用预设:--preset tech-explainer → 一个标志包含类型和风格。参见风格预设。
| 类型 | 最适合 |
|---|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
infographic| 数据、指标、技术性内容 |
scene | 叙述性、情感性内容 |
flowchart | 流程、工作流 |
comparison | 并列对比、选项对比 |
framework | 模型、架构 |
timeline | 历史、演变过程 |
关于核心风格、完整图库以及类型 × 风格兼容性,请参见references/styles.md。
- [ ] 步骤 1:预检查(EXTEND.md、参考资料、配置)
- [ ] 步骤 2:分析内容
- [ ] 步骤 3:确认设置(AskUserQuestion)
- [ ] 步骤 4:生成大纲
- [ ] 步骤 5:生成图像
- [ ] 步骤 6:最终完成
1.5 加载偏好设置(EXTEND.md)⛔ 阻塞步骤
# macOS, Linux, WSL, Git Bash
test -f .baoyu-skills/baoyu-article-illustrator/EXTEND.md && echo "project"
test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-article-illustrator/EXTEND.md" && echo "xdg"
test -f "$HOME/.baoyu-skills/baoyu-article-illustrator/EXTEND.md" && echo "user"
# PowerShell (Windows)
if (Test-Path .baoyu-skills/baoyu-article-illustrator/EXTEND.md) { "project" }
$xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" }
if (Test-Path "$xdg/baoyu-skills/baoyu-article-illustrator/EXTEND.md") { "xdg" }
if (Test-Path "$HOME/.baoyu-skills/baoyu-article-illustrator/EXTEND.md") { "user" }
| 结果 | 操作 |
|---|---|
| 找到 | 读取、解析、显示摘要 |
| 未找到 | ⛔ 运行首次设置 |
| 分析项 | 输出 |
|---|---|
| 内容类型 | 技术性 / 教程 / 方法论 / 叙述性 |
| 目的 | 信息传达 / 可视化 / 想象力激发 |
| 核心论点 | 2-5 个要点 |
| 位置 | 插图能增加价值的地方 |
关键:隐喻 → 可视化底层概念,而非字面图像。
一次 AskUserQuestion,最多 4 个问题。Q1-Q2 必需。除非选择了预设,否则 Q3 必需。
| 问题 | 选项 |
|---|---|
| Q1:预设或类型 | [推荐预设]、[备选预设] 或手动选择:infographic、scene、flowchart、comparison、framework、timeline、mixed |
| Q2:密度 | minimal(1-2)、balanced(3-5)、per-section(推荐)、rich(6+) |
| Q3:风格 | [推荐]、minimal-flat、sci-fi、hand-drawn、editorial、scene、poster、其他 — 如果选择了预设则跳过 |
| Q4:语言 | 当文章语言与 EXTEND.md 设置不同时 |
保存 outline.md,包含 frontmatter(类型、密度、风格、image_count)和条目:
## 插图 1
**位置**: [章节/段落]
**目的**: [原因]
**视觉内容**: [内容]
**文件名**: 01-infographic-concept-name.png
⛔ 阻塞步骤:在生成任何图像之前,提示词文件必须已保存。
执行策略:当多个插图已保存提示词文件,且当前任务仅为生成时,优先使用 baoyu-image-gen 的批处理模式(build-batch.ts → --batchfile),而非创建子代理。仅当每个图像仍需单独的提示词迭代或创意探索时,才使用子代理。
prompts/NN-{type}-{slug}.md,包含 YAML frontmatter--promptdirect/style/palette)在段落后插入 。路径根据输出目录设置,相对于文章文件计算。
文章插图完成!
文章:[路径] | 类型:[类型] | 密度:[级别] | 风格:[风格]
图像:已生成 X/N
输出目录由 EXTEND.md 中的 default_output_dir 决定(在首次设置时配置):
default_output_dir | 输出路径 | Markdown 插入路径 |
|---|---|---|
imgs-subdir(默认) | {文章目录}/imgs/ | imgs/NN-{type}-{slug}.png |
same-dir | {文章目录}/ | NN-{type}-{slug}.png |
illustrations-subdir | {文章目录}/illustrations/ | illustrations/NN-{type}-{slug}.png |
independent | illustrations/{主题-slug}/ | illustrations/{主题-slug}/NN-{type}-{slug}.png(相对于当前工作目录) |
所有辅助文件(大纲、提示词)都保存在输出目录内:
{输出目录}/
├── outline.md
├── prompts/
│ └── NN-{type}-{slug}.md
└── NN-{type}-{slug}.png
当输入为粘贴内容(无文件路径)时,始终使用 illustrations/{主题-slug}/,同时保存 source-{slug}.{ext}。
Slug:2-4 个单词,kebab-case 格式。冲突处理:追加 -YYYYMMDD-HHMMSS。
| 操作 | 步骤 |
|---|---|
| 编辑 | 更新提示词 → 重新生成 → 更新引用 |
| 添加 | 确定位置 → 创建提示词 → 生成 → 更新大纲 → 插入 |
| 删除 | 删除文件 → 移除引用 → 更新大纲 |
| 文件 | 内容 |
|---|---|
| references/workflow.md | 详细流程 |
| references/usage.md | 命令语法 |
| references/styles.md | 风格图库 |
| references/style-presets.md | 预设快捷方式(类型 + 风格) |
| references/prompt-construction.md | 提示词模板 |
| references/config/first-time-setup.md | 首次设置 |
每周安装量
12.9K
仓库
GitHub 星标数
11.3K
首次出现
Jan 19, 2026
安全审计
安装于
opencode11.6K
gemini-cli11.3K
codex11.0K
cursor10.7K
github-copilot10.2K
amp9.8K
Analyze articles, identify illustration positions, generate images with Type × Style consistency.
| Dimension | Controls | Examples |
|---|---|---|
| Type | Information structure | infographic, scene, flowchart, comparison, framework, timeline |
| Style | Visual aesthetics | notion, warm, minimal, blueprint, watercolor, elegant |
Combine freely: --type infographic --style blueprint
Or use presets: --preset tech-explainer → type + style in one flag. See Style Presets.
| Type | Best For |
|---|---|
infographic | Data, metrics, technical |
scene | Narratives, emotional |
flowchart | Processes, workflows |
comparison | Side-by-side, options |
framework | Models, architecture |
timeline | History, evolution |
See references/styles.md for Core Styles, full gallery, and Type × Style compatibility.
- [ ] Step 1: Pre-check (EXTEND.md, references, config)
- [ ] Step 2: Analyze content
- [ ] Step 3: Confirm settings (AskUserQuestion)
- [ ] Step 4: Generate outline
- [ ] Step 5: Generate images
- [ ] Step 6: Finalize
1.5 Load Preferences (EXTEND.md) ⛔ BLOCKING
# macOS, Linux, WSL, Git Bash
test -f .baoyu-skills/baoyu-article-illustrator/EXTEND.md && echo "project"
test -f "${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-article-illustrator/EXTEND.md" && echo "xdg"
test -f "$HOME/.baoyu-skills/baoyu-article-illustrator/EXTEND.md" && echo "user"
# PowerShell (Windows)
if (Test-Path .baoyu-skills/baoyu-article-illustrator/EXTEND.md) { "project" }
$xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" }
if (Test-Path "$xdg/baoyu-skills/baoyu-article-illustrator/EXTEND.md") { "xdg" }
if (Test-Path "$HOME/.baoyu-skills/baoyu-article-illustrator/EXTEND.md") { "user" }
| Result | Action |
|---|---|
| Found | Read, parse, display summary |
| Not found | ⛔ Run first-time-setup |
Full procedures: references/workflow.md
| Analysis | Output |
|---|---|
| Content type | Technical / Tutorial / Methodology / Narrative |
| Purpose | information / visualization / imagination |
| Core arguments | 2-5 main points |
| Positions | Where illustrations add value |
CRITICAL : Metaphors → visualize underlying concept, NOT literal image.
Full procedures: references/workflow.md
ONE AskUserQuestion, max 4 Qs. Q1-Q2 REQUIRED. Q3 required unless preset chosen.
| Q | Options |
|---|---|
| Q1: Preset or Type | [Recommended preset], [alt preset], or manual: infographic, scene, flowchart, comparison, framework, timeline, mixed |
| Q2: Density | minimal (1-2), balanced (3-5), per-section (Recommended), rich (6+) |
| Q3: Style | [Recommended], minimal-flat, sci-fi, hand-drawn, editorial, scene, poster, Other — skip if preset chosen |
| Q4: Language | When article language ≠ EXTEND.md setting |
Full procedures: references/workflow.md
Save outline.md with frontmatter (type, density, style, image_count) and entries:
## Illustration 1
**Position**: [section/paragraph]
**Purpose**: [why]
**Visual Content**: [what]
**Filename**: 01-infographic-concept-name.png
Full template: references/workflow.md
⛔ BLOCKING: Prompt files MUST be saved before ANY image generation.
Execution strategy : When multiple illustrations have saved prompt files and the task is now plain generation, prefer baoyu-image-gen batch mode (build-batch.ts → --batchfile) over spawning subagents. Use subagents only when each image still needs separate prompt iteration or creative exploration.
prompts/NN-{type}-{slug}.md with YAML frontmatter--prompt without saving prompt files firstdirect/style/palette)Full procedures: references/workflow.md
Insert  after paragraphs. Path computed relative to article file based on output directory setting.
Article Illustration Complete!
Article: [path] | Type: [type] | Density: [level] | Style: [style]
Images: X/N generated
Output directory is determined by default_output_dir in EXTEND.md (set during first-time setup):
default_output_dir | Output Path | Markdown Insert Path |
|---|---|---|
imgs-subdir (default) | {article-dir}/imgs/ | imgs/NN-{type}-{slug}.png |
same-dir | {article-dir}/ | NN-{type}-{slug}.png |
illustrations-subdir |
All auxiliary files (outline, prompts) are saved inside the output directory:
{output-dir}/
├── outline.md
├── prompts/
│ └── NN-{type}-{slug}.md
└── NN-{type}-{slug}.png
When input is pasted content (no file path), always uses illustrations/{topic-slug}/ with source-{slug}.{ext} saved alongside.
Slug : 2-4 words, kebab-case. Conflict : append -YYYYMMDD-HHMMSS.
| Action | Steps |
|---|---|
| Edit | Update prompt → Regenerate → Update reference |
| Add | Position → Prompt → Generate → Update outline → Insert |
| Delete | Delete files → Remove reference → Update outline |
| File | Content |
|---|---|
| references/workflow.md | Detailed procedures |
| references/usage.md | Command syntax |
| references/styles.md | Style gallery |
| references/style-presets.md | Preset shortcuts (type + style) |
| references/prompt-construction.md | Prompt templates |
| references/config/first-time-setup.md | First-time setup |
Weekly Installs
12.9K
Repository
GitHub Stars
11.3K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode11.6K
gemini-cli11.3K
codex11.0K
cursor10.7K
github-copilot10.2K
amp9.8K
头脑风暴技能:AI协作设计流程,将创意转化为完整规范与实施计划
75,000 周安装
{article-dir}/illustrations/ |
illustrations/NN-{type}-{slug}.png |
independent | illustrations/{topic-slug}/ | illustrations/{topic-slug}/NN-{type}-{slug}.png (relative to cwd) |