Community影像github.com

polli-comic-studio

>- Turn any story idea, scene, or reference photo into a character-consistent, multi-panel illustrated comic book or narrated visual storyboard using the Pollinations CLI (text scripting, reference-locked image generation via polli upload + flux.2-klein-4b, and voiceover narration via polli gen audio), packaged into an interactive self-contained HTML reader. Use when the user asks to create a comic strip, graphic novel page, visual storyboard, illustrated story, or narrated picture book with Pollinations.

polli-comic-studio 是什麼?

polli-comic-studio is a Claude Code agent skill that >- Turn any story idea, scene, or reference photo into a character-consistent, multi-panel illustrated comic book or narrated visual storyboard using the Pollinations CLI (text scripting, reference-locked image generation via polli upload + flux.2-klein-4b, and voiceover narration via polli gen audio), packaged into an interactive self-contained HTML reader. Use when the user asks to create a comic strip, graphic novel page, visual storyboard, illustrated story, or narrated picture book with Pollinations.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/oberoiraz-svg/polli-comic-studio/tree/HEAD

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Polli Comic Studio — Multimodal Comic & Narrated Storyboard Skill

Create a complete, character-consistent multi-panel comic strip or narrated visual storyboard from any prompt (or uploaded character photo) using Pollinations.ai via the polli CLI — combining text, reference-locked image generation, and voiceover audio into a single playable HTML comic reader.

Prerequisites

  1. Pollinations CLI (polli):
    npm install -g @pollinations/cli
    polli auth status || polli auth login
    
    Never ask the user to paste raw API keys into source files — polli auth login handles authentication cleanly so users spend from their own Pollen balance.
  2. Python 3.9+ (standard library only — zero external packages required for scripts/build_reader.py).

Workflow

Step 1 — Check Auth & Discover Live Models

Run a fast check so you never hardcode retired model IDs:

polli auth status
polli models --type image
  • Prefer a vision/reference-capable image model (e.g. black-forest-labs/flux.2-klein-4b for fast, low-cost consistency or black-forest-labs/flux.1-kontext-pro for higher detail) so panels 2..N stay locked to your hero character sheet.
  • For panel 1 (or when no reference photo is provided), tongyi-mai/z-image-turbo or black-forest-labs/flux.2-klein-4b creates a crisp anchor image.

Step 2 — Plan the Storyboard (story.json)

Create a working directory (e.g. ./comic_out/) and write story.json with 4–6 panels (or the count requested by the user). Keep each panel's visual prompt focused on one clear camera angle, action, and setting, and write short punchy captions/dialogue (≤ 22 words per panel):

{
  "title": "The Last Starlight Courier",
  "subtitle": "A 4-panel sci-fi micro-comic",
  "style": "cinematic graphic novel illustration, warm amber rim lighting, crisp ink linework, rich painted textures",
  "character_anchor": "A young courier woman with dark braided hair, brass goggles pushed up on her forehead, wearing a weathered teal canvas coat",
  "panels": [
    {
      "id": 1,
      "caption": "Every night at midnight, Aria climbed the observatory spire.",
      "dialogue": "One last letter before the nebula closes.",
      "visual_prompt": "Wide establishing shot of Aria standing on a rain-slicked rooftop observatory overlooking glowing neon towers, holding a sealed glowing envelope, dramatic night sky."
    }
  ]
}

Step 3 — Generate & Upload the Character Anchor (Consistency Lock)

  • If the user provided a character/subject photo: upload it directly:
    polli upload ./character.jpg
    
  • If starting from text only: generate Panel 1 (or a dedicated character sheet) first, then upload it to media.pollinations.ai so every subsequent panel shares the exact same character identity:
    polli gen image "<character_anchor>, <panel_1_visual_prompt>, <style>" \
      --model black-forest-labs/flux.2-klein-4b \
      --width 1024 --height 768 \
      --output ./comic_out/panel_1.jpg
    
    ANCHOR_URL=$(polli upload ./comic_out/panel_1.jpg | grep -Eo 'https?://[^ ]+' | head -n1)
    

Step 4 — Generate Panels 2..N Locked to the Anchor Reference

Pass --image "$ANCHOR_URL" on every subsequent panel and reference image 1 explicitly so the character's face, hair, and outfit stay consistent across the entire strip:

polli gen image "Keep the EXACT same character face, hair, and outfit from image 1. <panel_n_visual_prompt>. Match the exact illustration style and color grading of image 1." \
  --model black-forest-labs/flux.2-klein-4b \
  --image "$ANCHOR_URL" \
  --width 1024 --height 768 \
  --output ./comic_out/panel_2.jpg

Step 5 — Generate Voiceover Narration (Optional, Recommended)

For each panel (or as a single narrator track), generate crisp MP3 narration with polli gen audio:

polli gen audio "Every night at midnight, Aria climbed the observatory spire. One last letter before the nebula closes." \
  --output ./comic_out/panel_1.mp3

Step 6 — Compile the Interactive HTML Comic Reader

Run the bundled zero-dependency Python builder to package all panels, captions, speech bubbles, and audio tracks into a single self-contained index.html (with keyboard navigation ←/→, Read-Aloud autoplay mode, and Print/PDF view):

python scripts/build_reader.py --story ./comic_out/story.json --dir ./comic_out --out ./comic_out/index.html

Optionally publish the finished comic directly to the web with Pollinations Sites:

polli sites publish ./comic_out --name my-comic-title

Guardrails & Quality Tips

  • Always pass --output <path> to polli gen image and polli gen audio so files land in the storyboard folder instead of cluttering the repo root.
  • Keep prompts concise & numbered (image 1): Lightweight vision-edit models like flux.2-klein-4b preserve character identity much better when given 1 clean anchor reference (image 1) and a focused 2–3 sentence scene prompt.
  • Verify every generated file: Check that each panel_N.jpg exists and is non-empty before running build_reader.py; retry once with a fresh --seed if a panel fails.
  • Budget-friendly by default: A full 4-panel illustrated & narrated comic on flux.2-klein-4b (~$0.005/panel) costs roughly $0.02 total.

相關技能