Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,21 @@ Use $ian-xiaohei-illustrations 为这篇中文文章设计并生成 5 张小黑

---

## 在 Claude Code 使用

这个 skill 的格式(`SKILL.md` frontmatter + `references/` 渐进式参考)和 Anthropic 的 Agent Skills 完全兼容,所以除了 Codex,它也能装进 Claude Code:

```bash
# 个人 scope(所有项目可用)
cp -R ./ian-xiaohei-illustrations "$HOME/.claude/skills/ian-xiaohei-illustrations"
```

唯一的平台差异是生图那一步:现在它是**工具无关**的——有 Codex 内置 `image_gen` 就用它(最稳,能改图);有图像生成 MCP(例如 Claude 的 `mcp__image-gen__generate_image`,设 16:9 / png)就用它;两者都没有时,就为每张图输出可直接粘贴的提示词。**小黑 IP、风格 DNA、构图规则、工作流完全不变。**

视觉风格本身与语言无关(`references/prompt-template.md` 的 Visual DNA 已经是英文),所以也能生成英文标注的配图。注意:Flux 类纯文生图模型画中文字较弱,这种后端上英文标注反而更稳。

---

## 怎么用

### 只做配图规划
Expand Down
10 changes: 8 additions & 2 deletions ian-xiaohei-illustrations/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: ian-xiaohei-illustrations
description: 生成 Ian 风格的中文正文配图。用于用户要求为中文文章、帖子、博客、Notion 文档、工作流文档、方法论、流程、结构、状态、隐喻或观点生成“怪诞”“小黑”“手绘”“正文配图”“文章插图”“配图建议”“shot list”“去标题/改图”等任务;默认使用小黑 IP、纯白手绘、少量红橙蓝批注、简洁清爽但天马行空的视觉风格。
description: 生成 Ian 风格的中文正文配图。用于用户要求为中文文章、帖子、博客、Notion 文档、工作流文档、方法论、流程、结构、状态、隐喻或观点生成“怪诞”“小黑”“手绘”“正文配图”“文章插图”“配图建议”“shot list”“去标题/改图”等任务;默认使用小黑 IP、纯白手绘、少量红橙蓝批注、简洁清爽但天马行空的视觉风格;英文请求亦可触发,如 "hand-drawn article illustration"、"deadpan mascot explainer"、"shot list for a blog post"
---

# Ian 小黑怪诞正文配图
Expand Down Expand Up @@ -51,7 +51,13 @@ description: 生成 Ian 风格的中文正文配图。用于用户要求为中

### 3. 单张生成

如果用户明确要求“生成 / 输出 / 做图 / 帮我生成”,不要停下来等确认;用内置 `image_gen` 每张单独生成。不要把多张图拼在一张里。
如果用户明确要求“生成 / 输出 / 做图 / 帮我生成”,不要停下来等确认;用环境里可用的图像生成工具,按下方优先级每张单独生成。不要把多张图拼在一张里。

按以下优先级选择图像生成工具(工具无关,不要写死某一家):

1. 有内置 `image_gen`(Codex)→ 直接用。
2. 有图像生成 MCP(如 Claude 的 `mcp__image-gen__generate_image`,设 `aspect_ratio="16:9"`、`output_format="png"`、`num_outputs=1`)→ 用它。⚠️ Flux 系纯文生图模型对中文字渲染较弱:优先用英文或双语标注,并把标注压到 2-4 个、每个尽量 ≤4 字,降低错字风险。
3. 没有任何图像工具 → 不要假装生成;按 `references/prompt-template.md` 为每张图输出「可直接粘贴到外部生图工具」的英文提示词,这也是合格交付,不是失败。

每张图只讲一个核心结构。提示词必须包含:

Expand Down
2 changes: 2 additions & 0 deletions ian-xiaohei-illustrations/references/prompt-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ One image explains only one core structure. Keep the main subject around 40%-60%

## 图像编辑提示

> ⚠️ 以下编辑提示需要支持「输入图片再修改」(inpaint / edit)的工具,例如 Codex 的 `image_gen`。纯文生图 MCP(如 Flux / `mcp__image-gen__generate_image`)做不到——这时改用「减少标注词后重新生成」,或一开始就在生图提示词里写明 "no title in the top-left corner",从源头避免标题。

去掉左上角标题:

```text
Expand Down