← 返回 Skills 市场
nengnengz

Baoyu Article Illustrator

作者 nengnengZ · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
200
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install baoyu-article-illustrator-2
功能描述
Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style two-dimension approach. Use when user asks...
使用说明 (SKILL.md)

Article Illustrator

Analyze articles, identify illustration positions, generate images with Type × Style consistency.

Two Dimensions

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.

Types

Type Best For
infographic Data, metrics, technical
scene Narratives, emotional
flowchart Processes, workflows
comparison Side-by-side, options
framework Models, architecture
timeline History, evolution

Styles

See references/styles.md for Core Styles, full gallery, and Type × Style compatibility.

Workflow

- [ ] 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

Step 1: Pre-check

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

Step 2: Analyze

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

Step 3: Confirm Settings ⚠️

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

Step 4: Generate Outline

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

Step 5: Generate Images

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.

  1. For each illustration, create a prompt file per references/prompt-construction.md
  2. Save to prompts/NN-{type}-{slug}.md with YAML frontmatter
  3. Prompts MUST use type-specific templates with structured sections (ZONES / LABELS / COLORS / STYLE / ASPECT)
  4. LABELS MUST include article-specific data: actual numbers, terms, metrics, quotes
  5. DO NOT pass ad-hoc inline prompts to --prompt without saving prompt files first
  6. Select generation skill, process references (direct/style/palette)
  7. Apply watermark if EXTEND.md enabled
  8. Generate from saved prompt files; retry once on failure

Full procedures: references/workflow.md

Step 6: Finalize

Insert ![description]({relative-path}/NN-{type}-{slug}.png) 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

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 {article-dir}/illustrations/ illustrations/NN-{type}-{slug}.png
independent illustrations/{topic-slug}/ illustrations/{topic-slug}/NN-{type}-{slug}.png (relative to cwd)

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.

Modification

Action Steps
Edit Update prompt → Regenerate → Update reference
Add Position → Prompt → Generate → Update outline → Insert
Delete Delete files → Remove reference → Update outline

References

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
安全使用建议
This skill is internally consistent for generating article illustrations, but it will read and write files on your system: it insists on running a first-time setup and will create/modify EXTEND.md in the project (.baoyu-skills/) or your user config (~/.baoyu-skills/ or $XDG_CONFIG_HOME). It will also create prompts/, references/, and image output directories relative to the article. Before using, decide whether you want preferences stored globally or per-project, and review any EXTEND.md and generated prompt files the skill creates. Because it can write files, run it on non-sensitive projects first to confirm behavior; no network credentials or external installs are requested. If you want to avoid persistent changes, run the skill in a disposable project directory or inspect its created files immediately after a run.
功能分析
Type: OpenClaw Skill Name: baoyu-article-illustrator-2 Version: 0.1.1 The baoyu-article-illustrator-2 skill bundle is a comprehensive tool designed to analyze article content and generate structured image prompts for visual aids. The workflow, detailed across SKILL.md and workflow.md, includes legitimate configuration checks for an EXTEND.md file using standard shell commands (test -f) and follows a transparent process of user confirmation and file management. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the instructions are strictly aligned with the stated purpose of article illustration.
能力评估
Purpose & Capability
Name/description match the behavior: the skill analyzes articles, generates prompt files, and writes/organizes illustration outputs and references. No unexpected credentials, binaries, or unrelated dependencies are requested.
Instruction Scope
Instructions require reading the article and user/config files and writing prompts, reference descriptions, and images under project or user config directories (e.g., .baoyu-skills/..., ~/.config/..., {article-dir}/imgs/). This is coherent with its function, but the workflow enforces a blocking first-time-setup and mandatory saving of EXTEND.md before any analysis — note that the agent will perform filesystem reads/writes in project and home config locations when invoked.
Install Mechanism
No install spec or external downloads; instruction-only skill (no code files to execute) — lowest install risk.
Credentials
The skill requests no environment variables, secrets, or external credentials. It does read/write config files and project files (EXTEND.md, prompts/, references/, output image directories), which is proportionate to an illustration workflow.
Persistence & Privilege
The skill will create and modify files in project and user locations (EXTEND.md, prompts, references, images). always:false (no forced global enable). This file-writing behavior is expected for this tool but is persistent on disk and should be reviewed by the user.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install baoyu-article-illustrator-2
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /baoyu-article-illustrator-2 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
baoyu-article-illustrator-2 v0.1.1 - Added detailed references and documentation files: prompt-construction.md, style-presets.md, styles.md, usage.md, workflow.md - Documentation now includes expanded workflow, style guides, and usage instructions for generating article illustrations - No changes to existing functionality; update focuses on reference material and improved onboarding
v0.1.0
baoyu-article-illustrator 0.1.0 - Initial release providing article illustration workflow. - Analyzes article structure, identifies optimal spots for images, and suggests illustration types. - Supports Type × Style approach for visual consistency (e.g., infographic–blueprint). - Interactive workflow: pre-checks, confirms settings with user, generates outline and prompts before image creation. - Output includes organized files: outline, prompts, generated images, with markdown-ready links. - Supports flexible output directories and easy post-generation modification (edit, add, delete). - Comprehensive documentation links for advanced configuration and style presets.
元数据
Slug baoyu-article-illustrator-2
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Baoyu Article Illustrator 是什么?

Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style two-dimension approach. Use when user asks... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 200 次。

如何安装 Baoyu Article Illustrator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install baoyu-article-illustrator-2」即可一键安装,无需额外配置。

Baoyu Article Illustrator 是免费的吗?

是的,Baoyu Article Illustrator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Baoyu Article Illustrator 支持哪些平台?

Baoyu Article Illustrator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Baoyu Article Illustrator?

由 nengnengZ(@nengnengz)开发并维护,当前版本 v0.1.1。

💬 留言讨论