Xpersona
A

article-images-gen

CLAWHUB · Unverified

文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for... Skill: article-images-gen Owner: redisread Summary: 文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for... Tags: latest:1.0.3 Version history: v1.0.3 | 2026-05-17T04:23:45.672Z | user **Switched article illustration rendering engine to OpenCLI Gemini/Grok, with enhanced fault tolerance.** - Changed image generatio

62
Rank
84
Safety
999
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 999 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ffnk8pb7a2h30mhqztqv6ns83m7fv:article-images-gen
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-redisread-article-images-gen/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

12,716 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: article-images-gen
description: 文案插图专家,为文章生成手绘风格插图。风格:手绘、简约、整洁、留白、构图平衡、色调统一。Use when user asks to generate illustrations for articles, "为文章配图", "生成插图", or needs hand-drawn style images for content.
version: 2.0.0
metadata:
  homepage: https://github.com/victor-skills/tree/main/skills/article-images-gen
---

# Article Images Generator (文案插图专家)

专为文章生成手绘风格插图,使用 `opencli gemini image`(主)和 `opencli grok image`(降级)生成图片。

## 调用脚本

```bash
# 为文章生成配图(全自动:分析 → 生成大纲 → 生成提示词 → 生成图片 → 插入文章)
bun scripts/illustrator.ts path/to/article.md [--density <level>] [--output-dir <path>]

# 单张图片(直接 prompt)
bun scripts/main.ts --prompt "your prompt" [--image output.png]

# 批量 prompt 文件
bun scripts/main.ts --promptfiles prompt1.md,prompt2.md
```

密度选项:`minimal` (1-2张) | `balanced` (3-4张) | `per-section`(推荐)| `rich` (5+张)

## 工作流程

1. **分析文案**:识别章节结构、核心论点、适合插图的位置
2. **分析判断**:AI 根据文章章节数量和内容自动选择密度(默认 per-section)
3. **生成大纲**:保存 `{outputDir}/outline.md`
4. **生成提示词**:保存 `{outputDir}/prompts/NN-hand-drawn-{slug}.md`
5. **生成图片**:调用 `opencli gemini image`,失败后降级 `opencli grok image`,保存到 `{outputDir}/`
6. **更新文章**:在对应章节后插入图片引用 `![描述](imgs/01-hand-drawn-xxx.png)`

## 图片生成策略

- **首选**:`opencli gemini image`(16:9 横版)
- **降级**:Gemini 失败时自动切换 `opencli grok image`
- **超时**:单次生成最长 300 秒

## 环境要求
- **依赖**:`opencli` 已安装且 `gemini` / `grok` 可用
- **浏览器**:opencli 需要 Chrome 浏览器支持(自动化操作 gemini.google.com / grok.com)

## 输出目录

固定输出到 `/tmp/imageGen/{YYYYMMDD}/{articleName}/`,例如:
`/tmp/imageGen/20260410/my-article/01-hand-drawn-xxx.png`

`articleName` 取文章文件名(不含扩展名),日期取当天日期。

_meta.json

{
  "ownerId": "kn77pb4v8xgbmnssnry5kwjvex81n3z5",
  "slug": "article-images-gen",
  "version": "1.0.3",
  "publishedAt": 1778991825672
}

skill-card.md

## Description:

Generates hand-drawn, minimalist illustrations for articles and can add the generated image references back into the article Markdown.

This skill is ready for commercial/non-commercial use.

## Publisher:

[redisread](https://clawhub.ai/user/redisread)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, writers, and content teams use this skill to generate hand-drawn article illustrations, prompt files, an outline, and Markdown image references for long-form content.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Article text may be sent to Gemini or Grok through browser automation.

Mitigation: Use the skill only with content approved for those services and avoid sensitive, confidential, or regulated article text unless an appropriate data-handling review has been completed.

Risk: The skill automatically edits article files after generating images.

Mitigation: Run it on trusted article paths, keep and review the generated backups, and inspect the Markdown diff before publishing.

Risk: Server security evidence reports unsafe shell command construction.

Mitigation: Prefer a fixed release that replaces shell interpolation with argument-array process execution before broad installation.

## Reference(s):

- [Project homepage](https://github.com/victor-skills/tree/main/skills/article-images-gen)

## Skill Output:

**Output Type(s):** [Files, Markdown, Shell commands, Guidance]

**Output Format:** [Markdown guidance with bash commands; generated PNG files, prompt Markdown files, an outline Markdown file, and edited article Markdown.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Uses 16:9 image generation, writes outputs under /tmp/imageGen by default, and may insert image references into the source article.]

## Skill Version(s):

1.0.3 (source: ClawHub release metadata; artifact frontmatter says 2.0.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to article-images-gen and adjacent AI workflows.