Sweety Article Illustrator logo

Sweety Article Illustrator

Community
threerocks
sweety-article-illustrator

分析文章结构,识别需要视觉辅助的位置,通过类型×风格两维度方法生成配图。当用户说"为文章配图"、"添加插图"、"illustrate article"、"add images"、"generate images for article" 时使用。

Overview

Publisherthreerocks
Repositorysweety-skills
Skill namesweety-article-illustrator
Stars
42
Forks
5
Bundled files
31
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.

  • 31 bundled files

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

  • Open source

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

Installation

Install the Sweety 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/threerocks/sweety-skills/tree/main/skills/sweety-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/threerocks/sweety-skills.git /tmp/sweety-skills
mkdir -p .claude/skills
cp -r /tmp/sweety-skills/skills/sweety-article-illustrator .claude/skills/sweety-article-illustrator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sweety 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 Sweety 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 Sweety 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.

文章配图生成器

分析文章、定位插图位置、生成类型×风格一致的配图。

两个维度

维度控制示例
类型信息结构infographic, scene, flowchart, comparison, framework, timeline
风格视觉美学notion, warm, minimal, blueprint, watercolor, elegant

自由组合:--type infographic --style blueprint

也可使用预设:--preset tech-explainer → 一个参数搞定类型+风格。见风格预设。

类型

类型适用场景
infographic数据、指标、技术类
scene叙事、情感类
flowchart流程、工作流
comparison并列对比、选项
framework模型、架构
timeline历史、演进

风格

见 references/styles.md 了解核心风格、完整画廊和类型×风格兼容性。

工作流程

- [ ] 步骤 1:前置检查(EXTEND.md、参考文件、配置)
- [ ] 步骤 2:分析内容
- [ ] 步骤 3:确认设置(AskUserQuestion)
- [ ] 步骤 4:生成大纲
- [ ] 步骤 5:生成图片
- [ ] 步骤 6:完成

步骤 1:前置检查

1.5 加载偏好设置 (EXTEND.md) ⛔ 阻塞

bash
# macOS, Linux, WSL, Git Bash
test -f .sweety-skills/sweety-article-illustrator/EXTEND.md && echo "project"
test -f "${XDG_CONFIG_HOME:-$HOME/.config}/sweety-skills/sweety-article-illustrator/EXTEND.md" && echo "xdg"
test -f "$HOME/.sweety-skills/sweety-article-illustrator/EXTEND.md" && echo "user"
powershell
# PowerShell (Windows)
if (Test-Path .sweety-skills/sweety-article-illustrator/EXTEND.md) { "project" }
$xdg = if ($env:XDG_CONFIG_HOME) { $env:XDG_CONFIG_HOME } else { "$HOME/.config" }
if (Test-Path "$xdg/sweety-skills/sweety-article-illustrator/EXTEND.md") { "xdg" }
if (Test-Path "$HOME/.sweety-skills/sweety-article-illustrator/EXTEND.md") { "user" }
结果操作
已找到读取、解析、显示摘要
未找到⛔ 运行首次设置

完整流程:references/workflow.md

步骤 2:分析

分析项输出
内容类型技术 / 教程 / 方法论 / 叙事
目的信息传达 / 可视化 / 想象力
核心论点2-5 个要点
插图位置哪些地方插图能增加价值

关键:隐喻 → 可视化底层概念,而非字面图像。

完整流程:references/workflow.md

步骤 3:确认设置 ⚠️

单次 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 设置时

完整流程:references/workflow.md

步骤 4:生成大纲

保存 outline.md,包含前置元数据(type, density, style, image_count)和条目:

yaml
## 插图 1
**位置**: [章节/段落]
**目的**: [为什么]
**视觉内容**: [什么]
**文件名**: 01-infographic-concept-name.png

完整模板:references/workflow.md

步骤 5:生成图片

⛔ 阻塞:提示词文件必须在任何图片生成之前保存。

执行策略:当多张插图的提示词文件已保存且任务仅需生成时,优先使用 sweety-image-gen 批量模式(build-batch.ts → --batchfile),而非启动子代理。仅当每张图片仍需单独的提示词迭代或创意探索时使用子代理。

  1. 为每张插图按 references/prompt-construction.md 创建提示词文件
  2. 保存到 prompts/NN-{type}-{slug}.md,包含 YAML 前置元数据
  3. 提示词必须使用类型专用模板,包含结构化部分(ZONES / LABELS / COLORS / STYLE / ASPECT)
  4. LABELS 必须包含文章具体数据:实际数字、术语、指标、引用
  5. 不要在未保存提示词文件的情况下直接向 --prompt 传递即兴提示词
  6. 选择生成技能,处理参考图(direct/style/palette)
  7. 如果 EXTEND.md 启用了水印则应用
  8. 从已保存的提示词文件生成;失败时重试一次

完整流程:references/workflow.md

步骤 6:完成

在段落后插入 ![description]({relative-path}/NN-{type}-{slug}.png)。路径根据输出目录设置,相对于文章文件计算。

文章配图完成!
文章:[path] | 类型:[type] | 密度:[level] | 风格:[style]
图片:X/N 已生成

输出目录

输出目录由 EXTEND.md 中的 default_output_dir 决定(在首次设置时配置):

default_output_dir输出路径Markdown 插入路径
imgs-subdir(默认){article-dir}/imgs/imgs/NN-{type}-{slug}.png
same-dir{article-dir}/NN-{type}-{slug}.png
illustrations-subdir{article-dir}/illustrations/illustrations/NN-{type}-{slug}.png
independentillustrations/{topic-slug}/illustrations/{topic-slug}/NN-{type}-{slug}.png(相对于 cwd)

所有辅助文件(大纲、提示词)保存在输出目录内:

{output-dir}/
├── outline.md
├── prompts/
│   └── NN-{type}-{slug}.md
└── NN-{type}-{slug}.png

当输入是粘贴内容(无文件路径)时,始终使用 illustrations/{topic-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首次设置

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

分析文章结构,识别需要视觉辅助的位置,通过类型×风格两维度方法生成配图。当用户说"为文章配图"、"添加插图"、"illustrate article"、"add images"、"generate images for article" 时使用。

Why use Sweety Article Illustrator on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/threerocks/sweety-skills/tree/main/skills/sweety-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 Sweety 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 Sweety Article Illustrator?

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

Is the Sweety Article Illustrator AI skill free?

It is published on GitHub by threerocks. Check the repository for licensing terms. 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 👇