CO

comic-adaptation

Manages the end-to-end comic/manga production pipeline, from narrative analysis to character sheet generation.

Install

mkdir -p .claude/skills/comic-adaptation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10774" && unzip -o skill.zip -d .claude/skills/comic-adaptation && rm skill.zip

Installs to .claude/skills/comic-adaptation

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Turn stories, folktales, or existing prose into a comic production package. Use when the user asks to chuyển thể truyện tranh, create a manga/anime-style adaptation, build character prototypes, write a character bible, plan comic pages, storyboard scenes, or keep visual continuity across a comic series. Also use when the user wants the workflow to go from story analysis → character design → page plan → visual reference sheet for reuse. Always use this skill when the user says: "chuyển thể truyện tranh", "vẽ thành manga", "tạo character sheet", "nguyên mẫu nhân vật", "thiết kế nhân vật truyện tranh", "tạo bảng tham chiếu nhân vật", "storyboard truyện tranh", "page plan", "kế hoạch page", "character bible", "giữ nhất quán nhân vật", "vẽ nhân vật", "comic adaptation", "manga adaptation", "anime character design" — even if they don't say "comic-adaptation".
865 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Analyze story beats
  • Create character bibles
  • Generate prototype sheets
  • Plan comic pages

How it works

It analyzes stories to extract plot beats and cast lists, then generates character bibles and visual prototype sheets for comic production.

Inputs & outputs

You give it
Source story
You get back
Comic production package

When to use comic-adaptation

  • Adapt prose to comic
  • Create character design sheets
  • Storyboard scenes

About this skill

Comic Adaptation — Story-to-Comic Production Pipeline

Governance: Read and follow .github/RULE.md — it overrides all instructions below.

References: references/anime-archetypes.md, references/ip-adapter-face-lock.md Bundled scripts: scripts/gen_character_sheet.py Shared assets: Uses design skill's canvas-fonts/ for typography. Changelog: CHANGELOG.md — full development history, failed approaches, lessons learned.

This skill turns a source story into a production-ready comic adaptation package. The difference from a simple summary is fundamental: the goal is not to retell the story in text, but to prepare every element an artist or an AI illustration pipeline needs to produce consistent comic pages — cast definitions, visual prototypes, page breakdowns, and continuity rules.

The skill produces both planning artifacts (markdown) and visual artifacts (PDF prototype sheets) in a single workflow. This avoids the pattern where planning lives in one skill and production lives in another, forcing the user to bridge them manually.

All responses to the user are in Vietnamese.


Step 0: State Read-Back

Call save_state.py read-context comic-adaptation as first action. Check relevant_artifacts[] for upstream story content or previously generated character work.


Step 1: Analyze the Source Story

Read the source material. If the user dropped a file, use gather to read it. If the user named a well-known story, work from knowledge.

Extract:

  1. Plot beats — the key narrative moments in order.
  2. Cast list — every named or significant character.
  3. Story functions — what each character DOES in the plot (trigger, obstacle, anchor, etc.).
  4. Cultural identity — elements that must stay recognizable in the adaptation.

Report to user:

📖 Phân tích truyện gốc:
- {N} nhịp chính trong cốt truyện
- {M} nhân vật cần thiết kế
- Bản sắc cần giữ: {cultural_elements}

Step 2: Map Characters to Anime Archetypes

Load references/anime-archetypes.md and follow the mapping protocol:

  1. For each character, match their story function to the closest archetype.
  2. Override archetype defaults with story-specific or cultural details.
  3. Verify no two characters share the same silhouette + color combo.
  4. For characters with multiple states (e.g., child → hero), define shared identity first, then state-specific differences.

Output a character bible with these fields per character:

  • Name and role
  • Anime archetype
  • Silhouette and body type
  • Eye style (from archetype reference)
  • Hair shape and color
  • Clothing, props, signature accessories
  • Color palette (3–5 hex values)
  • Default expression + peak expression
  • Signature pose
  • Consistency rules (what must NOT change between pages)

Save as output/<project>/character-bible.md.


Step 3: Generate Prototype Sheet

This is where the skill produces a real visual artifact instead of just text.

Prepare the character data JSON:

Build a JSON file matching the schema expected by scripts/gen_character_sheet.py:

{
    "title": "Story Title",
    "subtitle": "Anime adaptation character prototype sheet",
    "characters": [
        {
            "name": "Character Name",
            "role": "Story role",
            "archetype": "shonen_hero",
            "palette": ["#C11F2C", "#E2BF54", "#1F4E8C"],
            "accent": "#E2BF54",
            "skin": "#E7C7A8",
            "hair_color": "#1A1822",
            "eye_style": "hero",
            "hair_shape": "long_flow",
            "notes": ["Visual note 1", "Visual note 2"]
        }
    ]
}

Run the generator:

python3 .github/skills/comic-adaptation/scripts/gen_character_sheet.py \
    --input tmp/<project>_characters.json \
    --output output/<project>/character-prototype-sheet.pdf

Verify output:

  • File exists and > 5 KB
  • Page count matches ceil(character_count / 6)
  • Open with pypdf to confirm it renders

Register artifact:

python3 scripts/save_state.py register-artifact \
    --step comic-adaptation \
    --path output/<project>/character-prototype-sheet.pdf \
    --type draft_output \
    --summary "Character prototype sheet for <project>" \
    --retention keep

Step 4: Build the Page Plan

Translate story beats into pages. For each page define:

FieldDescription
Page numberSequential
GoalWhat the page accomplishes narratively
CharactersWho appears (reference prototype sheet)
Key actionThe main visual moment
Emotional beatWhat the reader should feel
Composition notesCamera angle, panel layout suggestions
Continuity depsWhich prototype rules apply here

Structure the page plan to follow a natural comic rhythm:

  1. Establish the world (wide establishing shot)
  2. Introduce protagonist in their normal state
  3. Inciting incident (close-ups, dramatic shift)
  4. Montage or escalation (panel rhythm speeds up)
  5. Transformation or turning point (splash page or full-bleed)
  6. Climax (dynamic action, speed lines, high contrast)
  7. Resolution (slow down, wide shots, emotional close)

Save as output/<project>/page-plan.md.


Step 5: Self-Review

Before delivery, check:

  1. Story identity preserved — is the source recognizable?
  2. Cast consistency — does every character in the page plan match the bible?
  3. Prototype reusability — could someone use the sheet without reading the bible?
  4. Page rhythm — does the beat structure feel like a comic, not a list?
  5. No placeholders — every character has concrete visual specs, not "TBD".
  6. Cultural integrity — cultural elements are adapted, not erased.

If any check fails, fix it before delivery. Max 2 revision passes per RULE-2.


Step 6: Delivery

Present to user:

✅ Bộ chuyển thể truyện tranh hoàn tất:
- 📖 Character Bible: output/<project>/character-bible.md
- 🎨 Prototype Sheet: output/<project>/character-prototype-sheet.pdf
- 📋 Page Plan: output/<project>/page-plan.md

Bước tiếp theo có thể làm:
1. Chuyển từng page thành storyboard chi tiết (4-6 panel mỗi page)
2. Tạo prompt hình ảnh AI cho từng nhân vật hoặc từng page
3. Xuất thành slide hoặc PDF hoàn chỉnh

Downstream Handoffs

NeedTarget SkillHow
Illustrated character art (AI)gen-imagePass character description + --style character-anime-male/female + --model quality
Consistent character set (recommended)gen-imageIP-Adapter Face Lock — see protocol v4 below
Consistent character set (fallback)gen-imageimg2img: canonical view → --reference + --strength 0.55 for other poses
Designed reference posterdesignPass character specs, use reportlab Canvas
Full comic pages (AI)gen-imagePass page plan scene descriptions as prompts
Presentation of the adaptationgen-slidePass page plan + prototype sheet as source

Character Image Generation Protocol (v5.0) — IP-Adapter Face Lock

Reference: references/ip-adapter-face-lock.md for MPS gotchas and troubleshooting. Changelog: CHANGELOG.md for full version history and failed approaches to avoid.

The IP-Adapter Face Lock protocol replaces img2img for multi-pose character sets. It produces significantly better face consistency than img2img (--reference --strength) because it injects face identity via cross-attention embeddings, not pixel-level blending.

Architecture: 2-phase pipeline loading

IP-Adapter requires image_embeds for every generation call once loaded. Therefore the pipeline MUST be loaded in two phases:

Phase A: Load SDXL Base 1.0 (plain, no IP-Adapter)
Phase 0: Generate canonical face via txt2img (front view, bald, clear)
Phase B: Load IP-Adapter Plus Face on top of existing pipeline
Phase 1+: All subsequent images use face-locked generation

Pipeline setup rules (MPS-critical):

  1. Use StableDiffusionXLPipeline — NOT AutoPipelineForText2Image
  2. Keep default EulerDiscreteScheduler — DDIMScheduler is 50-100x slower on MPS
  3. Image encoder: h94/IP-Adapter subfolder models/image_encoder (ViT-H, 1280 dim). Do NOT use sdxl_models/image_encoder (ViT-bigG, 1664 dim) — dimension mismatch.
  4. IP-Adapter weights: ip-adapter-plus-face_sdxl_vit-h.safetensors from sdxl_models/
  5. Load IP-Adapter BEFORE enable_attention_slicing(). Do NOT re-enable slicing after loading — it overwrites IPAdapterAttnProcessor2_0 and causes 'tuple' has no attribute 'shape'.
  6. MPS NaN-safe sizes only: 1024x768, 768x1024. Square sizes (768x768, 1024x1024) cause NaN.

IP-Adapter scale tuning by sheet type (v5 tested):

Sheet typeIP scaleRationale
Face turnaround0.7Strong face lock — sheet is about the face
Face closeup0.7Strong face lock — detailed face portrait
Expression sheet0.55Medium — face identity but allow expression changes
Body turnaround0.4Lower — let body/anatomy come through
Hair reference0.45Medium-low — face lock + hair detail balance
Costume reference0.35Low — costume needs room to express
Accessories reference0.3Lowest — accessories are the focus, not face
Composite (full body)0.35Low — hair/costume/pose need room to express

Canonical face generation:

# Phase 0 — plain SDXL, no IP-Adapter loaded yet
prompt = (
    "black and white ink lineart, manga style, white background, "
    "character portrait, ((front view)), ((bald)), "
    "<face_identity_description>, "
    "head and shoulders, centered, clean lineart"
)
# Size: 768x1024 (portrait, MPS-safe). Steps: 25-30. Guidance: 7.5-8.0

Face-locked generation:

# After IP-Adapter loaded + face reference set
pipe.set_ip_adapter_scale(scale)  # per-sheet type
image = pipe(
    prompt=prompt,
    negative_prompt=negativ

---

*Content truncated.*

When not to use it

  • When the project is not a comic adaptation
  • When the story lacks significant characters

Prerequisites

Python >= 3.10reportlab >= 4.1.0

Limitations

  • Visual quality depends on AI pipeline

How it compares

It bridges the gap between story planning and visual production by generating actual PDF prototype sheets.

Compared to similar skills

comic-adaptation side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
comic-adaptation (this skill)03moReviewAdvanced
scriptwriting178moNo flagsBeginner
amcs-lyrics-generator109moNo flagsAdvanced
create-an-asset36moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

scriptwriting

gtmagents

Use when crafting scripts, storyboards, and messaging for video content.

17114

amcs-lyrics-generator

miethe

Generate song lyrics with citations from pinned sources. Enforces rhyme scheme, meter, syllable counts, hook strategy, and profanity filter while retrieving from MCP sources with deterministic hash-based pinning. Use when creating lyrics with structural constraints, source attribution, and policy compliance.

1084

create-an-asset

anthropics

Generate tailored sales assets (landing pages, decks, one-pagers, workflow demos) from your deal context. Describe your prospect, audience, and goal — get a polished, branded asset ready to share with customers.

319

podcast-strategist

daphatpharm4

Content strategy and operations expert for the Chinese podcast market, with deep expertise in Xiaoyuzhou, Ximalaya, and other major audio platforms, covering show positioning, audio production, audience growth, multi-platform distribution, and monetization to help podcast creators build sticky audio

00

applying-brand-guidelines

anthropics

This skill applies consistent corporate branding and styling to all generated documents including colors, fonts, layouts, and messaging

8117

baoyu-xhs-images

JimLiu

Generates Xiaohongshu (Little Red Book) infographic series with 10 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", or wants social media infographics for Chinese platforms.

2051

Search skills

Search the agent skills registry