把小说、网文、短篇和章节内容改编成连续漫画,支持风格选择、连续性约束和分步生图。
/novel-to-comic posts/turing-story/source.md
/novel-to-comic article.md --art manga --tone warm
/novel-to-comic # then paste content
> 当前调用命令已切换为 novel-to-comic。
| Option | Values | Description |
|---|---|---|
| -------- | -------- | ------------- |
--art | ligne-claire (default), manga, realistic, ink-brush, chalk, minimalist | Art style / rendering technique |
--tone | 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 |
| Option | Description |
|---|---|
| -------- | ------------- |
--storyboard-only | Generate storyboard only, skip prompts and images |
--prompts-only | 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
| Style | 中文 | Description |
|---|---|---|
| ------- | ------ | ------------- |
ligne-claire | 清线 | Uniform lines, flat colors, European comic tradition (Tintin, Logicomix) |
manga | 日漫 | 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 |
| Tone | 中文 | Description |
|---|---|---|
| ------ | ------ | ------------- |
neutral | 中性 | Balanced, rational, educational |
warm | 温馨 | 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 |
Presets with special rules beyond art+tone:
| Preset | Equivalent | Special Rules |
|---|---|---|
| -------- | ----------- | --------------- |
--style ohmsha | --art manga --tone neutral | Visual metaphors, NO talking heads, gadget reveals |
--style wuxia | --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 |
| 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
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
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
{baseDir}{baseDir}/scripts/.ts {baseDir} in this document with the actual path${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bunScript Reference:
| Script | Purpose |
|---|---|
| -------- | --------- |
scripts/merge-to-pdf.ts | Merge comic pages into PDF |
Output directory: comic/{topic-slug}/
alan-turing-bio)turing-story-20260118-143052)Contents:
| File | Description | |
|---|---|---|
| ------ | ------------- | |
source-{slug}.{ext} | Source files | |
analysis.md | 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 |
Detection Priority:
--lang flag (explicit)language settingRule: Use user's input language or saved language preference for ALL interactions:
Technical terms remain in English.
Comic Progress:
- [ ] Step 1: Setup & Analyze
- [ ] 1.1 Preferences (EXTEND.md) ⛔ BLOCKING
- [ ] Found → load preferences → continue
- [ ] Not found → run first-time setup → MUST complete before other steps
- [ ] 1.2 Analyze, 1.3 Check existing
- [ ] Step 2: Confirmation - Style & options ⚠️ REQUIRED
- [ ] Step 3: Generate storyboard + characters
- [ ] Step 4: Review outline (conditional)
- [ ] Step 5: Generate prompts
- [ ] Step 6: Review prompts (conditional)
- [ ] Step 7: Generate images
- [ ] 7.1 Generate character sheet (if needed) → characters/characters.png
- [ ] 7.2 Generate pages (with --ref if character sheet exists)
- [ ] Step 8: Merge to PDF
- [ ] Step 9: Completion report
Input → [Preferences] ─┬─ Found → Continue
│
└─ Not found → First-Time Setup ⛔ BLOCKING
│
└─ Complete setup → Save EXTEND.md → Continue
│
┌─────────────────────────────────────────────────────────────────────┘
↓
Analyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → [Review?] → Prompts → [Review?] → Images → PDF → Complete
| 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 |
When generating serialized comics, multi-page narrative comics, or regenerating pages inside an existing project, apply these rules by default:
--images-only, --regenerate N) and avoid regenerating the whole project unless the user asks.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:
characters/characters.png exists, rename to characters/characters-backup-YYYYMMDD-HHMMSS.pngbaoyu-imagineSKILL.md and follow its documented interface rather than calling its scripts directlycharacters/characters.md as the prompt-file inputcharacters/characters.png4:3Compress character sheet (recommended when using as --ref):
sips -s format jpeg -s formatOptions 80 input.png --out output.jpg (macOS)pngquant --quality=65-80 input.png -o output.png--ref failures7.2 Generate each page:
| Continuity Asset | Skill Capability | Strategy |
|---|---|---|
| ------------------ | ------------------ | ---------- |
| Latest approved page/cover exists | Supports --ref | Pass latest approved page/cover as primary --ref, and character sheet as secondary reference when supported |
| Character sheet exists | Supports --ref | Pass characters/characters.png with EVERY page |
| Exists | No --ref support | Prepend character descriptions and continuity notes to EVERY prompt file |
| Skipped | — | Prompt file contains all character descriptions inline |
When both a continuity page and a character sheet exist, continuity page should take priority for rendering style and page-to-page cohesion, while character sheet supports identity stability.
--ref failure recovery: If generation fails with --ref:
sips -s format jpeg -s formatOptions 70 characters.png --out characters-compressed.jpg
or compress the latest continuity page similarly when that is the reference asset
--ref--ref (prompt-only), but embed character descriptions and continuity notes from the latest approved page in prompt textBackup rules for page generation:
prompts/NN-{cover|page}-[slug]-backup-YYYYMMDD-HHMMSS.mdNN-{cover|page}-[slug]-backup-YYYYMMDD-HHMMSS.pngprompts/01-page-xxx.md as the prompt-file input01-page-xxx.png3:4, preset may override)--refFull workflow details: references/workflow.md
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.
Check in this priority order:
| Path | Location |
|---|---|
| ------ | ---------- |
.baoyu-skills/novel-to-comic/EXTEND.md | Project directory |
${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/novel-to-comic/EXTEND.md | XDG config directory |
$HOME/.baoyu-skills/novel-to-comic/EXTEND.md | 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 | Preferred aspect | Language preference | Character presets | Production defaults for image generation
Schema: references/config/preferences-schema.md
For actual production runs, the skill should treat these preferences as first-class defaults when present in EXTEND.md or explicitly requested by the user:
watermark: false should remain the default recommendationlanguage: zh should be preferred for Chinese users and Chinese source workflowspreferred_art/tone/layout/aspect may remain null for auto-selectionIf the user has previously confirmed global production defaults, prefer saving them in the user-level EXTEND.md rather than project-only config.
Core Templates:
Style Definitions:
references/art-styles/ - Art styles (ligne-claire, manga, realistic, ink-brush, chalk, minimalist)references/tones/ - Tones (neutral, warm, dramatic, romantic, energetic, vintage, action)references/presets/ - Presets with special rules (ohmsha, wuxia, shoujo, concept-story, four-panel)references/layouts/ - Layouts (standard, cinematic, dense, splash, mixed, webtoon, four-panel)Workflow:
Config:
| 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.
--ref if sheet exists; prefer latest approved page/cover as continuity ref when available; compress/convert on failure; fall back to prompt-only共 1 个版本