Knowledge Comic Creator
Create original knowledge comics with flexible art style × tone combinations.
Usage
CODEBLOCK0
Options
Visual Dimensions
| Option | Values | Description |
|---|
| INLINECODE0 | ligne-claire (default), manga, realistic, ink-brush, chalk, minimalist | Art style / rendering technique |
| INLINECODE1 |
neutral (default), warm, dramatic, romantic, energetic, vintage, action | Mood / atmosphere |
|
--layout | standard (default), cinematic, dense, splash, mixed, webtoon, four-panel | Panel arrangement |
|
--aspect | 3:4 (default, portrait), 4:3 (landscape), 16:9 (widescreen) | Page aspect ratio |
|
--lang | auto (default), zh, en, ja, etc. | Output language |
Partial Workflow Options
| Option | Description |
|---|
| INLINECODE5 | Generate storyboard only, skip prompts and images |
| INLINECODE6 |
Generate storyboard + prompts, skip images |
|
--images-only | Generate images from existing prompts directory |
|
--regenerate N | Regenerate specific page(s) only (e.g.,
3 or
2,5,8) |
Details: references/partial-workflows.md
Art Styles (画风)
| Style | 中文 | Description |
|---|
| INLINECODE11 | 清线 | Uniform lines, flat colors, European comic tradition (Tintin, Logicomix) |
| INLINECODE12 |
日漫 | Large eyes, manga conventions, expressive emotions |
|
realistic | 写实 | Digital painting, realistic proportions, sophisticated |
|
ink-brush | 水墨 | Chinese brush strokes, ink wash effects |
|
chalk | 粉笔 | Chalkboard aesthetic, hand-drawn warmth |
|
minimalist | 极简 | Clean black line art, limited spot color, stick-figure characters |
Tones (基调)
| Tone | 中文 | Description |
|---|
| INLINECODE17 | 中性 | Balanced, rational, educational |
| INLINECODE18 |
温馨 | Nostalgic, personal, comforting |
|
dramatic | 戏剧 | High contrast, intense, powerful |
|
romantic | 浪漫 | Soft, beautiful, decorative elements |
|
energetic | 活力 | Bright, dynamic, exciting |
|
vintage | 复古 | Historical, aged, period authenticity |
|
action | 动作 | Speed lines, impact effects, combat |
Preset Shortcuts
Presets with special rules beyond art+tone:
| Preset | Equivalent | Special Rules |
|---|
| INLINECODE24 | INLINECODE25 | Visual metaphors, NO talking heads, gadget reveals |
| INLINECODE26 |
--art ink-brush --tone action | Qi effects, combat visuals, atmospheric elements |
|
--style shoujo |
--art manga --tone romantic | Decorative elements, eye details, romantic beats |
|
--style concept-story |
--art manga --tone warm | Visual symbol system, growth arc, dialogue+action balance |
|
--style four-panel |
--art minimalist --tone neutral --layout four-panel | 起承转合 4-panel structure, B&W + spot color, stick-figure characters |
Compatibility Matrix
| Art Style | ✓✓ Best | ✓ Works | ✗ Avoid |
|---|
| ligne-claire | neutral, warm | dramatic, vintage, energetic | romantic, action |
| manga |
neutral, romantic, energetic, action | warm, dramatic | vintage |
| realistic | neutral, warm, dramatic, vintage | action | romantic, energetic |
| ink-brush | neutral, dramatic, action, vintage | warm | romantic, energetic |
| chalk | neutral, warm, energetic | vintage | dramatic, action, romantic |
| minimalist | neutral | warm, energetic | dramatic, vintage, romantic, action |
Details: references/auto-selection.md
Auto Selection
Content signals determine default art + tone + layout (or preset):
| Content Signals | Recommended |
|---|
| Tutorial, how-to, programming, educational | ohmsha preset |
| Pre-1950, classical, ancient |
realistic + vintage |
| Personal story, mentor | ligne-claire + warm |
| Martial arts, wuxia |
wuxia preset |
| Romance, school life |
shoujo preset |
| Psychology, motivation, business narrative |
concept-story preset |
| Business allegory, fable, parable, short insight, 四格 |
four-panel preset |
| Biography, balanced | ligne-claire + neutral |
When preset is recommended: Load references/presets/{preset}.md and apply all special rules.
Details: references/auto-selection.md
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- 1. Determine this SKILL.md file's directory path as INLINECODE36
- Script path = INLINECODE37
- Replace all
{baseDir} in this document with the actual path - Resolve
${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun
Script Reference:
| Script | Purpose |
|---|
| INLINECODE44 | Merge comic pages into PDF |
File Structure
Output directory: comic/{topic-slug}/
- - Slug: 2-4 words kebab-case from topic (e.g.,
alan-turing-bio) - Conflict: append timestamp (e.g.,
turing-story-20260118-143052)
Contents:
| File | Description |
|---|
| INLINECODE48 | Source files |
| INLINECODE49 |
Content analysis |
|
storyboard.md | Storyboard with panel breakdown |
|
characters/characters.md | Character definitions |
|
characters/characters.png | Character reference sheet |
|
prompts/NN-{cover\|page}-[slug].md | Generation prompts |
|
NN-{cover\|page}-[slug].png | Generated images |
|
{topic-slug}.pdf | Final merged PDF |
Language Handling
Detection Priority:
- 1.
--lang flag (explicit) - EXTEND.md
language setting - User's conversation language
- Source content language
Rule: Use user's input language or saved language preference for ALL interactions:
- - Storyboard outlines and scene descriptions
- Image generation prompts
- User selection options and confirmations
- Progress updates, questions, errors, summaries
Technical terms remain in English.
Workflow
Progress Checklist
CODEBLOCK1
Flow
CODEBLOCK2
Step Summary
| Step | Action | Key Output |
|---|
| 1.1 | Load EXTEND.md preferences ⛔ BLOCKING if not found | Config loaded |
| 1.2 |
Analyze content |
analysis.md |
| 1.3 | Check existing directory | Handle conflicts |
| 2 | Confirm style, focus, audience, reviews | User preferences |
| 3 | Generate storyboard + characters |
storyboard.md,
characters/ |
| 4 | Review outline (if requested) | User approval |
| 5 | Generate prompts |
prompts/*.md |
| 6 | Review prompts (if requested) | User approval |
| 7.1 | Generate character sheet (if needed) |
characters/characters.png |
| 7.2 | Generate pages (with character ref if available) |
*.png files |
| 8 | Merge to PDF |
{slug}.pdf |
| 9 | Completion report | Summary |
Step 7: Image Generation
7.1 Generate character sheet (conditional):
Character sheet is recommended for multi-page comics with recurring characters, but NOT required for all presets:
| Condition | Action |
|---|
| Multi-page comic with detailed characters | Generate character sheet (recommended) |
| Preset with simplified characters (e.g., four-panel minimalist) |
Skip — prompt descriptions are sufficient |
| Single-page comic | Skip unless characters are complex |
When generating character sheet:
- - Backup rule: If
characters/characters.png exists, rename to INLINECODE66 - Invoke an installed image generation skill such as INLINECODE67
- Read that skill's
SKILL.md and follow its documented interface rather than calling its scripts directly - Use
characters/characters.md as the prompt-file input - Save output to INLINECODE70
- Use aspect ratio INLINECODE71
Compress character sheet (recommended when using as --ref):
- - Use available image compression skill (if any)
- Or system tools:
sips -s format jpeg -s formatOptions 80 input.png --out output.jpg (macOS) - Or: INLINECODE74
- Compression reduces API payload size and avoids
--ref failures
7.2 Generate each page:
| Character Sheet | Skill Capability | Strategy |
|---|
| Exists | Supports INLINECODE76 | Pass characters/characters.png with EVERY page |
| Exists |
No
--ref support | Prepend character descriptions to EVERY prompt file |
| Skipped | — | Prompt file contains all character descriptions inline |
--ref failure recovery: If generation fails with --ref:
- 1. Compress: Convert reference image to JPEG with reduced quality:
sips -s format jpeg -s formatOptions 70 characters.png --out characters-compressed.jpg
- 2. Retry with compressed image as INLINECODE82
- If still fails: Fall back to generating WITHOUT
--ref (prompt-only, character descriptions embedded in prompt text)
Backup rules for page generation:
- - If prompt file exists: rename to INLINECODE84
- If image file exists: rename to INLINECODE85
- Invoke the installed image generation skill for each page
- Use
prompts/01-page-xxx.md as the prompt-file input - Save output to INLINECODE87
- Use aspect ratio from storyboard (default
3:4, preset may override) - If character sheet exists and skill supports reference images, pass as INLINECODE89
Full workflow details: references/workflow.md
EXTEND.md Paths ⛔ BLOCKING
CRITICAL: If EXTEND.md not found, MUST complete first-time setup before ANY other questions or steps. Do NOT proceed to content analysis, do NOT ask about art style, do NOT ask about tone — ONLY complete the preferences setup first.
| Path | Location |
|---|
| INLINECODE90 | Project directory |
| INLINECODE91 |
User home |
| Result | Action |
|---|
| Found | Read, parse, display summary → Continue |
| Not found |
⛔
BLOCKING: Run first-time setup ONLY (
references/config/first-time-setup.md) → Complete and save EXTEND.md → Then continue |
EXTEND.md Supports: Watermark | Preferred art/tone/layout | Custom style definitions | Character presets | Language preference
Schema: references/config/preferences-schema.md
References
Core Templates:
Style Definitions:
- -
references/art-styles/ - Art styles (ligne-claire, manga, realistic, ink-brush, chalk, minimalist) - INLINECODE93 - Tones (neutral, warm, dramatic, romantic, energetic, vintage, action)
- INLINECODE94 - Presets with special rules (ohmsha, wuxia, shoujo, concept-story, four-panel)
- INLINECODE95 - Layouts (standard, cinematic, dense, splash, mixed, webtoon, four-panel)
Workflow:
Config:
Page Modification
| Action | Steps |
|---|
| Edit | Update prompt file FIRST → --regenerate N → Regenerate PDF |
| Add |
Create prompt at position → Generate with character ref → Renumber subsequent → Update storyboard → Regenerate PDF |
|
Delete | Remove files → Renumber subsequent → Update storyboard → Regenerate PDF |
IMPORTANT: When updating pages, ALWAYS update the prompt file (prompts/NN-{cover|page}-[slug].md) FIRST before regenerating. This ensures changes are documented and reproducible.
Notes
- - Image generation: 10-30 seconds per page
- Auto-retry once on generation failure
- Use stylized alternatives for sensitive public figures
- Maintain style consistency via session ID
- Step 2 confirmation required - do not skip
- Steps 4/6 conditional - only if user requested in Step 2
- Step 7.1 character sheet - recommended for multi-page comics, optional for simple presets
- Step 7.2 character reference - use
--ref if sheet exists; compress/convert on failure; fall back to prompt-only - Watermark/language configured once in EXTEND.md
知识漫画创作者
以灵活的画风×基调组合创作原创知识漫画。
使用方法
bash
/baoyu-comic posts/turing-story/source.md
/baoyu-comic article.md --art manga --tone warm
/baoyu-comic # 然后粘贴内容
选项
视觉维度
| 选项 | 可选值 | 说明 |
|---|
| --art | 清线(默认)、日漫、写实、水墨、粉笔、极简 | 画风/渲染技法 |
| --tone |
中性(默认)、温馨、戏剧、浪漫、活力、复古、动作 | 情绪/氛围 |
| --layout | 标准(默认)、电影、密集、跨页、混合、网漫、四格 | 分镜布局 |
| --aspect | 3:4(默认,竖版)、4:3(横版)、16:9(宽屏) | 页面宽高比 |
| --lang | 自动(默认)、zh、en、ja 等 | 输出语言 |
部分工作流选项
| 选项 | 说明 |
|---|
| --storyboard-only | 仅生成分镜脚本,跳过提示词和图像 |
| --prompts-only |
生成分镜脚本+提示词,跳过图像 |
| --images-only | 从已有提示词目录生成图像 |
| --regenerate N | 仅重新生成指定页面(如 3 或 2,5,8) |
详情:references/partial-workflows.md
画风
| 风格 | 中文 | 说明 |
|---|
| ligne-claire | 清线 | 均匀线条、平涂色彩,欧洲漫画传统(丁丁历险记、Logicomix) |
| manga |
日漫 | 大眼睛、漫画惯例、丰富表情 |
| realistic | 写实 | 数字绘画、写实比例、精致细腻 |
| ink-brush | 水墨 | 中国毛笔笔触、水墨渲染效果 |
| chalk | 粉笔 | 黑板美学、手绘温暖感 |
| minimalist | 极简 | 干净黑色线条、有限点缀色、火柴人角色 |
基调
| 基调 | 中文 | 说明 |
|---|
| neutral | 中性 | 平衡、理性、教育性 |
| warm |
温馨 | 怀旧、个人化、舒适 |
| dramatic | 戏剧 | 高对比、强烈、有力 |
| romantic | 浪漫 | 柔和、优美、装饰性元素 |
| energetic | 活力 | 明亮、动感、激动人心 |
| vintage | 复古 | 历史感、做旧、时代真实感 |
| action | 动作 | 速度线、冲击效果、战斗场面 |
预设快捷方式
具有画风+基调之外特殊规则的预设:
| 预设 | 等效 | 特殊规则 |
|---|
| --style ohmsha | --art manga --tone neutral | 视觉隐喻,禁止人物对话特写,科技产品展示 |
| --style wuxia |
--art ink-brush --tone action | 气功效果、战斗画面、氛围元素 |
| --style shoujo | --art manga --tone romantic | 装饰性元素、眼部细节、浪漫节奏 |
| --style concept-story | --art manga --tone warm | 视觉符号系统、成长弧线、对话+动作平衡 |
| --style four-panel | --art minimalist --tone neutral --layout four-panel | 起承转合四格结构、黑白+点缀色、火柴人角色 |
兼容性矩阵
| 画风 | ✓✓ 最佳 | ✓ 可用 | ✗ 避免 |
|---|
| 清线 | 中性、温馨 | 戏剧、复古、活力 | 浪漫、动作 |
| 日漫 |
中性、浪漫、活力、动作 | 温馨、戏剧 | 复古 |
| 写实 | 中性、温馨、戏剧、复古 | 动作 | 浪漫、活力 |
| 水墨 | 中性、戏剧、动作、复古 | 温馨 | 浪漫、活力 |
| 粉笔 | 中性、温馨、活力 | 复古 | 戏剧、动作、浪漫 |
| 极简 | 中性 | 温馨、活力 | 戏剧、复古、浪漫、动作 |
详情:references/auto-selection.md
自动选择
内容信号决定默认的画风+基调+布局(或预设):
| 内容信号 | 推荐 |
|---|
| 教程、操作指南、编程、教育 | ohmsha 预设 |
| 1950年前、古典、古代 |
写实 + 复古 |
| 个人故事、导师 | 清线 + 温馨 |
| 武术、武侠 |
wuxia 预设 |
| 浪漫、校园生活 |
shoujo 预设 |
| 心理学、励志、商业叙事 |
concept-story 预设 |
| 商业寓言、寓言、比喻、短感悟、四格 |
four-panel 预设 |
| 传记、平衡 | 清线 + 中性 |
当推荐预设时:加载 references/presets/{preset}.md 并应用所有特殊规则。
详情:references/auto-selection.md
脚本目录
重要:所有脚本位于此技能的 scripts/ 子目录中。
代理执行说明:
- 1. 确定此 SKILL.md 文件的目录路径为 {baseDir}
- 脚本路径 = {baseDir}/scripts/<脚本名称>.ts
- 将本文档中所有 {baseDir} 替换为实际路径
- 解析 ${BUN_X} 运行时:如果已安装 bun → bun;如果可用 npx → npx -y bun;否则建议安装 bun
脚本参考:
| 脚本 | 用途 |
|---|
| scripts/merge-to-pdf.ts | 合并漫画页面为 PDF |
文件结构
输出目录:comic/{主题-slug}/
- - Slug:从主题中提取的 2-4 个单词的短横线命名(如 alan-turing-bio)
- 冲突:追加时间戳(如 turing-story-20260118-143052)
内容:
| 文件 | 说明 |
|---|
| source-{slug}.{ext} | 源文件 |
| analysis.md |
内容分析 |
| storyboard.md | 分镜脚本及分格拆解 |
| characters/characters.md | 角色定义 |
| characters/characters.png | 角色参考图 |
| prompts/NN-{cover\|page}-[slug].md | 生成提示词 |
| NN-{cover\|page}-[slug].png | 生成的图像 |
| {topic-slug}.pdf | 最终合并的 PDF |
语言处理
检测优先级:
- 1. --lang 标志(显式指定)
- EXTEND.md 中的 language 设置
- 用户的对话语言
- 源内容语言
规则:在所有交互中使用用户的输入语言或保存的语言偏好:
- - 分镜脚本大纲和场景描述
- 图像生成提示词
- 用户选择选项和确认
- 进度更新、问题、错误、摘要
技术术语保留英文。
工作流
进度清单
漫画进度:
- [ ] 1.1 偏好设置(EXTEND.md)⛔ 阻塞
- [ ] 找到 → 加载偏好 → 继续
- [ ] 未找到 → 运行首次设置 → 必须在其他步骤前完成
- [ ] 1.2 分析,1.3 检查已有
- - [ ] 步骤 2:确认 - 风格与选项 ⚠️ 必需
- [ ] 步骤 3:生成分镜脚本 + 角色
- [ ] 步骤 4:审核大纲(条件性)
- [ ] 步骤 5:生成提示词
- [ ] 步骤 6:审核提示词(条件性)
- [ ] 步骤 7:生成图像
- [ ] 7.1 生成角色表(如需)→ characters/characters.png
- [ ] 7.2 生成页面(如有角色表则使用 --ref)