Knowledge Comic Creator
Knowledge comic creator supporting multiple styles (Logicomix/Ligne Claire, Ohmsha manga guide). Creates original educational comics with detailed panel layouts and sequential image generation. Use wh
Create original knowledge comics with multiple visual styles.
Usage
/michi-comic posts/turing-story/source.md
/michi-comic # then paste contentOptions
--style
classic (default), dramatic, warm, tech, sepia, vibrant, ohmsha, realistic, or custom description
--layout
standard (default), cinematic, dense, splash, mixed, webtoon
--aspect
3:4 (default, portrait), 4:3 (landscape), 16:9 (widescreen)
--lang
auto (default), zh, en, ja, etc.
Style × Layout × Aspect can be freely combined. Custom styles can be described in natural language.
Aspect ratio is consistent across all pages in a comic.
Auto Selection
Tutorial, how-to, beginner
ohmsha
webtoon
Computing, AI, programming
tech
dense
Pre-1950, classical, ancient
sepia
cinematic
Personal story, mentor
warm
standard
Conflict, breakthrough
dramatic
splash
Wine, food, business, lifestyle, professional
realistic
cinematic
Biography, balanced
classic
mixed
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
Determine this SKILL.md file's directory path as
SKILL_DIRScript path =
${SKILL_DIR}/scripts/<script-name>.tsReplace all
${SKILL_DIR}in this document with the actual path
Script Reference:
scripts/merge-to-pdf.ts
Merge comic pages into PDF
File Structure
Target directory:
With source path:
[source-dir]/[source-name-no-ext]/comic/Example:
/posts/turing-story.md→/posts/turing-story/comic/
Without source:
./comic/[topic-slug]/
Directory backup:
If target directory exists, rename existing to
<dirname>-backup-YYYYMMDD-HHMMSS
Workflow
Step 1: Analyze Content → analysis.md
analysis.mdRead source content, save it if needed, and perform deep analysis.
Actions:
Save source content (if not already a file):
If user provides a file path: use as-is
If user pastes content: save to
source.mdin target directory
Read source content
Deep analysis following
references/analysis-framework.md:Target audience identification
Value proposition for readers
Core themes and narrative potential
Key figures and their story arcs
Detect source language
Determine recommended page count:
Short story: 5-8 pages
Medium complexity: 9-15 pages
Full biography: 16-25 pages
Analyze content signals for style/layout recommendations
Save to
analysis.md
analysis.md Format:
Step 2: Generate 3 Storyboard Variants
Create three distinct variants, each combining a narrative approach with a recommended style.
A
Chronological
sepia
cinematic
B
Thematic
tech
dense
C
Character-focused
warm
standard
For each variant:
Generate storyboard (
storyboard-{approach}.md):YAML front matter with narrative_approach, recommended_style, recommended_layout, aspect_ratio
Cover design
Each page: layout, panel breakdown, visual prompts
Written in user's preferred language
Reference:
references/storyboard-template.md
Generate matching characters (
characters-{approach}/):characters.md- visual specs matching the recommended style (in user's preferred language)characters.png- character reference sheetReference:
references/character-template.md
All variants are preserved after selection for reference.
Step 3: User Confirms All Options
IMPORTANT: Present ALL options in a single confirmation step using AskUserQuestion. Do NOT interrupt workflow with multiple separate confirmations.
Determine which questions to ask:
Storyboard variant
Always (required)
Visual style
Always (required)
Language
Only if source_language ≠ user_language
Aspect ratio
Only if user might prefer non-default (e.g., landscape content)
Language handling:
If source language = user language: Just inform user (e.g., "Comic will be in Chinese")
If different: Ask which language to use
All storyboards and prompts are generated in the user's selected/preferred language.
Aspect ratio handling:
Default: 3:4 (portrait) - standard comic format
Offer 4:3 (landscape) if content suits it (e.g., panoramic scenes, technical diagrams)
Offer 16:9 (widescreen) for cinematic content
AskUserQuestion format (example with all questions):
After confirmation:
Copy selected storyboard →
storyboard.mdCopy selected characters →
characters/Update YAML front matter with confirmed style, language, aspect_ratio
If style differs from variant's recommended: regenerate
characters/characters.pngUser may edit files directly for fine-tuning
Step 4: Generate Images
With confirmed storyboard + style + aspect ratio:
For each page (cover + pages):
Save prompt to
prompts/NN-{cover|page}-[slug].md(in user's preferred language)Generate image using confirmed style and aspect ratio
Report progress after each generation
Image Generation Skill Selection:
Check available image generation skills
If multiple skills available, ask user preference
Character Reference Handling:
If skill supports reference image: pass
characters/characters.pngIf skill does NOT support reference image: include
characters/characters.mdcontent in prompt
Session Management: If image generation skill supports --sessionId:
Generate unique session ID:
comic-{topic-slug}-{timestamp}Use same session ID for all pages
Ensures visual consistency across generated images
Step 5: Merge to PDF
After all images generated:
Creates {topic-slug}.pdf with all pages as full-page images.
Step 6: Completion Report
Page Modification
Support for modifying individual pages after initial generation.
Edit Single Page
Regenerate a specific page with modified prompt:
Identify page to edit (e.g.,
03-page-enigma-machine.png)Update prompt in
prompts/03-page-enigma-machine.mdif neededIf content changes significantly, update slug in filename
Regenerate image using same session ID and aspect ratio
Regenerate PDF
Add New Page
Insert a new page at specified position:
Specify insertion position (e.g., after page 3)
Create new prompt with appropriate slug (e.g.,
04-page-bletchley-park.md)Generate new page image (same aspect ratio)
Renumber files: All subsequent pages increment NN by 1
04-page-tragedy.png→05-page-tragedy.pngSlugs remain unchanged
Update
storyboard.mdwith new page entryRegenerate PDF
Delete Page
Remove a page and renumber:
Identify page to delete (e.g.,
03-page-enigma-machine.png)Remove image file and prompt file
Renumber files: All subsequent pages decrement NN by 1
04-page-tragedy.png→03-page-tragedy.pngSlugs remain unchanged
Update
storyboard.mdto remove page entryRegenerate PDF
File Naming Convention
Files use meaningful slugs for better readability:
Examples:
00-cover-turing-story.png01-page-early-life.png02-page-cambridge-years.png03-page-enigma-machine.png
Slug rules:
Derived from page title/content (kebab-case)
Must be unique within the comic
When page content changes significantly, update slug accordingly
Renumbering:
After add/delete, update NN prefix for affected pages
Slug remains unchanged unless content changes
Maintain sequential numbering with no gaps
Style-Specific Guidelines
Ohmsha Style (--style ohmsha)
--style ohmsha)Additional requirements for educational manga:
Default: Use Doraemon characters directly - No need to create new characters
大雄 (Nobita): Student role, curious learner
哆啦A梦 (Doraemon): Mentor role, explains concepts with gadgets
胖虎 (Gian): Antagonist/challenge role, represents obstacles or misconceptions
静香 (Shizuka): Supporting role, asks clarifying questions
Custom characters only if explicitly requested:
--characters "Student:小明,Mentor:教授"Must use visual metaphors (gadgets, action scenes) - NO talking heads
Page titles: narrative style, not "Page X: Topic"
Reference: references/ohmsha-guide.md for detailed guidelines.
References
Detailed templates and guidelines in references/ directory:
analysis-framework.md- Deep content analysis for comic adaptationcharacter-template.md- Character definition format and examplesstoryboard-template.md- Storyboard structure and panel breakdownohmsha-guide.md- Ohmsha manga style specificsstyles/- Detailed style definitionslayouts/- Detailed layout definitions
Last updated