← 返回
未分类

novel-to-comic

Novel-to-comic adaptation skill supporting multi-page sequential comic production, style continuity, and image generation for serialized stories. Use when user asks to adapt 小说、网文、短篇、章节内容 into 连续漫画、条漫、韩漫风竖屏漫画.
将小说一键转换成系列漫画
user_4b5a0b58
未分类 community v1.0.0 1 版本 98850.6 Key: 无需
★ 0
Stars
📥 86
下载
💾 0
安装
1
版本
#latest

概述

小说改漫画

把小说、网文、短篇和章节内容改编成连续漫画,支持风格选择、连续性约束和分步生图。

Usage

/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

Options

Visual Dimensions

OptionValuesDescription
-----------------------------
--artligne-claire (default), manga, realistic, ink-brush, chalk, minimalistArt style / rendering technique
--toneneutral (default), warm, dramatic, romantic, energetic, vintage, actionMood / atmosphere
--layoutstandard (default), cinematic, dense, splash, mixed, webtoon, four-panelPanel arrangement
--aspect3:4 (default, portrait), 4:3 (landscape), 16:9 (widescreen)Page aspect ratio
--langauto (default), zh, en, ja, etc.Output language

Partial Workflow Options

OptionDescription
---------------------
--storyboard-onlyGenerate storyboard only, skip prompts and images
--prompts-onlyGenerate storyboard + prompts, skip images
--images-onlyGenerate images from existing prompts directory
--regenerate NRegenerate specific page(s) only (e.g., 3 or 2,5,8)

Details: references/partial-workflows.md

Art Styles (画风)

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

Tones (基调)

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

Preset Shortcuts

Presets with special rules beyond art+tone:

PresetEquivalentSpecial Rules
----------------------------------
--style ohmsha--art manga --tone neutralVisual metaphors, NO talking heads, gadget reveals
--style wuxia--art ink-brush --tone actionQi effects, combat visuals, atmospheric elements
--style shoujo--art manga --tone romanticDecorative elements, eye details, romantic beats
--style concept-story--art manga --tone warmVisual 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-claireneutral, warmdramatic, vintage, energeticromantic, action
manganeutral, romantic, energetic, actionwarm, dramaticvintage
realisticneutral, warm, dramatic, vintageactionromantic, energetic
ink-brushneutral, dramatic, action, vintagewarmromantic, energetic
chalkneutral, warm, energeticvintagedramatic, action, romantic
minimalistneutralwarm, energeticdramatic, vintage, romantic, action

Details: references/auto-selection.md

Auto Selection

Content signals determine default art + tone + layout (or preset):

Content SignalsRecommended
------------------------------
Tutorial, how-to, programming, educationalohmsha preset
Pre-1950, classical, ancientrealistic + vintage
Personal story, mentorligne-claire + warm
Martial arts, wuxiawuxia preset
Romance, school lifeshoujo preset
Psychology, motivation, business narrativeconcept-story preset
Business allegory, fable, parable, short insight, 四格four-panel preset
Biography, balancedligne-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 {baseDir}
  2. Script path = {baseDir}/scripts/.ts
  3. Replace all {baseDir} in this document with the actual path
  4. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun

Script Reference:

ScriptPurpose
-----------------
scripts/merge-to-pdf.tsMerge 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:

FileDescription
-------------------
source-{slug}.{ext}Source files
analysis.mdContent analysis
storyboard.mdStoryboard with panel breakdown
characters/characters.mdCharacter definitions
characters/characters.pngCharacter reference sheet
`prompts/NN-{cover\page}-[slug].md`Generation prompts
`NN-{cover\page}-[slug].png`Generated images
{topic-slug}.pdfFinal merged PDF

Language Handling

Detection Priority:

  1. --lang flag (explicit)
  2. EXTEND.md language setting
  3. User's conversation language
  4. 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

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

Flow

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 Summary

StepActionKey Output
--------------------------
1.1Load EXTEND.md preferences ⛔ BLOCKING if not foundConfig loaded
1.2Analyze contentanalysis.md
1.3Check existing directoryHandle conflicts
2Confirm style, focus, audience, reviewsUser preferences
3Generate storyboard + charactersstoryboard.md, characters/
4Review outline (if requested)User approval
5Generate promptsprompts/*.md
6Review prompts (if requested)User approval
7.1Generate character sheet (if needed)characters/characters.png
7.2Generate pages (with character ref if available)*.png files
8Merge to PDF{slug}.pdf
9Completion reportSummary

Continuity-Safe Production Rules (v1)

When generating serialized comics, multi-page narrative comics, or regenerating pages inside an existing project, apply these rules by default:

  1. Previous approved image as continuity anchor
    • If the user is continuing an existing comic and a latest approved page/cover exists, treat it as the primary style continuity reference.
    • Preserve character face shape, hair, clothing, body proportion, palette, lighting logic, and rendering density.
  1. First-panel / last-panel continuity
    • When a new page follows an existing page, the first panel should visually connect to the emotional state, environment, and staging established by the previous page's final panel unless the storyboard explicitly calls for a scene break.
    • If there is a scene break, make the transition explicit in storyboard and prompt text.
  1. Prompt update before regeneration
    • For any page revision, always update the page prompt file first, then regenerate the page, then rebuild the PDF if needed.
  1. Character consistency over local prettiness
    • If a newly generated page looks prettier but breaks character identity or established style, treat it as a failed result and revise.
  1. Reference priority order
    • Priority: latest approved page/cover > character sheet > storyboard text > generic style defaults.
  1. Continuation mode guidance
    • When continuing an existing comic, prefer partial workflows (--images-only, --regenerate N) and avoid regenerating the whole project unless the user asks.

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:

ConditionAction
-------------------
Multi-page comic with detailed charactersGenerate character sheet (recommended)
Preset with simplified characters (e.g., four-panel minimalist)Skip — prompt descriptions are sufficient
Single-page comicSkip unless characters are complex

When generating character sheet:

  • Backup rule: If characters/characters.png exists, rename to characters/characters-backup-YYYYMMDD-HHMMSS.png
  • Invoke an installed image generation skill such as baoyu-imagine
  • 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 characters/characters.png
  • Use aspect ratio 4:3

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: pngquant --quality=65-80 input.png -o output.png
  • Compression reduces API payload size and avoids --ref failures

7.2 Generate each page:

Continuity AssetSkill CapabilityStrategy
----------------------------------------------
Latest approved page/cover existsSupports --refPass latest approved page/cover as primary --ref, and character sheet as secondary reference when supported
Character sheet existsSupports --refPass characters/characters.png with EVERY page
ExistsNo --ref supportPrepend character descriptions and continuity notes to EVERY prompt file
SkippedPrompt 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:

  1. Compress: Convert reference image to JPEG with reduced quality:

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

  1. Retry with compressed image as --ref
  2. If still fails: Fall back to generating WITHOUT --ref (prompt-only), but embed character descriptions and continuity notes from the latest approved page in prompt text

Backup rules for page generation:

  • If prompt file exists: rename to prompts/NN-{cover|page}-[slug]-backup-YYYYMMDD-HHMMSS.md
  • If image file exists: rename to NN-{cover|page}-[slug]-backup-YYYYMMDD-HHMMSS.png
  • Invoke the installed image generation skill for each page
  • Use prompts/01-page-xxx.md as the prompt-file input
  • Save output to 01-page-xxx.png
  • Use aspect ratio from storyboard (default 3:4, preset may override)
  • If character sheet exists and skill supports reference images, pass as --ref

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.

Check in this priority order:

PathLocation
----------------
.baoyu-skills/novel-to-comic/EXTEND.mdProject directory
${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/novel-to-comic/EXTEND.mdXDG config directory
$HOME/.baoyu-skills/novel-to-comic/EXTEND.mdUser home
ResultAction
----------------
FoundRead, parse, display summary → Continue
Not foundBLOCKING: 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

Production Defaults (v1)

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 recommendation
  • language: zh should be preferred for Chinese users and Chinese source workflows
  • preferred_art/tone/layout/aspect may remain null for auto-selection
  • When the user has a stable production preference such as "自动画风 / 自动基调 / 输出中文 / 不加水印 / 保存到全局", persist it and reuse it instead of re-asking

If the user has previously confirmed global production defaults, prefer saving them in the user-level EXTEND.md rather than project-only config.

References

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:

Page Modification

ActionSteps
---------------
EditUpdate prompt file FIRST--regenerate N → Regenerate PDF
AddCreate prompt at position → Generate with character ref → Renumber subsequent → Update storyboard → Regenerate PDF
DeleteRemove 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
  • For serialized comics, continuity consistency is higher priority than isolated single-page beauty
  • 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; prefer latest approved page/cover as continuity ref when available; compress/convert on failure; fall back to prompt-only
  • Watermark/language configured once in EXTEND.md
  • User-level EXTEND.md is preferred for stable personal production defaults shared across projects

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-05-07 17:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,837
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,382
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,169