{"id":"0e4c013c-0611-439a-ae1e-067885716ae6","entityType":"agent","slug":"clawhub-jimliu-baoyu-comic","name":"Baoyu Comic","canonicalUrl":"https://www.xpersona.co/agent/clawhub-jimliu-baoyu-comic","canonicalPath":"/agent/clawhub-jimliu-baoyu-comic","generatedAt":"2026-10-09T21:35:29.619Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":null},"description":"Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen... Skill: Baoyu Comic Owner: jimliu Summary: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen... Tags: latest:1.117.4 Version history: v1.117.4 | 2026-06-13T04:58:01.419Z | auto - Added explicit support for Cursor's GenerateImage tool and clarified usage details for aspect ratio and output path handling. - Added","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 5.4K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s17dfbhg0khk4fvtnx0stqg0yx83j25z:baoyu-comic","sourceUrl":"https://clawhub.ai/jimliu/baoyu-comic","homepage":"https://clawhub.ai/jimliu/skills/baoyu-comic","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/jimliu/baoyu-comic","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/jimliu/skills/baoyu-comic","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":null},"stars":null,"forks":null,"downloads":5380,"packageName":null,"latestVersion":"1.117.4","tractionLabel":"5.4K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T04:03:41.748Z","lastCrawledAt":"2026-10-09T04:03:41.748Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T04:03:41.748Z","lastVerifiedAt":null,"highlights":[{"version":"1.117.4","createdAt":"2026-06-13T04:58:01.419Z","changelog":"- Added explicit support for Cursor's `GenerateImage` tool and clarified usage details for aspect ratio and output path handling. - Added auto-discovery and fallback flow for Codex via `codex exec` (`codex-imagegen`), with reference to the new guidance in `references/codex-imagegen.md`. - Updated backend selection logic to cover additional runtime-native tools and outline their invocation precedence. - Removed old `skill-card.md` and added new backend reference doc for Codex CLI integration. - No changes to comic creation features or user-facing options.","fileCount":41,"zipByteSize":71871},{"version":"1.117.3","createdAt":"2026-05-24T23:37:34.943Z","changelog":"v2.0.0: rename baoyu-imagine→baoyu-image-gen and baoyu-image-cards→baoyu-xhs-images; cross-skill image-backend examples updated","fileCount":40,"zipByteSize":69404},{"version":"1.117.2","createdAt":"2026-05-18T02:13:24.636Z","changelog":"## 1.117.2 - 2026-05-17 ### Documentation - `baoyu-cover-image`: ban programmatic text repair on generated bitmaps — disallow ImageMagick / Pillow / Canvas / SVG / HTML overlays to cover, rewrite, or replace title/subtitle text; regenerate from a corrected prompt or switch to a lower-text or no-title variant instead - `baoyu-article-illustrator`, `baoyu-comic`, `baoyu-image-cards`, `baoyu-xhs-images`, `baoyu-infographic`, `baoyu-slide-deck`: sync the same text-repair ban with skill-specific text categories (labels/captions, dialogue/sound effects, titles/body/tags, headings/data values, slide titles/bullets)","fileCount":39,"zipByteSize":68027},{"version":"1.117.0","createdAt":"2026-05-16T05:52:47.785Z","changelog":"## 1.117.0 - 2026-05-16 ### Features - `baoyu-article-illustrator`: add batch generation policy — backend native batch first, runtime parallel calls second, sequential fallback; configurable `generation_batch_size` and `--batch-size` option - `baoyu-comic`: add batch generation policy with dependency-aware ordering (character sheet before pages) and configurable `--batch-size` - `baoyu-image-cards`: add batch generation policy honoring image-1 anchor chain, with configurable `--batch-size` - `baoyu-slide-deck`: add batch generation policy for slide image rendering with configurable `--batch-size` - `baoyu-xhs-images`: sync batch generation policy from baoyu-image-cards","fileCount":39,"zipByteSize":67641},{"version":"1.115.4","createdAt":"2026-05-11T23:47:21.359Z","changelog":"### Documentation - Image generation backend selection: emphasize Codex `imagegen` as the priority runtime-native tool (invoke via the `Skill` tool with `skill: \"imagegen\"`) and forbid SVG/HTML/canvas substitution when no raster backend can be resolved — fall through to asking the user instead of silently emitting code-based art. Updated in `docs/image-generation-tools.md` and inlined into `baoyu-article-illustrator`, `baoyu-comic`, `baoyu-cover-image`, `baoyu-image-cards`, `baoyu-infographic`, `baoyu-slide-deck`, and `baoyu-xhs-images`.","fileCount":39,"zipByteSize":66420},{"version":"1.103.2","createdAt":"2026-04-21T22:01:05.459Z","changelog":"- Clarified tool selection rules for user input questions, user replies, and batching (see \"User Input Tools\" section). - Added explicit image-generation backend selection logic, including user-pinned preference, fallback, and backend absence handling. - Documented reference image support: user can supply reference images, with details on intake, recording, and passing to the image backend. - Included required prompt file generation step before image backend invocation to ensure reproducibility. - Updated documentation of options and referenced the expanded support for presets, art/tone definitions, and auto-selection. - No user-facing command changes; enhances backend flexibility and reproducibility for multi-agent and multi-backend scenarios.","fileCount":39,"zipByteSize":65984},{"version":"1.103.1","createdAt":"2026-04-13T16:14:06.732Z","changelog":"## 1.103.1 - 2026-04-13 ### Fixes - `baoyu-markdown-to-html`: decode HTML entities and strip tags from article summary - `baoyu-post-to-weibo`: decode HTML entities and strip tags from article summary","fileCount":39,"zipByteSize":64574},{"version":"1.103.0","createdAt":"2026-04-13T01:19:13.417Z","changelog":"## 1.103.0 - 2026-04-12 ### Features - baoyu-diagram: add multi-diagram mode for article-wide diagram generation ### Fixes - baoyu-article-illustrator: prevent color names and hex codes from appearing as visible text in generated images - baoyu-cover-image: prevent color names and hex codes from appearing as visible text in generated images - baoyu-image-cards: prevent color names from appearing as visible text in generated images - baoyu-post-to-wechat: decode HTML entities and strip tags from article summary","fileCount":39,"zipByteSize":64575}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17dfbhg0khk4fvtnx0stqg0yx83j25z:baoyu-comic","setupComplexity":"low","setupSteps":["Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-09T21:35:29.614Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-jimliu-baoyu-comic/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":null},"readme":"Skill: Baoyu Comic\n\nOwner: jimliu\n\nSummary: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen...\n\nTags: latest:1.117.4\n\nVersion history:\n\nv1.117.4 | 2026-06-13T04:58:01.419Z | auto\n\n- Added explicit support for Cursor's `GenerateImage` tool and clarified usage details for aspect ratio and output path handling.\n- Added auto-discovery and fallback flow for Codex via `codex exec` (`codex-imagegen`), with reference to the new guidance in `references/codex-imagegen.md`.\n- Updated backend selection logic to cover additional runtime-native tools and outline their invocation precedence.\n- Removed old `skill-card.md` and added new backend reference doc for Codex CLI integration.\n- No changes to comic creation features or user-facing options.\n\nv1.117.3 | 2026-05-24T23:37:34.943Z | user\n\nv2.0.0: rename baoyu-imagine→baoyu-image-gen and baoyu-image-cards→baoyu-xhs-images; cross-skill image-backend examples updated\n\nv1.117.2 | 2026-05-18T02:13:24.636Z | user\n\n## 1.117.2 - 2026-05-17\n\n### Documentation\n- `baoyu-cover-image`: ban programmatic text repair on generated bitmaps — disallow ImageMagick / Pillow / Canvas / SVG / HTML overlays to cover, rewrite, or replace title/subtitle text; regenerate from a corrected prompt or switch to a lower-text or no-title variant instead\n- `baoyu-article-illustrator`, `baoyu-comic`, `baoyu-image-cards`, `baoyu-xhs-images`, `baoyu-infographic`, `baoyu-slide-deck`: sync the same text-repair ban with skill-specific text categories (labels/captions, dialogue/sound effects, titles/body/tags, headings/data values, slide titles/bullets)\n\nv1.117.0 | 2026-05-16T05:52:47.785Z | user\n\n## 1.117.0 - 2026-05-16\n\n### Features\n- `baoyu-article-illustrator`: add batch generation policy — backend native batch first, runtime parallel calls second, sequential fallback; configurable `generation_batch_size` and `--batch-size` option\n- `baoyu-comic`: add batch generation policy with dependency-aware ordering (character sheet before pages) and configurable `--batch-size`\n- `baoyu-image-cards`: add batch generation policy honoring image-1 anchor chain, with configurable `--batch-size`\n- `baoyu-slide-deck`: add batch generation policy for slide image rendering with configurable `--batch-size`\n- `baoyu-xhs-images`: sync batch generation policy from baoyu-image-cards\n\nv1.115.4 | 2026-05-11T23:47:21.359Z | user\n\n### Documentation\n- Image generation backend selection: emphasize Codex `imagegen` as the priority runtime-native tool (invoke via the `Skill` tool with `skill: \"imagegen\"`) and forbid SVG/HTML/canvas substitution when no raster backend can be resolved — fall through to asking the user instead of silently emitting code-based art. Updated in `docs/image-generation-tools.md` and inlined into `baoyu-article-illustrator`, `baoyu-comic`, `baoyu-cover-image`, `baoyu-image-cards`, `baoyu-infographic`, `baoyu-slide-deck`, and `baoyu-xhs-images`.\n\nv1.103.2 | 2026-04-21T22:01:05.459Z | auto\n\n- Clarified tool selection rules for user input questions, user replies, and batching (see \"User Input Tools\" section).\n- Added explicit image-generation backend selection logic, including user-pinned preference, fallback, and backend absence handling.\n- Documented reference image support: user can supply reference images, with details on intake, recording, and passing to the image backend.\n- Included required prompt file generation step before image backend invocation to ensure reproducibility.\n- Updated documentation of options and referenced the expanded support for presets, art/tone definitions, and auto-selection.\n- No user-facing command changes; enhances backend flexibility and reproducibility for multi-agent and multi-backend scenarios.\n\nv1.103.1 | 2026-04-13T16:14:06.732Z | user\n\n## 1.103.1 - 2026-04-13\n\n### Fixes\n- `baoyu-markdown-to-html`: decode HTML entities and strip tags from article summary\n- `baoyu-post-to-weibo`: decode HTML entities and strip tags from article summary\n\nv1.103.0 | 2026-04-13T01:19:13.417Z | user\n\n## 1.103.0 - 2026-04-12\n\n### Features\n- baoyu-diagram: add multi-diagram mode for article-wide diagram generation\n\n### Fixes\n- baoyu-article-illustrator: prevent color names and hex codes from appearing as visible text in generated images\n- baoyu-cover-image: prevent color names and hex codes from appearing as visible text in generated images\n- baoyu-image-cards: prevent color names from appearing as visible text in generated images\n- baoyu-post-to-wechat: decode HTML entities and strip tags from article summary\n\nv1.91.0 | 2026-04-07T06:33:19.126Z | user\n\n## 1.91.0 - 2026-04-07\n\n### Features\n- Add concept-story preset to baoyu-comic\n- Add four-panel preset with 起承转合 structure, minimalist art style, and flexible image generation workflow\n- Add pdf-lib dependency for PDF generation\n\n### Improvements\n- Make character sheet conditional (skip for simple presets)\n- Add --ref failure recovery: compress → retry → fall back to prompt-only\n\nv1.60.1 | 2026-03-25T21:31:05.583Z | auto\n\nbaoyu-comic v1.60.1\n\n- Updated documentation in SKILL.md and references/workflow.md.\n- No changes to functionality or core features.\n- Maintains existing workflow, options, and usage instructions.\n\nv1.60.0 | 2026-03-12T03:48:59.997Z | user\n\n## 1.60.0 - 2026-03-11\n\n### Features\n- `baoyu-url-to-markdown`: support reusing existing Chrome CDP instances and fix port detection order\n\n### Fixes\n- `baoyu-post-to-x`: add missing `fs` import in x-article\n\n### Refactor\n- Unify all CDP skills to use shared `baoyu-chrome-cdp` package with vendored copies\n- Simplify CLAUDE.md, move detailed documentation to `docs/` directory\n- Publish skills directly from synced vendor, removing separate artifact preparation step\n\nv1.0.0 | 2026-03-09T16:11:39.109Z | auto\n\nbaoyu-comic v1.56.1 introduces a comprehensive educational comic creator with multi-style support and customizable workflows.\n\n- Supports original educational comics with detailed panel layouts and sequential image generation.\n- Choose from flexible art styles (e.g., manga, ligne-claire, realistic, ink-brush) and tones (e.g., warm, dramatic, action).\n- Preset shortcuts and auto-selection optimize style/tone based on content.\n- Modular workflow: generate storyboards, prompts, images, or regenerate specific pages.\n- Extensive language handling and user preference system.\n- Outputs include structured directories, character references, and PDF merging.\n\nArchive index:\n\nArchive v1.117.4: 41 files, 71871 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/codex-imagegen.md (3729b), references/config/first-time-setup.md (4389b), references/config/preferences-schema.md (5671b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (19662b), scripts/merge-to-pdf.ts (3142b), skill-card.md (2638b), SKILL.md (22517b), _meta.json (132b)\n\nFile v1.117.4:SKILL.md\n\n---\nname: baoyu-comic\ndescription: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create \"知识漫画\", \"教育漫画\", \"biography comic\", \"tutorial comic\", or \"Logicomix-style comic\".\nversion: 1.117.4\nmetadata:\n  openclaw:\n    homepage: https://github.com/JimLiu/baoyu-skills#baoyu-comic\n    requires:\n      anyBins:\n        - bun\n        - npx\n---\n\n# Knowledge Comic Creator\n\nCreate original knowledge comics with flexible art style × tone combinations.\n\n## User Input Tools\n\nWhen this skill prompts the user, follow this tool-selection rule (priority order):\n\n1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.\n2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.\n3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.\n\nConcrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.\n\n## Image Generation Tools\n\nWhen this skill needs to render an image, resolve the backend in this order:\n\n1. **Current-request override** — if the user names a specific backend in the current message, use it.\n2. **Saved preference** — if `EXTEND.md` sets `preferred_image_backend` to a backend available right now, use it.\n3. **Auto-select** (when the preference is `auto`, unset, or the pinned backend isn't available):\n   - **Codex (`imagegen`)** — first, inspect your available-skills / tool inventory. If a skill named `imagegen` is listed, you are running inside Codex and MUST use it: invoke via the `Skill` tool with `skill: \"imagegen\"`, passing the saved prompt file's content (plus output path and aspect ratio per Codex `imagegen`'s own args). Codex `imagegen` is the official raster backend in that runtime and outranks any non-native skill (e.g., `baoyu-image-gen`) unless the user has explicitly pinned a different `preferred_image_backend`.\n   - **Codex via `codex exec` (`codex-imagegen`)** — if the current runtime exposes no native `imagegen` skill but the `codex` CLI is on `PATH` with an active `codex login`, route through `baoyu-image-gen --provider codex-cli` (preferred), or — if baoyu-image-gen is unavailable — invoke the bundled wrapper directly. Details, parameters, and the runtime-discovery procedure live in [references/codex-imagegen.md](references/codex-imagegen.md) — load that file only when this branch is selected.\n   - **Cursor (`GenerateImage`)** — if the runtime exposes a native `GenerateImage` tool, you are running inside Cursor and it outranks any non-native skill the same way Codex `imagegen` does. Two hard caveats: (a) it has no aspect-ratio parameter — state the target aspect ratio / dimensions explicitly in the prompt text passed as `description`; (b) it does not accept an output directory — it saves to a tool-managed location, so after generation copy/move the file to the skill's expected output path (e.g., `outputs/.../NN-xxx.png`). Reference images go in `reference_image_paths`.\n   - **Other runtime-native tools** — if the runtime exposes a different native image tool (e.g., Hermes `image_generate`), use it the same way.\n   - Otherwise, if exactly one non-native backend is installed (e.g., `baoyu-image-gen`), use it.\n   - Otherwise (multiple non-native backends with no runtime-native tool), ask the user once — batch with any other initial questions.\n4. **If none are available**, tell the user and ask how to proceed.\n\n**⛔ Never substitute SVG, HTML, canvas, or other code-based rendering for raster image generation.** Codex `imagegen`'s own description says it should be used \"when the output should be a bitmap asset rather than repo-native code or vector.\" If you cannot resolve a raster backend via step 3, fall through to step 4 and ask the user — do **not** silently emit SVG, write inline `<svg>` markup, or produce HTML/CSS art as a substitute. This applies even if the article/section seems \"diagram-like\": the consumer skill calling this rule has already decided that a raster image is what it needs.\n\n**⛔ Never repair rendered text by painting over a generated bitmap.** Do not use ImageMagick, Pillow, Canvas, SVG, HTML/CSS, OCR scripts, or any other programmatic overlay to cover, rewrite, erase, stroke, or replace dialogue, sound effects, panel labels, or any other text inside an already generated comic page. If text is wrong or unclear, regenerate from a corrected prompt, redraw the page with less or no on-image text, or ask the user which imperfect candidate to keep.\n\nSetting `preferred_image_backend: ask` forces the step-3 prompt every run regardless of available backends. Users change the pinned backend via the `## Changing Preferences` section below.\n\n**Prompt file requirement (hard)**: write each image's full, final prompt to a standalone file under `prompts/` (naming: `NN-{type}-[slug].md`) BEFORE invoking any backend. The backend receives the prompt file (or its content); the file is the reproducibility record and lets you switch backends without regenerating prompts.\n\nConcrete tool names (`imagegen`, `GenerateImage`, `image_generate`, `baoyu-image-gen`) above are examples — substitute the local equivalents under the same rule.\n\n## Batch Generation Policy\n\nAfter every prompt file for the current generation group has been saved and verified, generate images in batches by default.\n\nPriority order:\n\n1. Use the chosen backend's native batch / multi-task interface if it exists. Each task must keep its own prompt file, output path, aspect ratio, session ID, and direct reference images.\n2. If no native batch interface exists but the runtime can issue parallel tool calls, dispatch up to `generation_batch_size` images at a time. Default: `4`. An explicit user request in the current message, such as `--batch-size 4` or \"并行4张一起生成\", overrides EXTEND.md.\n3. If neither native batch nor parallel tool calls are available, generate sequentially.\n\nRules:\n\n- Honor workflow dependencies first: generate `characters/characters.png` before pages that use it as a reference.\n- Never start the first page batch until all selected page prompt files exist on disk.\n- Retry failed items once without regenerating successful items.\n- Do not use subagents merely to parallelize image rendering. Use subagents only for separate prompt iteration or creative exploration.\n\n## Reference Images\n\nUsers may supply reference images to guide art style, palette, scene composition, or subject. This is **separate from** the auto-generated character sheet (Step 7.1) — both can coexist: user refs guide the look, the character sheet anchors recurring character identity.\n\n**Intake**: Accept via `--ref <files...>` or when the user provides file paths / pastes images in conversation.\n- File path(s) → copy to `refs/NN-ref-{slug}.{ext}` alongside the comic output\n- Pasted image with no path → ask the user for the path (per the User Input Tools rule above), or extract style traits verbally as a text fallback\n- No reference → skip this section\n\n**Usage modes** (per reference):\n\n| Usage | Effect |\n|-------|--------|\n| `direct` | Pass the file to the backend as a reference image on every page (or selected pages) |\n| `style` | Extract style traits (line treatment, texture, mood) and append to every page's prompt body |\n| `palette` | Extract hex colors and append to every page's prompt body |\n\n**Record in each page's prompt frontmatter** when refs exist:\n\n```yaml\nreferences:\n  - ref_id: 01\n    filename: 01-ref-scene.png\n    usage: direct\n```\n\n**At generation time**:\n- Verify each referenced file exists on disk\n- If `usage: direct` AND the chosen backend accepts multiple reference images → pass both the character sheet (Step 7.2) and the user refs via the backend's ref parameter; compress images first per Step 7.1's guidance to avoid payload failures\n- If the backend accepts only one ref → prefer the character sheet for pages with recurring characters; embed user-ref traits in the prompt body instead\n- For `style`/`palette` usage → embed extracted traits in every page's prompt text (applies regardless of backend capability)\n\n## Options\n\n### Visual Dimensions\n\n| Option | Values | Description |\n|--------|--------|-------------|\n| `--art` | ligne-claire (default), manga, realistic, ink-brush, chalk, minimalist | Art style / rendering technique |\n| `--tone` | neutral (default), warm, dramatic, romantic, energetic, vintage, action | Mood / atmosphere |\n| `--layout` | standard (default), cinematic, dense, splash, mixed, webtoon, four-panel | Panel arrangement |\n| `--aspect` | 3:4 (default, portrait), 4:3 (landscape), 16:9 (widescreen) | Page aspect ratio |\n| `--lang` | auto (default), zh, en, ja, etc. | Output language |\n| `--ref <files...>` | File paths | Reference images applied to every page for style / palette / scene guidance. See [Reference Images](#reference-images) above. |\n| `--batch-size <n>` | 1-8 | Temporary page generation batch size for this run. Default: `generation_batch_size` from EXTEND.md, otherwise 4. |\n\n### Partial Workflow Options\n\n| Option | Description |\n|--------|-------------|\n| `--storyboard-only` | Generate storyboard only, skip prompts and images |\n| `--prompts-only` | Generate storyboard + prompts, skip images |\n| `--images-only` | Generate images from existing prompts directory |\n| `--regenerate N` | Regenerate specific page(s) only (e.g., `3` or `2,5,8`) |\n\nDetails: [references/partial-workflows.md](references/partial-workflows.md)\n\n### Art, Tone & Preset Catalogue\n\n- **Art styles** (6): `ligne-claire`, `manga`, `realistic`, `ink-brush`, `chalk`, `minimalist`. Full definitions at `references/art-styles/<style>.md`.\n- **Tones** (7): `neutral`, `warm`, `dramatic`, `romantic`, `energetic`, `vintage`, `action`. Full definitions at `references/tones/<tone>.md`.\n- **Presets** (5) with special rules beyond plain art+tone:\n\n  | Preset | Equivalent | Hook |\n  |--------|-----------|------|\n  | `ohmsha` | manga + neutral | Visual metaphors, no talking heads, gadget reveals |\n  | `wuxia` | ink-brush + action | Qi effects, combat visuals, atmospheric |\n  | `shoujo` | manga + romantic | Decorative elements, eye details, romantic beats |\n  | `concept-story` | manga + warm | Visual symbol system, growth arc, dialogue+action balance |\n  | `four-panel` | minimalist + neutral + four-panel layout | 起承转合 structure, B&W + spot color, stick-figure characters |\n\n  Full rules at `references/presets/<preset>.md` — load the file when a preset is picked.\n\n- **Compatibility matrix** and **content-signal → preset** table live in [references/auto-selection.md](references/auto-selection.md). Read it before recommending combinations in Step 2.\n\n## Script Directory\n\n**Important**: All scripts are located in the `scripts/` subdirectory of this skill.\n\n**Agent Execution Instructions**:\n1. Determine this SKILL.md file's directory path as `{baseDir}`\n2. Script path = `{baseDir}/scripts/<script-name>.ts`\n3. Replace all `{baseDir}` in this document with the actual path\n4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun\n\n**Script Reference**:\n| Script | Purpose |\n|--------|---------|\n| `scripts/merge-to-pdf.ts` | Merge comic pages into PDF |\n\n## File Structure\n\nOutput directory: `comic/{topic-slug}/`\n- Slug: 2-4 words kebab-case from topic (e.g., `alan-turing-bio`)\n- Conflict: append timestamp (e.g., `turing-story-20260118-143052`)\n\n**Contents**:\n| File | Description |\n|------|-------------|\n| `source-{slug}.{ext}` | Source files |\n| `analysis.md` | Content analysis |\n| `storyboard.md` | Storyboard with panel breakdown |\n| `characters/characters.md` | Character definitions |\n| `characters/characters.png` | Character reference sheet |\n| `prompts/NN-{cover\\|page}-[slug].md` | Generation prompts |\n| `NN-{cover\\|page}-[slug].png` | Generated images |\n| `{topic-slug}.pdf` | Final merged PDF |\n\n## Language Handling\n\n**Detection Priority**:\n1. `--lang` flag (explicit)\n2. EXTEND.md `language` setting\n3. User's conversation language\n4. Source content language\n\n**Rule**: Use user's input language or saved language preference for ALL interactions:\n- Storyboard outlines and scene descriptions\n- Image generation prompts\n- User selection options and confirmations\n- Progress updates, questions, errors, summaries\n\nTechnical terms remain in English.\n\n## Workflow\n\n### Progress Checklist\n\n```\nComic Progress:\n- [ ] Step 1: Setup & Analyze\n  - [ ] 1.1 Preferences (EXTEND.md) ⛔ BLOCKING\n    - [ ] Found → load preferences → continue\n    - [ ] Not found → run first-time setup → MUST complete before other steps\n  - [ ] 1.2 Analyze, 1.3 Check existing\n- [ ] Step 2: Confirmation - Style & options ⚠️ REQUIRED\n- [ ] Step 3: Generate storyboard + characters\n- [ ] Step 4: Review outline (conditional)\n- [ ] Step 5: Generate prompts\n- [ ] Step 6: Review prompts (conditional)\n- [ ] Step 7: Generate images\n  - [ ] 7.1 Generate character sheet (if needed) → characters/characters.png\n  - [ ] 7.2 Generate pages (with --ref if character sheet exists)\n- [ ] Step 8: Merge to PDF\n- [ ] Step 9: Completion report\n```\n\n### Flow\n\n```\nInput → [Preferences] ─┬─ Found → Continue\n                       │\n                       └─ Not found → First-Time Setup ⛔ BLOCKING\n                                      │\n                                      └─ Complete setup → Save EXTEND.md → Continue\n                                                                              │\n        ┌─────────────────────────────────────────────────────────────────────┘\n        ↓\nAnalyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → [Review?] → Prompts → [Review?] → Images → PDF → Complete\n```\n\n### Step Summary\n\n| Step | Action | Key Output |\n|------|--------|------------|\n| 1.1 | Load EXTEND.md preferences ⛔ BLOCKING if not found | Config loaded |\n| 1.2 | Analyze content | `analysis.md` |\n| 1.3 | Check existing directory | Handle conflicts |\n| 2 | Confirm style, focus, audience, reviews | User preferences |\n| 3 | Generate storyboard + characters | `storyboard.md`, `characters/` |\n| 4 | Review outline (if requested) | User approval |\n| 5 | Generate prompts | `prompts/*.md` |\n| 6 | Review prompts (if requested) | User approval |\n| 7.1 | Generate character sheet (if needed) | `characters/characters.png` |\n| 7.2 | Generate pages (with character ref if available) | `*.png` files |\n| 8 | Merge to PDF | `{slug}.pdf` |\n| 9 | Completion report | Summary |\n\n### Step 7: Image Generation\n\n**Pick a backend once per session** using the `## Image Generation Tools` rule at the top. If the backend is a repo skill (e.g., `baoyu-image-gen`), read its `SKILL.md` and use its documented interface rather than its scripts.\n\n**`codex-imagegen` invocation**: when the rule resolves to `codex-imagegen`, see [references/codex-imagegen.md](references/codex-imagegen.md) for the invocation contract (preferred `baoyu-image-gen --provider codex-cli` path, runtime wrapper discovery, parameter notes, stdout schema, batch semantics — n=1 per call so page batches must dispatch one wrapper call per page).\n\n**7.1 Character sheet** — generate it (to `characters/characters.png`, aspect `4:3`) when the comic is multi-page with recurring characters. Skip for simple presets (e.g., four-panel minimalist) or single-page comics. Compress to JPEG before use-as-`--ref` (`sips -s format jpeg -s formatOptions 80 …` on macOS, `pngquant --quality=65-80 …` elsewhere) to avoid payload failures. The prompt file at `characters/characters.md` must exist before invoking the backend.\n\n**7.2 Pages** — each page's prompt MUST already be at `prompts/NN-{cover|page}-[slug].md` before invoking the backend; the file is the reproducibility record. Strategy depends on the character sheet:\n\n| Character sheet | Backend `--ref` | Strategy |\n|-----------------|-----------------|----------|\n| Exists | Supported | Pass sheet as `--ref` on every page |\n| Exists | Not supported | Prepend character descriptions to every prompt file |\n| Skipped | — | All descriptions inline in prompt |\n\n**Execution strategy**: Generate the character sheet first when needed. Then build the selected page task list from saved prompt files and dispatch pages in batches per the `## Batch Generation Policy`: backend native batch first, runtime parallel tool calls second, sequential only as fallback. `--regenerate N` and `--images-only` apply the same batching rules to the selected existing prompts.\n\n**Backup rule**: existing `prompts/…md` and `…png` files → rename with `-backup-YYYYMMDD-HHMMSS` suffix before regenerating. Aspect ratio from storyboard (default `3:4`; preset may override).\n\n**`--ref` failure recovery**: compress sheet → retry → still fails → drop `--ref` and embed character descriptions in the prompt text.\n\nFull step-by-step workflow (analysis, storyboard, review gates, regeneration variants): [references/workflow.md](references/workflow.md).\n\n### EXTEND.md Paths ⛔ BLOCKING\n\nIf EXTEND.md is not found, first-time setup is **blocking** — complete it before any content analysis or style/tone questions.\n\n| Priority | Path | Scope |\n|----------|------|-------|\n| 1 | `.baoyu-skills/baoyu-comic/EXTEND.md` | Project |\n| 2 | `$HOME/.baoyu-skills/baoyu-comic/EXTEND.md` | User home |\n\n| Result | Action |\n|--------|--------|\n| Found | Read, parse, display summary → continue |\n| Not found | ⛔ Run first-time setup ([references/config/first-time-setup.md](references/config/first-time-setup.md)) → save EXTEND.md → continue |\n\n**EXTEND.md supports**: watermark, preferred art/tone/layout, custom style definitions, character presets, language preference, preferred image backend, generation batch size. Schema: [references/config/preferences-schema.md](references/config/preferences-schema.md).\n\n## References\n\n**Core Templates**:\n- [analysis-framework.md](references/analysis-framework.md) - Deep content analysis\n- [character-template.md](references/character-template.md) - Character definition format\n- [storyboard-template.md](references/storyboard-template.md) - Storyboard structure\n- [ohmsha-guide.md](references/ohmsha-guide.md) - Ohmsha manga specifics\n\n**Style Definitions**:\n- `references/art-styles/` - Art styles (ligne-claire, manga, realistic, ink-brush, chalk, minimalist)\n- `references/tones/` - Tones (neutral, warm, dramatic, romantic, energetic, vintage, action)\n- `references/presets/` - Presets with special rules (ohmsha, wuxia, shoujo, concept-story, four-panel)\n- `references/layouts/` - Layouts (standard, cinematic, dense, splash, mixed, webtoon, four-panel)\n\n**Workflow**:\n- [workflow.md](references/workflow.md) - Full workflow details\n- [auto-selection.md](references/auto-selection.md) - Content signal analysis\n- [partial-workflows.md](references/partial-workflows.md) - Partial workflow options\n\n**Config**:\n- [config/preferences-schema.md](references/config/preferences-schema.md) - EXTEND.md schema\n- [config/first-time-setup.md](references/config/first-time-setup.md) - First-time setup\n- [config/watermark-guide.md](references/config/watermark-guide.md) - Watermark configuration\n\n## Page Modification\n\n| Action | Steps |\n|--------|-------|\n| **Edit** | **Update prompt file FIRST** → `--regenerate N` → Regenerate PDF |\n| **Add** | Create prompt at position → Generate with character ref → Renumber subsequent → Update storyboard → Regenerate PDF |\n| **Delete** | Remove files → Renumber subsequent → Update storyboard → Regenerate PDF |\n\n**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.\n\nText correction policy:\n\n- If dialogue, sound effects, panel labels, or any other rendered text is misspelled, garbled, hard to read, or visually weak, do not patch the bitmap with code.\n- For text-correction regenerations, write a new prompt file and a new output path so the flawed candidate is preserved for comparison.\n- Post-processing is limited to crop, resize, compression, or format conversion that does not alter text or the main composition.\n\n## Notes\n\n- Image generation: 10-30 seconds per page\n- Auto-retry once on generation failure\n- Use stylized alternatives for sensitive public figures\n- Maintain style consistency via session ID\n- **Step 2 confirmation required** - do not skip\n- **Steps 4/6 conditional** - only if user requested in Step 2\n- **Step 7.1 character sheet** - recommended for multi-page comics, optional for simple presets\n- **Step 7.2 character reference** - use `--ref` if sheet exists; compress/convert on failure; fall back to prompt-only\n- Watermark/language configured once in EXTEND.md\n\n## Changing Preferences\n\nEXTEND.md lives at `.baoyu-skills/baoyu-comic/EXTEND.md` (project) or `~/.baoyu-skills/baoyu-comic/EXTEND.md` (user). Three ways to change it:\n\n- **Edit directly** — open EXTEND.md and change fields. Full schema: `references/config/preferences-schema.md`.\n- **Reconfigure interactively** — delete EXTEND.md (or ask \"reconfigure baoyu-comic preferences\" / \"重新配置\"). The next run re-triggers first-time setup.\n- **Common one-line edits**:\n  - `preferred_image_backend: auto` — default; runtime-native tool wins, falls back to the only installed backend, asks only if multiple non-native are present.\n  - `preferred_image_backend: codex-imagegen` — pin to Codex's built-in.\n  - `preferred_image_backend: baoyu-image-gen` — pin to the baoyu-image-gen skill.\n  - `preferred_image_backend: ask` — confirm backend every run.\n  - `generation_batch_size: 4` — default number of page images to render concurrently when the backend/runtime supports batch or parallel generation.\n  - `watermark.enabled: true`, `preferred_art`, `preferred_tone`, `preferred_layout`, `language` — shift the auto-selection defaults and cosmetic choices.\n\nFile v1.117.4:_meta.json\n\n{\n  \"ownerId\": \"kn7csrrndw79hpke5d0gsnx93d82k67r\",\n  \"slug\": \"baoyu-comic\",\n  \"version\": \"1.117.4\",\n  \"publishedAt\": 1781326681419\n}\n\nFile v1.117.4:references/analysis-framework.md\n\n# Comic Content Analysis Framework\n\nDeep analysis framework for transforming source content into effective visual storytelling.\n\n## Purpose\n\nBefore creating a comic, thoroughly analyze the source material to:\n- Identify the target audience and their needs\n- Determine what value the comic will deliver\n- Extract narrative potential for visual storytelling\n- Plan character arcs and key moments\n\n## Analysis Dimensions\n\n### 1. Core Content (Understanding \"What\")\n\n**Central Message**\n- What is the single most important idea readers should take away?\n- Can you express it in one sentence?\n\n**Key Concepts**\n- What are the essential concepts readers must understand?\n- How should these concepts be visualized?\n- Which concepts need simplified explanations?\n\n**Content Structure**\n- How is the source material organized?\n- What is the natural narrative arc?\n- Where are the climax and turning points?\n\n**Evidence & Examples**\n- What concrete examples, data, or stories support the main ideas?\n- Which examples translate well to visual panels?\n- What can be shown rather than told?\n\n### 2. Context & Background (Understanding \"Why\")\n\n**Source Origin**\n- Who created this content? What is their perspective?\n- What was the original purpose?\n- Is there bias to be aware of?\n\n**Historical/Cultural Context**\n- When and where does the story take place?\n- What background knowledge do readers need?\n- What period-specific visual elements are required?\n\n**Underlying Assumptions**\n- What does the source assume readers already know?\n- What implicit beliefs or values are present?\n- Should the comic challenge or reinforce these?\n\n### 3. Audience Analysis\n\n**Primary Audience**\n- Who will read this comic?\n- What is their existing knowledge level?\n- What are their interests and motivations?\n\n**Secondary Audiences**\n- Who else might benefit from this comic?\n- How might their needs differ?\n\n**Reader Questions**\n- What questions will readers have?\n- What misconceptions might they bring?\n- What \"aha moments\" can we create?\n\n### 4. Value Proposition\n\n**Knowledge Value**\n- What will readers learn?\n- What new perspectives will they gain?\n- How will this change their understanding?\n\n**Emotional Value**\n- What emotions should readers feel?\n- What connections will they make with characters?\n- What will make this memorable?\n\n**Practical Value**\n- Can readers apply what they learn?\n- What actions might this inspire?\n- What conversations might it spark?\n\n### 5. Narrative Potential\n\n**Story Arc Candidates**\n- What natural narratives exist in the content?\n- Where is the conflict or tension?\n- What transformations occur?\n\n**Character Potential**\n- Who are the key figures?\n- What are their motivations and obstacles?\n- How do they change throughout?\n\n**Visual Opportunities**\n- What scenes have strong visual potential?\n- Where can abstract concepts become concrete images?\n- What metaphors can be visualized?\n\n**Dramatic Moments**\n- What are the breakthrough/revelation moments?\n- Where are the emotional peaks?\n- What creates tension and release?\n\n### 6. Adaptation Considerations\n\n**What to Keep**\n- Essential facts and ideas\n- Key quotes or moments\n- Core emotional beats\n\n**What to Simplify**\n- Complex explanations\n- Dense technical details\n- Lengthy descriptions\n\n**What to Expand**\n- Brief mentions that deserve more attention\n- Implied emotions or relationships\n- Visual details not in source\n\n**What to Omit**\n- Tangential information\n- Redundant examples\n- Content that doesn't serve the narrative\n\n## Output Format\n\nAnalysis results should be saved to `analysis.md` with:\n\n1. **YAML Front Matter**: Metadata (title, topic, time_span, source_language, user_language, aspect_ratio, recommended_page_count, recommended_art, recommended_tone, recommended_layout)\n2. **Target Audience**: Primary, secondary, tertiary audiences with their needs\n3. **Value Proposition**: What readers will gain (knowledge, emotional, practical)\n4. **Core Themes**: Table with theme, narrative potential, visual opportunity\n5. **Key Figures & Story Arcs**: Character profiles with arcs, visual identity, key moments\n6. **Content Signals**: Style and layout recommendations based on content type\n7. **Recommended Approaches**: Narrative approaches ranked by suitability\n\n### YAML Front Matter Example\n\n```yaml\n---\ntitle: \"Alan Turing: The Father of Computing\"\ntopic: alan-turing-biography\ntime_span: 1912-1954\nsource_language: en\nuser_language: zh  # From EXTEND.md or detected\naspect_ratio: \"3:4\"\nrecommended_page_count: 16\nrecommended_art: ligne-claire  # ligne-claire|manga|realistic|ink-brush|chalk\nrecommended_tone: neutral      # neutral|warm|dramatic|romantic|energetic|vintage|action\nrecommended_layout: mixed      # standard|cinematic|dense|splash|mixed|webtoon\n---\n```\n\n### Language Fields\n\n| Field | Description |\n|-------|-------------|\n| `source_language` | Detected language of source content |\n| `user_language` | Output language for comic (from EXTEND.md > --lang > source_language) |\n\n## Analysis Checklist\n\nBefore proceeding to storyboard:\n\n- [ ] Can I state the core message in one sentence?\n- [ ] Do I know exactly who will read this comic?\n- [ ] Have I identified at least 3 ways this comic provides value?\n- [ ] Are there clear protagonists with compelling arcs?\n- [ ] Have I found at least 5 visually powerful moments?\n- [ ] Do I understand what to keep, simplify, expand, and omit?\n- [ ] Have I identified the emotional peaks and valleys?\n\nFile v1.117.4:references/art-styles/chalk.md\n\n# chalk\n\n粉笔画风 - Chalkboard aesthetic with hand-drawn warmth\n\n## Overview\n\nClassic classroom chalkboard aesthetic with hand-drawn chalk illustrations. Nostalgic educational feel with imperfect, sketchy lines that capture the warmth of traditional teaching.\n\n## Line Work\n\n- Sketchy, imperfect hand-drawn lines\n- Chalk texture on all strokes\n- Varying line weight from chalk pressure\n- Soft edges, no sharp digital lines\n- Visible chalk dust effects\n\n## Character Design\n\n- Simplified, friendly character designs\n- Stick figures to semi-detailed range\n- Expressive through simple gestures\n- Approachable, non-intimidating\n- Educational presenter style\n\n## Background\n\n- Chalkboard Black (#1A1A1A) or Dark Green-Black (#1C2B1C)\n- Realistic chalkboard texture\n- Subtle scratches and dust particles\n- Faint eraser marks for authenticity\n- Wooden frame border optional\n\n## Typography\n\n- Hand-drawn chalk lettering style\n- Visible chalk texture on text\n- Imperfect baseline adds authenticity\n- White or bright colored chalk for emphasis\n\n## Visual Elements\n\n- Hand-drawn chalk illustrations\n- Chalk dust effects around elements\n- Doodles: stars, arrows, underlines, circles\n- Mathematical formulas and diagrams\n- Eraser smudges and chalk residue\n- Stick figures and simple icons\n- Connection lines with hand-drawn feel\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Background | Chalkboard Black | #1A1A1A |\n| Alt Background | Green-Black | #1C2B1C |\n| Primary Text | Chalk White | #F5F5F5 |\n| Accent 1 | Chalk Yellow | #FFE566 |\n| Accent 2 | Chalk Pink | #FF9999 |\n| Accent 3 | Chalk Blue | #66B3FF |\n| Accent 4 | Chalk Green | #90EE90 |\n| Accent 5 | Chalk Orange | #FFB366 |\n\n## Style Rules\n\n### Do\n- Maintain authentic chalk texture on all elements\n- Use imperfect, hand-drawn quality throughout\n- Add subtle chalk dust and smudge effects\n- Create visual hierarchy with color variety\n- Include playful doodles and annotations\n\n### Don't\n- Use perfect geometric shapes\n- Create clean digital-looking lines\n- Add photorealistic elements\n- Use gradients or glossy effects\n\n## Quality Markers\n\n- ✓ Authentic chalk texture throughout\n- ✓ Imperfect, hand-drawn quality\n- ✓ Readable despite sketchy style\n- ✓ Nostalgic classroom feel\n- ✓ Effective color hierarchy\n- ✓ Playful educational aesthetic\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Classic educational |\n| warm | ✓✓ | Nostalgic feel |\n| dramatic | ✗ | Style mismatch |\n| vintage | ✓ | Old school feel |\n| romantic | ✗ | Style mismatch |\n| energetic | ✓✓ | Fun learning |\n| action | ✗ | Style mismatch |\n\n## Best For\n\nEducational content, tutorials, classroom themes, teaching materials, workshops, informal learning, knowledge sharing\n\nFile v1.117.4:references/art-styles/ink-brush.md\n\n# ink-brush\n\n水墨画风 - Chinese ink brush aesthetics with dynamic strokes\n\n## Overview\n\nTraditional Chinese ink brush painting style adapted for comics. Combines calligraphic brush strokes with ink wash effects. Creates atmospheric, artistic visuals rooted in East Asian aesthetics.\n\n## Line Work\n\n- 2-3px dynamic brush strokes with varying weight\n- Ink wash effects, traditional Chinese brush feel\n- Bold, confident strokes with sharp edges\n- Flowing lines for fabric and hair\n- Pressure-sensitive stroke variation\n\n## Character Design\n\n- Realistic human proportions (7.5-8 head heights)\n- Defined features with ink brush definition\n- Dynamic poses capturing movement\n- Flowing hair and clothing in motion\n- Traditional attire options (robes, hanfu)\n- Intense, expressive faces\n\n## Brush Techniques\n\n| Technique | Usage |\n|-----------|-------|\n| Bold strokes | Character outlines |\n| Fine lines | Details, hair |\n| Ink wash | Atmosphere, shadows |\n| Dry brush | Texture, aging |\n| Splatter | Impact, drama |\n\n## Background Treatment\n\n- Dramatic landscapes: mountains, waterfalls, temples\n- Ink wash atmospheric effects\n- Misty, layered depth\n- Traditional architecture elements\n- High contrast silhouettes\n- Negative space as design element\n\n## Color Approach\n\n- Ink gradients as primary\n- Limited accent colors\n- Traditional Chinese palette\n- Atmospheric color washes\n- High contrast compositions\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary | Deep black ink | #1A1A1A |\n| Accent | Crimson red | #8B0000 |\n| Accent | Imperial gold | #D4AF37 |\n| Skin | Natural tan | #D4A574 |\n| Background | Misty gray | #9CA3AF |\n| Background | Earth tone | #8B7355 |\n| Wash | Ink gradient | #2D3748 |\n\n## Visual Elements\n\n- Calligraphic text integration\n- Seal stamps (optional)\n- Ink splatter effects\n- Flowing fabric trails\n- Atmospheric mist\n- Mountain silhouettes\n\n## Quality Markers\n\n- ✓ Dynamic brush stroke quality\n- ✓ Authentic ink wash atmosphere\n- ✓ High contrast compositions\n- ✓ Flowing movement in fabric/hair\n- ✓ Traditional aesthetic elements\n- ✓ Atmospheric depth\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓ | Contemplative stories |\n| warm | ✓ | Nostalgic, gentle |\n| dramatic | ✓✓ | High contrast |\n| vintage | ✓✓ | Historical pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✗ | Too refined |\n| action | ✓✓ | Martial arts |\n\n## Best For\n\nChinese historical stories, martial arts, traditional tales, contemplative narratives, artistic adaptations\n\nFile v1.117.4:references/art-styles/ligne-claire.md\n\n# ligne-claire\n\n清线画风 - Uniform lines, flat colors, European comic tradition\n\n## Overview\n\nClassic European comic style originating from Hergé's Tintin. Characterized by clean, uniform outlines and flat color fills without gradients. Creates a timeless, accessible aesthetic suitable for educational and narrative content.\n\n## Line Work\n\n- Uniform, clean outlines with consistent weight (2px)\n- No hatching or cross-hatching for shading\n- Sharp, precise edges on all elements\n- Black ink outlines on all figures and objects\n- Shadows indicated through flat color areas, not line techniques\n\n## Character Design\n\n- Slightly stylized/cartoonish characters with realistic proportions\n- Distinctive, recognizable facial features\n- Expressive faces with clear emotions\n- Period-appropriate clothing with attention to detail\n- Consistent character appearance across panels\n- 6-7 head height proportions\n\n## Background Treatment\n\n- Detailed, realistic backgrounds with architectural accuracy\n- Period-specific props and technology\n- Clear spatial depth and perspective\n- Environmental storytelling through details\n- Contrast between simplified characters and detailed backgrounds\n\n## Color Approach\n\n- Flat colors without gradients (true to Ligne Claire tradition)\n- Limited palette per page for cohesion\n- Colors support narrative mood\n- Consistent lighting logic within scenes\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary Blue | Clean blue | #3182CE |\n| Primary Red | Classic red | #E53E3E |\n| Primary Yellow | Warm yellow | #ECC94B |\n| Skin | Warm tan | #F7CFAE |\n| Background Light | Light cream | #FFFAF0 |\n| Background Sky | Sky blue | #BEE3F8 |\n\n## Quality Markers\n\n- ✓ Clean, uniform line weight throughout\n- ✓ Flat colors without gradients\n- ✓ Detailed backgrounds, stylized characters\n- ✓ Clear panel borders and reading flow\n- ✓ Hand-drawn text style\n- ✓ Proper perspective in environments\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Classic combination |\n| warm | ✓✓ | Nostalgic stories |\n| dramatic | ✓ | Works with high contrast |\n| vintage | ✓ | Period pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✓ | Lighter stories |\n| action | ✗ | Lacks dynamic lines |\n\n## Best For\n\nEducational content, balanced narratives, biography comics, historical stories\n\nFile v1.117.4:references/art-styles/manga.md\n\n# manga\n\n日漫画风 - Anime/manga aesthetics with expressive characters\n\n## Overview\n\nJapanese manga art style characterized by large expressive eyes, dynamic poses, and visual emotion indicators. Versatile style that works across genres from educational to romantic to action.\n\n## Line Work\n\n- Clean, smooth lines (1.5-2px)\n- Expressive weight variation for emphasis\n- Smooth curves, dynamic strokes\n- Speed lines and motion effects available\n- Screen tone effects for atmosphere\n\n## Character Design\n\n- Anime/manga proportions: larger eyes, expressive faces\n- 5-7 head height proportions (varies by sub-style)\n- Clear emotional indicators (！, ？, sweat drops, sparkles)\n- Dynamic poses and gestures\n- Detailed hair with individual strands\n- Fashionable clothing with natural folds\n\n## Eye Styles\n\n| Type | Description |\n|------|-------------|\n| Standard | Medium-large, 2-3 highlights |\n| Educational | Friendly, approachable eyes |\n| Dramatic | Intense, detailed irises |\n| Cute | Very large, sparkly eyes |\n\n## Background Treatment\n\n- Simplified during dialogue/explanation\n- Detailed for establishing shots\n- Screen tone gradients for mood\n- Abstract backgrounds for emotional moments\n- Technical diagrams styled as displays\n\n## Color Approach\n\n- Clean, bright anime colors\n- Soft gradients on skin\n- Vibrant palette options\n- Light and shadow with soft transitions\n- Color coding for character identification\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary Blue | Bright blue | #4299E1 |\n| Primary Orange | Warm orange | #ED8936 |\n| Primary Green | Soft green | #68D391 |\n| Skin | Anime warm | #FEEBC8 |\n| Background | Clean white | #FFFFFF |\n| Highlight | Golden | #FFD700 |\n\n## Visual Elements\n\n- Speech bubbles: rounded (normal), spiky (excitement)\n- Sound effects integrated visually\n- Emotion symbols (sweat drops, anger marks, hearts)\n- Speed lines and motion blur\n- Sparkle and glow effects\n\n## Quality Markers\n\n- ✓ Expressive character faces\n- ✓ Clean, consistent line work\n- ✓ Dynamic poses and compositions\n- ✓ Appropriate use of manga conventions\n- ✓ Readable panel flow\n- ✓ Consistent character designs\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Educational manga |\n| warm | ✓ | Slice of life |\n| dramatic | ✓ | Intense moments |\n| romantic | ✓✓ | Shoujo style |\n| energetic | ✓✓ | Shonen style |\n| vintage | ✗ | Style mismatch |\n| action | ✓✓ | Battle manga |\n\n## Best For\n\nEducational tutorials, romance, action, coming-of-age, technical explanations, youth-oriented content\n\nFile v1.117.4:references/art-styles/minimalist.md\n\n# minimalist\n\n极简画风 - Clean black line art, limited spot color, simplified stick-figure characters\n\n## Overview\n\nMinimalist cartoon illustration characterized by clean black line art on white background with very limited spot color for emphasis. Characters are simplified to near-stick-figure abstraction, focusing on gesture and concept rather than anatomical detail. Designed for business allegory, quick-read educational content, and concept illustration.\n\n## Line Work\n\n- Clean, uniform black lines (1.5-2px)\n- No hatching, cross-hatching, or shading techniques\n- Minimal detail — every line serves a purpose\n- Bold outlines for characters, thinner lines for props/labels\n- No decorative flourishes or ornamental lines\n\n## Character Design\n\n- Highly simplified, stick-figure-like business characters\n- Circle or oval heads with minimal facial features (dot eyes, simple line mouth)\n- Body as simple geometric shapes or line constructions\n- Distinguishing features through props only (tie, hat, briefcase, glasses)\n- No anatomical detail — expressive through posture and gesture\n- 4-5 head height proportions (squat, iconic)\n\n## Background Treatment\n\n- Mostly blank/white — negative space is a design element\n- Minimal environmental cues (a line for ground, simple desk outline)\n- Concept labels and text annotations replace detailed environments\n- Icons and symbols over realistic rendering\n- No perspective or spatial depth\n\n## Color Approach\n\n- Primarily black and white (90%+ of the image)\n- 1-2 spot accent colors for emphasis on key concepts\n- Accent color used sparingly: highlighting key objects, text labels, concept indicators\n- No gradients, no shading, no color fills on backgrounds\n- Color draws the eye to the most important element in each panel\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary | Black ink | `#1A1A1A` |\n| Background | Clean white | `#FFFFFF` |\n| Accent 1 | Spot orange | `#FF6B35` |\n| Accent 2 | Spot blue (optional) | `#3182CE` |\n| Text labels | Dark gray | `#4A4A4A` |\n| Panel border | Medium gray | `#666666` |\n\n## Visual Elements\n\n- Text labels with accent-color backgrounds or underlines for key terms\n- Simple icons: arrows, circles, checkmarks, crosses\n- Concept highlight boxes with spot color\n- Minimal speech bubbles (simple oval or rectangle, thin black outline)\n- No sound effects, no motion lines, no screen tones\n\n## Quality Markers\n\n- ✓ Clean, purposeful line work with no unnecessary detail\n- ✓ 90%+ black-and-white with strategic spot color\n- ✓ Simplified characters readable at small sizes\n- ✓ Text labels integrated naturally into panels\n- ✓ Strong negative space usage\n- ✓ Every element serves the narrative point\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Ideal for business/educational content |\n| warm | ✓ | Works for gentle stories, slight warmth in accent |\n| energetic | ✓ | Works for punchy, high-energy content |\n| dramatic | ✗ | Style too stripped down for dramatic intensity |\n| vintage | ✗ | Minimalist aesthetic conflicts with aged/textured look |\n| romantic | ✗ | No capacity for decorative/soft elements |\n| action | ✗ | No dynamic line capability for speed/impact |\n\n## Best For\n\nBusiness allegory, management fables, short concept illustration, four-panel comic strips, quick-insight education, social media content\n\nFile v1.117.4:references/art-styles/realistic.md\n\n# realistic\n\n写实画风 - Digital painting with realistic proportions and lighting\n\n## Overview\n\nFull-color realistic manga style using digital painting techniques. Features anatomically accurate characters, rich gradients, and detailed environmental rendering. Sophisticated aesthetic for mature audiences.\n\n## Line Work\n\n- Clean, precise outlines with clear contours\n- Uniform line weight for character definition\n- No excessive hatching - rely on color for depth\n- Smooth curves and realistic anatomical lines\n- Ligne Claire influence: clean but not simplified\n\n## Character Design\n\n- Realistic human proportions (7-8 head heights)\n- Anatomically accurate features and expressions\n- Detailed facial structure without exaggeration\n- Natural poses and body language\n- Consistent appearance across panels\n- Subtle expressions rather than manga-style\n\n## Rendering Style\n\n- Full-color digital painting with rich gradients\n- Soft shadow transitions on skin and fabric\n- Realistic material textures (glass, liquid, fabric, wood)\n- Detailed hair with natural shine and volume\n- Environmental lighting affects all elements\n- NOT flat cel-shading - smooth color blending\n\n## Background Treatment\n\n- Highly detailed, realistic environments\n- Accurate perspective and spatial depth\n- Atmospheric lighting (warm indoor, cool outdoor)\n- Professional settings rendered with precision\n- Props and objects with realistic textures\n\n## Color Approach\n\n- Rich gradients for depth and volume\n- Realistic lighting with warm/cool contrast\n- Material-specific rendering\n- Subtle color temperature shifts\n- Professional, sophisticated palette\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Skin Light | Natural warm | #F5D6C6 |\n| Skin Shadow | Warm shadow | #E8C4B0 |\n| Environment | Warm wood | #8B7355 |\n| Environment Cool | Cool stone | #9CA3AF |\n| Accent | Wine red | #722F37 |\n| Accent Gold | Gold | #D4AF37 |\n| Light Warm | Amber | #FFB347 |\n| Light Cool | Cool blue | #B0C4DE |\n\n## Quality Markers\n\n- ✓ Anatomically accurate proportions\n- ✓ Smooth color gradients (not flat fills)\n- ✓ Realistic material textures\n- ✓ Detailed, atmospheric backgrounds\n- ✓ Natural lighting with soft shadows\n- ✓ Expressive but subtle expressions\n- ✓ Professional aesthetic\n- ✓ Clean speech bubbles\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Professional content |\n| warm | ✓✓ | Nostalgic stories |\n| dramatic | ✓✓ | High drama |\n| vintage | ✓✓ | Period pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✗ | Too refined |\n| action | ✓ | Serious action |\n\n## Best For\n\nProfessional topics (wine, food, business), lifestyle content, adult narratives, documentary-style, mature educational guides\n\nFile v1.117.4:references/auto-selection.md\n\n# Auto Selection\n\nContent signals determine default art + tone + layout (or preset).\n\n## Content Signal Matrix\n\n| Content Signals | Art Style | Tone | Layout | Preset |\n|-----------------|-----------|------|--------|--------|\n| Tutorial, how-to, beginner | manga | neutral | webtoon | **ohmsha** |\n| Computing, AI, programming | manga | neutral | dense | **ohmsha** |\n| Technical explanation, educational | manga | neutral | webtoon | **ohmsha** |\n| Pre-1950, classical, ancient | realistic | vintage | cinematic | - |\n| Personal story, mentor | ligne-claire | warm | standard | - |\n| Psychology, motivation, self-help, coaching | manga | warm | standard | **concept-story** |\n| Business narrative, management, leadership | manga | warm | standard | **concept-story** |\n| Conflict, breakthrough | (inherit) | dramatic | splash | - |\n| Wine, food, lifestyle | realistic | neutral | cinematic | - |\n| Martial arts, wuxia, xianxia | ink-brush | action | splash | **wuxia** |\n| Romance, love, school life | manga | romantic | standard | **shoujo** |\n| Business allegory, fable, parable, short insight, 四格 | minimalist | neutral | four-panel | **four-panel** |\n| Biography, balanced | ligne-claire | neutral | mixed | - |\n\n## Preset Recommendation Rules\n\n**When preset is recommended**: Load `presets/{preset}.md` and apply all special rules.\n\n### ohmsha\n- **Triggers**: Tutorial, technical, educational, computing, programming, how-to, beginner\n- **Special rules**: Visual metaphors, NO talking heads, gadget reveals, Doraemon-style characters\n- **Base**: manga + neutral + webtoon/dense\n\n### wuxia\n- **Triggers**: Martial arts, wuxia, xianxia, cultivation, swordplay\n- **Special rules**: Qi effects, combat visuals, atmospheric elements\n- **Base**: ink-brush + action + splash\n\n### shoujo\n- **Triggers**: Romance, love story, school life, emotional drama\n- **Special rules**: Decorative elements, eye details, romantic beats\n- **Base**: manga + romantic + standard\n\n### concept-story\n- **Triggers**: Psychology, motivation, self-help, business narrative, management, leadership, personal growth, coaching, soft skills, abstract concept through story\n- **Special rules**: Visual symbol system, growth arc, dialogue+action balance, original characters\n- **Base**: manga + warm + standard\n\n### four-panel\n- **Triggers**: Business allegory, fable, parable, short insight, four-panel, 四格, 四格漫画, single-page comic, minimalist comic strip\n- **Special rules**: Strict 起承转合 4-panel structure, B&W + spot color, simplified stick-figure characters, single-page story\n- **Base**: minimalist + neutral + four-panel\n\n## Compatibility Matrix\n\nArt Style × Tone combinations work best when matched appropriately:\n\n| Art Style | ✓✓ Best | ✓ Works | ✗ Avoid |\n|-----------|---------|---------|---------|\n| ligne-claire | neutral, warm | dramatic, vintage, energetic | romantic, action |\n| manga | neutral, romantic, energetic, action | warm, dramatic | vintage |\n| realistic | neutral, warm, dramatic, vintage | action | romantic, energetic |\n| ink-brush | neutral, dramatic, action, vintage | warm | romantic, energetic |\n| chalk | neutral, warm, energetic | vintage | dramatic, action, romantic |\n| minimalist | neutral | warm, energetic | dramatic, vintage, romantic, action |\n\n**Note**: Art Style × Tone × Layout can be freely combined. Incompatible combinations work but may produce unexpected results.\n\n## Priority Order\n\n1. User-specified options (`--art`, `--tone`, `--style`)\n2. EXTEND.md defaults\n3. Content signal analysis → auto-selection\n4. Fallback: ligne-claire + neutral + standard\n\nFile v1.117.4:references/base-prompt.md\n\nCreate a knowledge biography comic page following these guidelines:\n\n## Image Specifications\n\n- **Type**: Comic book page with multiple panels\n- **Orientation**: Portrait (vertical)\n- **Aspect Ratio**: 2:3\n- **Style**: See style-specific reference for visual guidelines\n\n## Panel Structure\n\n### Panel Borders\n- Clean black lines (1-2px) around each panel\n- White gutters between panels (8-12px)\n- Panels arranged for clear reading flow\n- Variety in panel sizes for visual rhythm\n\n### Panel Composition\n- Clear focal points in each panel\n- Proper use of foreground, midground, background\n- Camera angles vary: eye level, bird's eye, low angle, close-up, wide shot\n- Action flows logically between panels\n- Negative space used intentionally\n\n## Text Elements\n\n### Speech Bubbles\n- **Dialogue**: Oval/elliptical bubbles with pointed tails\n- White fill with thin black outline\n- Tail points clearly to speaker\n- Hand-lettered style font (not computer-generated)\n\n### Narrator Boxes\n- **Fourth Wall/Narrator**: Rectangular boxes\n- Often positioned at panel edges (top or bottom)\n- Slightly different fill color (cream or light yellow)\n- Used for commentary, time jumps, explanations\n\n### Thought Bubbles\n- Cloud-shaped with bubble trail leading to thinker\n- Softer outline than speech bubbles\n- For internal monologue\n\n### Caption Bars\n- Rectangular bars at panel edges\n- Time and place information\n- \"Meanwhile...\", \"Three years later...\" type transitions\n- Darker fill with white text, or vice versa\n\n### Typography\n- Hand-drawn lettering style throughout\n- Bold for emphasis and key terms\n- Consistent letter sizing\n- Chinese text: use full-width punctuation \"\"，。！\n- Clear hierarchy: titles > dialogue > captions\n\n## Scientific/Concept Visualization\n\nWhen depicting abstract concepts:\n\n| Concept | Visual Metaphor |\n|---------|----------------|\n| Neural networks | Glowing nodes connected by clean lines |\n| Data flow | Luminous particles along simple paths |\n| Algorithms | Geometric patterns, building blocks |\n| Logic/proof | Interlocking puzzle pieces |\n| Discovery | Light breaking through darkness |\n| Uncertainty | Forking paths, question marks |\n| Time | Clock motifs, calendar pages |\n\n- Integrate diagrams naturally into narrative panels\n- Use inset panels or thought-bubble style for explanations\n- Simplified iconography over realistic depiction\n\n## Fourth Wall / Narrator Character\n\nWhen depicting narrator characters addressing the reader:\n- Character may look directly out of panel\n- Can appear in \"present day\" framing scenes\n- Distinct visual treatment from main timeline\n- Often at page edges or in dedicated panels\n- May comment on or question the events shown\n\n## Historical Accuracy\n\n- Research period-specific details: costumes, technology, architecture\n- Show aging naturally for characters across time periods\n- Iconic items and locations rendered recognizably\n- Balance accuracy with stylization\n\n## Language\n\n- All text in Chinese (中文) unless source material is in another language\n- Use Chinese full-width punctuation: \"\"，。！\n\n---\n\nPlease generate the comic page based on the content provided below:\n\nFile v1.117.4:references/character-template.md\n\n# Character Definition Template\n\n## Character Document Format\n\nCreate `characters/characters.md` with the following structure:\n\n```markdown\n# Character Definitions - [Comic Title]\n\n**Style**: [selected style]\n**Art Direction**: [Ligne Claire / Manga / etc.]\n\n---\n\n## Character 1: [Name]\n\n**Role**: [Protagonist / Mentor / Antagonist / Narrator]\n**Age**: [approximate age or age range in story]\n\n**Appearance**:\n- Face shape: [oval/square/round]\n- Hair: [color, style, length]\n- Eyes: [color, shape, distinctive features]\n- Build: [height, body type]\n- Distinguishing features: [glasses, beard, scar, etc.]\n\n**Costume**:\n- Default outfit: [detailed description]\n- Color palette: [primary colors for this character]\n- Accessories: [hat, bag, tools, etc.]\n\n**Expression Range**:\n- Neutral: [description]\n- Happy/Excited: [description]\n- Thinking/Confused: [description]\n- Determined: [description]\n\n**Visual Reference Notes**:\n[Any specific artistic direction]\n\n---\n\n## Character 2: [Name]\n...\n```\n\n## Reference Sheet Image Prompt\n\nAfter character definitions, include a prompt for generating the reference sheet:\n\n```markdown\n## Reference Sheet Prompt\n\nCharacter reference sheet in [style] style, clean lines, flat colors:\n\n[ROW 1 - Character Name]:\n- Front view: [detailed description]\n- 3/4 view: [description]\n- Expression sheet: Neutral | Happy | Focused | Worried\n\n[ROW 2 - Character Name]:\n...\n\nCOLOR PALETTE:\n- [Character 1]: [colors]\n- [Character 2]: [colors]\n\nWhite background, clear labels under each character.\n```\n\n## Example: Turing Biography\n\n```markdown\n# Character Definitions - The Imitation Game\n\n**Style**: classic (Ligne Claire)\n**Art Direction**: Clean lines, muted colors, period-accurate details\n\n---\n\n## Character 1: Alan Turing\n\n**Role**: Protagonist\n**Age**: 25-40 (varies across story)\n\n**Appearance**:\n- Face shape: Oval, slightly angular\n- Hair: Dark brown, wavy, slightly disheveled\n- Eyes: Deep-set, intense gaze\n- Build: Tall, lean, slightly awkward posture\n- Distinguishing features: Prominent brow, thoughtful expression\n\n**Costume**:\n- Default outfit: Tweed jacket with elbow patches, white shirt, no tie\n- Color palette: Muted browns, navy blue, cream\n- Accessories: Occasionally a pipe, papers/notebooks\n\n**Expression Range**:\n- Neutral: Thoughtful, slightly distant\n- Happy/Excited: Eureka moment, eyes bright, subtle smile\n- Thinking/Confused: Furrowed brow, looking at abstract space\n- Determined: Jaw set, focused eyes\n\n---\n\n## Character 2: The Bombe Machine\n\n**Role**: Supporting (anthropomorphized)\n**Appearance**:\n- Large brass and wood cabinet\n- Dial \"eyes\" that can express states\n- Paper tape \"mouth\"\n- Indicator lights for emotions\n\n**Expression Range**:\n- Processing: Spinning dials, humming\n- Success: Lights up warmly\n- Stuck: Smoke wisps, stuttering\n\n---\n\n## Reference Sheet Prompt\n\nCharacter reference sheet in Ligne Claire style, clean lines, flat colors:\n\nTOP ROW - Alan Turing:\n- Front view: Young man, 30s, short dark wavy hair, thoughtful expression, wearing tweed jacket with elbow patches, white shirt\n- 3/4 view: Same character, slight smile, showing profile of nose\n- Expression sheet: Neutral | Excited (eureka moment) | Focused (working) | Worried\n\nBOTTOM ROW - The Bombe Machine (anthropomorphized):\n- Bombe machine as character: Large, brass and wood, dial \"eyes\", paper tape \"mouth\"\n- Expressions: Processing (spinning dials) | Success (lights up) | Stuck (smoke wisps)\n\nCOLOR PALETTE:\n- Turing: Muted browns (#8B7355), navy blue (#2C3E50), cream (#F5F5DC)\n- Machine: Brass (#B5A642), mahogany (#4E2728), emerald indicators (#2ECC71)\n\nWhite background, clear labels under each character.\n```\n\n## Handling Age Variants\n\nFor biographies spanning many years, define age variants:\n\n```markdown\n## Alan Turing - Age Variants\n\n### Young (1920s, age 10-18)\n- Boyish features, round face\n- School uniform (Sherborne)\n- Curious, eager expression\n\n### Adult (1930s-40s, age 25-35)\n- Angular face, defined jaw\n- Tweed jacket, rumpled appearance\n- Intense, focused expression\n\n### Later (1950s, age 40+)\n- Slightly weathered\n- More casual dress\n- Thoughtful, sometimes melancholic\n```\n\n## Best Practices\n\n| Practice | Description |\n|----------|-------------|\n| Be specific | \"Short dark wavy hair, parted left\" not just \"dark hair\" |\n| Use distinguishing features | Glasses, scars, accessories that identify character |\n| Define color codes | Use specific color names or hex codes |\n| Include age markers | Wrinkles, posture, clothing style matching era |\n| Reference real people | For historical figures, note \"based on 1940s photographs\" |\n\n## Why Character Reference Matters\n\nWithout unified character definition, AI generates inconsistent appearances. The reference sheet provides:\n1. Visual anchors for consistent features\n2. Color palettes for consistent coloring\n3. Expression documentation for emotional portrayals\n\nArchive v1.117.3: 40 files, 69404 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (4389b), references/config/preferences-schema.md (5671b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (19662b), scripts/merge-to-pdf.ts (3142b), skill-card.md (2813b), SKILL.md (21026b), _meta.json (132b)\n\nFile v1.117.3:SKILL.md\n\n---\nname: baoyu-comic\ndescription: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create \"知识漫画\", \"教育漫画\", \"biography comic\", \"tutorial comic\", or \"Logicomix-style comic\".\nversion: 1.117.3\nmetadata:\n  openclaw:\n    homepage: https://github.com/JimLiu/baoyu-skills#baoyu-comic\n    requires:\n      anyBins:\n        - bun\n        - npx\n---\n\n# Knowledge Comic Creator\n\nCreate original knowledge comics with flexible art style × tone combinations.\n\n## User Input Tools\n\nWhen this skill prompts the user, follow this tool-selection rule (priority order):\n\n1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.\n2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.\n3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.\n\nConcrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.\n\n## Image Generation Tools\n\nWhen this skill needs to render an image, resolve the backend in this order:\n\n1. **Current-request override** — if the user names a specific backend in the current message, use it.\n2. **Saved preference** — if `EXTEND.md` sets `preferred_image_backend` to a backend available right now, use it.\n3. **Auto-select** (when the preference is `auto`, unset, or the pinned backend isn't available):\n   - **Codex (`imagegen`)** — first, inspect your available-skills / tool inventory. If a skill named `imagegen` is listed, you are running inside Codex and MUST use it: invoke via the `Skill` tool with `skill: \"imagegen\"`, passing the saved prompt file's content (plus output path and aspect ratio per Codex `imagegen`'s own args). Codex `imagegen` is the official raster backend in that runtime and outranks any non-native skill (e.g., `baoyu-image-gen`) unless the user has explicitly pinned a different `preferred_image_backend`.\n   - **Other runtime-native tools** — if the runtime exposes a different native image tool (e.g., Hermes `image_generate`), use it the same way.\n   - Otherwise, if exactly one non-native backend is installed (e.g., `baoyu-image-gen`), use it.\n   - Otherwise (multiple non-native backends with no runtime-native tool), ask the user once — batch with any other initial questions.\n4. **If none are available**, tell the user and ask how to proceed.\n\n**⛔ Never substitute SVG, HTML, canvas, or other code-based rendering for raster image generation.** Codex `imagegen`'s own description says it should be used \"when the output should be a bitmap asset rather than repo-native code or vector.\" If you cannot resolve a raster backend via step 3, fall through to step 4 and ask the user — do **not** silently emit SVG, write inline `<svg>` markup, or produce HTML/CSS art as a substitute. This applies even if the article/section seems \"diagram-like\": the consumer skill calling this rule has already decided that a raster image is what it needs.\n\n**⛔ Never repair rendered text by painting over a generated bitmap.** Do not use ImageMagick, Pillow, Canvas, SVG, HTML/CSS, OCR scripts, or any other programmatic overlay to cover, rewrite, erase, stroke, or replace dialogue, sound effects, panel labels, or any other text inside an already generated comic page. If text is wrong or unclear, regenerate from a corrected prompt, redraw the page with less or no on-image text, or ask the user which imperfect candidate to keep.\n\nSetting `preferred_image_backend: ask` forces the step-3 prompt every run regardless of available backends. Users change the pinned backend via the `## Changing Preferences` section below.\n\n**Prompt file requirement (hard)**: write each image's full, final prompt to a standalone file under `prompts/` (naming: `NN-{type}-[slug].md`) BEFORE invoking any backend. The backend receives the prompt file (or its content); the file is the reproducibility record and lets you switch backends without regenerating prompts.\n\nConcrete tool names (`imagegen`, `image_generate`, `baoyu-image-gen`) above are examples — substitute the local equivalents under the same rule.\n\n## Batch Generation Policy\n\nAfter every prompt file for the current generation group has been saved and verified, generate images in batches by default.\n\nPriority order:\n\n1. Use the chosen backend's native batch / multi-task interface if it exists. Each task must keep its own prompt file, output path, aspect ratio, session ID, and direct reference images.\n2. If no native batch interface exists but the runtime can issue parallel tool calls, dispatch up to `generation_batch_size` images at a time. Default: `4`. An explicit user request in the current message, such as `--batch-size 4` or \"并行4张一起生成\", overrides EXTEND.md.\n3. If neither native batch nor parallel tool calls are available, generate sequentially.\n\nRules:\n\n- Honor workflow dependencies first: generate `characters/characters.png` before pages that use it as a reference.\n- Never start the first page batch until all selected page prompt files exist on disk.\n- Retry failed items once without regenerating successful items.\n- Do not use subagents merely to parallelize image rendering. Use subagents only for separate prompt iteration or creative exploration.\n\n## Reference Images\n\nUsers may supply reference images to guide art style, palette, scene composition, or subject. This is **separate from** the auto-generated character sheet (Step 7.1) — both can coexist: user refs guide the look, the character sheet anchors recurring character identity.\n\n**Intake**: Accept via `--ref <files...>` or when the user provides file paths / pastes images in conversation.\n- File path(s) → copy to `refs/NN-ref-{slug}.{ext}` alongside the comic output\n- Pasted image with no path → ask the user for the path (per the User Input Tools rule above), or extract style traits verbally as a text fallback\n- No reference → skip this section\n\n**Usage modes** (per reference):\n\n| Usage | Effect |\n|-------|--------|\n| `direct` | Pass the file to the backend as a reference image on every page (or selected pages) |\n| `style` | Extract style traits (line treatment, texture, mood) and append to every page's prompt body |\n| `palette` | Extract hex colors and append to every page's prompt body |\n\n**Record in each page's prompt frontmatter** when refs exist:\n\n```yaml\nreferences:\n  - ref_id: 01\n    filename: 01-ref-scene.png\n    usage: direct\n```\n\n**At generation time**:\n- Verify each referenced file exists on disk\n- If `usage: direct` AND the chosen backend accepts multiple reference images → pass both the character sheet (Step 7.2) and the user refs via the backend's ref parameter; compress images first per Step 7.1's guidance to avoid payload failures\n- If the backend accepts only one ref → prefer the character sheet for pages with recurring characters; embed user-ref traits in the prompt body instead\n- For `style`/`palette` usage → embed extracted traits in every page's prompt text (applies regardless of backend capability)\n\n## Options\n\n### Visual Dimensions\n\n| Option | Values | Description |\n|--------|--------|-------------|\n| `--art` | ligne-claire (default), manga, realistic, ink-brush, chalk, minimalist | Art style / rendering technique |\n| `--tone` | neutral (default), warm, dramatic, romantic, energetic, vintage, action | Mood / atmosphere |\n| `--layout` | standard (default), cinematic, dense, splash, mixed, webtoon, four-panel | Panel arrangement |\n| `--aspect` | 3:4 (default, portrait), 4:3 (landscape), 16:9 (widescreen) | Page aspect ratio |\n| `--lang` | auto (default), zh, en, ja, etc. | Output language |\n| `--ref <files...>` | File paths | Reference images applied to every page for style / palette / scene guidance. See [Reference Images](#reference-images) above. |\n| `--batch-size <n>` | 1-8 | Temporary page generation batch size for this run. Default: `generation_batch_size` from EXTEND.md, otherwise 4. |\n\n### Partial Workflow Options\n\n| Option | Description |\n|--------|-------------|\n| `--storyboard-only` | Generate storyboard only, skip prompts and images |\n| `--prompts-only` | Generate storyboard + prompts, skip images |\n| `--images-only` | Generate images from existing prompts directory |\n| `--regenerate N` | Regenerate specific page(s) only (e.g., `3` or `2,5,8`) |\n\nDetails: [references/partial-workflows.md](references/partial-workflows.md)\n\n### Art, Tone & Preset Catalogue\n\n- **Art styles** (6): `ligne-claire`, `manga`, `realistic`, `ink-brush`, `chalk`, `minimalist`. Full definitions at `references/art-styles/<style>.md`.\n- **Tones** (7): `neutral`, `warm`, `dramatic`, `romantic`, `energetic`, `vintage`, `action`. Full definitions at `references/tones/<tone>.md`.\n- **Presets** (5) with special rules beyond plain art+tone:\n\n  | Preset | Equivalent | Hook |\n  |--------|-----------|------|\n  | `ohmsha` | manga + neutral | Visual metaphors, no talking heads, gadget reveals |\n  | `wuxia` | ink-brush + action | Qi effects, combat visuals, atmospheric |\n  | `shoujo` | manga + romantic | Decorative elements, eye details, romantic beats |\n  | `concept-story` | manga + warm | Visual symbol system, growth arc, dialogue+action balance |\n  | `four-panel` | minimalist + neutral + four-panel layout | 起承转合 structure, B&W + spot color, stick-figure characters |\n\n  Full rules at `references/presets/<preset>.md` — load the file when a preset is picked.\n\n- **Compatibility matrix** and **content-signal → preset** table live in [references/auto-selection.md](references/auto-selection.md). Read it before recommending combinations in Step 2.\n\n## Script Directory\n\n**Important**: All scripts are located in the `scripts/` subdirectory of this skill.\n\n**Agent Execution Instructions**:\n1. Determine this SKILL.md file's directory path as `{baseDir}`\n2. Script path = `{baseDir}/scripts/<script-name>.ts`\n3. Replace all `{baseDir}` in this document with the actual path\n4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun\n\n**Script Reference**:\n| Script | Purpose |\n|--------|---------|\n| `scripts/merge-to-pdf.ts` | Merge comic pages into PDF |\n\n## File Structure\n\nOutput directory: `comic/{topic-slug}/`\n- Slug: 2-4 words kebab-case from topic (e.g., `alan-turing-bio`)\n- Conflict: append timestamp (e.g., `turing-story-20260118-143052`)\n\n**Contents**:\n| File | Description |\n|------|-------------|\n| `source-{slug}.{ext}` | Source files |\n| `analysis.md` | Content analysis |\n| `storyboard.md` | Storyboard with panel breakdown |\n| `characters/characters.md` | Character definitions |\n| `characters/characters.png` | Character reference sheet |\n| `prompts/NN-{cover\\|page}-[slug].md` | Generation prompts |\n| `NN-{cover\\|page}-[slug].png` | Generated images |\n| `{topic-slug}.pdf` | Final merged PDF |\n\n## Language Handling\n\n**Detection Priority**:\n1. `--lang` flag (explicit)\n2. EXTEND.md `language` setting\n3. User's conversation language\n4. Source content language\n\n**Rule**: Use user's input language or saved language preference for ALL interactions:\n- Storyboard outlines and scene descriptions\n- Image generation prompts\n- User selection options and confirmations\n- Progress updates, questions, errors, summaries\n\nTechnical terms remain in English.\n\n## Workflow\n\n### Progress Checklist\n\n```\nComic Progress:\n- [ ] Step 1: Setup & Analyze\n  - [ ] 1.1 Preferences (EXTEND.md) ⛔ BLOCKING\n    - [ ] Found → load preferences → continue\n    - [ ] Not found → run first-time setup → MUST complete before other steps\n  - [ ] 1.2 Analyze, 1.3 Check existing\n- [ ] Step 2: Confirmation - Style & options ⚠️ REQUIRED\n- [ ] Step 3: Generate storyboard + characters\n- [ ] Step 4: Review outline (conditional)\n- [ ] Step 5: Generate prompts\n- [ ] Step 6: Review prompts (conditional)\n- [ ] Step 7: Generate images\n  - [ ] 7.1 Generate character sheet (if needed) → characters/characters.png\n  - [ ] 7.2 Generate pages (with --ref if character sheet exists)\n- [ ] Step 8: Merge to PDF\n- [ ] Step 9: Completion report\n```\n\n### Flow\n\n```\nInput → [Preferences] ─┬─ Found → Continue\n                       │\n                       └─ Not found → First-Time Setup ⛔ BLOCKING\n                                      │\n                                      └─ Complete setup → Save EXTEND.md → Continue\n                                                                              │\n        ┌─────────────────────────────────────────────────────────────────────┘\n        ↓\nAnalyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → [Review?] → Prompts → [Review?] → Images → PDF → Complete\n```\n\n### Step Summary\n\n| Step | Action | Key Output |\n|------|--------|------------|\n| 1.1 | Load EXTEND.md preferences ⛔ BLOCKING if not found | Config loaded |\n| 1.2 | Analyze content | `analysis.md` |\n| 1.3 | Check existing directory | Handle conflicts |\n| 2 | Confirm style, focus, audience, reviews | User preferences |\n| 3 | Generate storyboard + characters | `storyboard.md`, `characters/` |\n| 4 | Review outline (if requested) | User approval |\n| 5 | Generate prompts | `prompts/*.md` |\n| 6 | Review prompts (if requested) | User approval |\n| 7.1 | Generate character sheet (if needed) | `characters/characters.png` |\n| 7.2 | Generate pages (with character ref if available) | `*.png` files |\n| 8 | Merge to PDF | `{slug}.pdf` |\n| 9 | Completion report | Summary |\n\n### Step 7: Image Generation\n\n**Pick a backend once per session** using the `## Image Generation Tools` rule at the top. If the backend is a repo skill (e.g., `baoyu-image-gen`), read its `SKILL.md` and use its documented interface rather than its scripts.\n\n**7.1 Character sheet** — generate it (to `characters/characters.png`, aspect `4:3`) when the comic is multi-page with recurring characters. Skip for simple presets (e.g., four-panel minimalist) or single-page comics. Compress to JPEG before use-as-`--ref` (`sips -s format jpeg -s formatOptions 80 …` on macOS, `pngquant --quality=65-80 …` elsewhere) to avoid payload failures. The prompt file at `characters/characters.md` must exist before invoking the backend.\n\n**7.2 Pages** — each page's prompt MUST already be at `prompts/NN-{cover|page}-[slug].md` before invoking the backend; the file is the reproducibility record. Strategy depends on the character sheet:\n\n| Character sheet | Backend `--ref` | Strategy |\n|-----------------|-----------------|----------|\n| Exists | Supported | Pass sheet as `--ref` on every page |\n| Exists | Not supported | Prepend character descriptions to every prompt file |\n| Skipped | — | All descriptions inline in prompt |\n\n**Execution strategy**: Generate the character sheet first when needed. Then build the selected page task list from saved prompt files and dispatch pages in batches per the `## Batch Generation Policy`: backend native batch first, runtime parallel tool calls second, sequential only as fallback. `--regenerate N` and `--images-only` apply the same batching rules to the selected existing prompts.\n\n**Backup rule**: existing `prompts/…md` and `…png` files → rename with `-backup-YYYYMMDD-HHMMSS` suffix before regenerating. Aspect ratio from storyboard (default `3:4`; preset may override).\n\n**`--ref` failure recovery**: compress sheet → retry → still fails → drop `--ref` and embed character descriptions in the prompt text.\n\nFull step-by-step workflow (analysis, storyboard, review gates, regeneration variants): [references/workflow.md](references/workflow.md).\n\n### EXTEND.md Paths ⛔ BLOCKING\n\nIf EXTEND.md is not found, first-time setup is **blocking** — complete it before any content analysis or style/tone questions.\n\n| Priority | Path | Scope |\n|----------|------|-------|\n| 1 | `.baoyu-skills/baoyu-comic/EXTEND.md` | Project |\n| 2 | `$HOME/.baoyu-skills/baoyu-comic/EXTEND.md` | User home |\n\n| Result | Action |\n|--------|--------|\n| Found | Read, parse, display summary → continue |\n| Not found | ⛔ Run first-time setup ([references/config/first-time-setup.md](references/config/first-time-setup.md)) → save EXTEND.md → continue |\n\n**EXTEND.md supports**: watermark, preferred art/tone/layout, custom style definitions, character presets, language preference, preferred image backend, generation batch size. Schema: [references/config/preferences-schema.md](references/config/preferences-schema.md).\n\n## References\n\n**Core Templates**:\n- [analysis-framework.md](references/analysis-framework.md) - Deep content analysis\n- [character-template.md](references/character-template.md) - Character definition format\n- [storyboard-template.md](references/storyboard-template.md) - Storyboard structure\n- [ohmsha-guide.md](references/ohmsha-guide.md) - Ohmsha manga specifics\n\n**Style Definitions**:\n- `references/art-styles/` - Art styles (ligne-claire, manga, realistic, ink-brush, chalk, minimalist)\n- `references/tones/` - Tones (neutral, warm, dramatic, romantic, energetic, vintage, action)\n- `references/presets/` - Presets with special rules (ohmsha, wuxia, shoujo, concept-story, four-panel)\n- `references/layouts/` - Layouts (standard, cinematic, dense, splash, mixed, webtoon, four-panel)\n\n**Workflow**:\n- [workflow.md](references/workflow.md) - Full workflow details\n- [auto-selection.md](references/auto-selection.md) - Content signal analysis\n- [partial-workflows.md](references/partial-workflows.md) - Partial workflow options\n\n**Config**:\n- [config/preferences-schema.md](references/config/preferences-schema.md) - EXTEND.md schema\n- [config/first-time-setup.md](references/config/first-time-setup.md) - First-time setup\n- [config/watermark-guide.md](references/config/watermark-guide.md) - Watermark configuration\n\n## Page Modification\n\n| Action | Steps |\n|--------|-------|\n| **Edit** | **Update prompt file FIRST** → `--regenerate N` → Regenerate PDF |\n| **Add** | Create prompt at position → Generate with character ref → Renumber subsequent → Update storyboard → Regenerate PDF |\n| **Delete** | Remove files → Renumber subsequent → Update storyboard → Regenerate PDF |\n\n**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.\n\nText correction policy:\n\n- If dialogue, sound effects, panel labels, or any other rendered text is misspelled, garbled, hard to read, or visually weak, do not patch the bitmap with code.\n- For text-correction regenerations, write a new prompt file and a new output path so the flawed candidate is preserved for comparison.\n- Post-processing is limited to crop, resize, compression, or format conversion that does not alter text or the main composition.\n\n## Notes\n\n- Image generation: 10-30 seconds per page\n- Auto-retry once on generation failure\n- Use stylized alternatives for sensitive public figures\n- Maintain style consistency via session ID\n- **Step 2 confirmation required** - do not skip\n- **Steps 4/6 conditional** - only if user requested in Step 2\n- **Step 7.1 character sheet** - recommended for multi-page comics, optional for simple presets\n- **Step 7.2 character reference** - use `--ref` if sheet exists; compress/convert on failure; fall back to prompt-only\n- Watermark/language configured once in EXTEND.md\n\n## Changing Preferences\n\nEXTEND.md lives at `.baoyu-skills/baoyu-comic/EXTEND.md` (project) or `~/.baoyu-skills/baoyu-comic/EXTEND.md` (user). Three ways to change it:\n\n- **Edit directly** — open EXTEND.md and change fields. Full schema: `references/config/preferences-schema.md`.\n- **Reconfigure interactively** — delete EXTEND.md (or ask \"reconfigure baoyu-comic preferences\" / \"重新配置\"). The next run re-triggers first-time setup.\n- **Common one-line edits**:\n  - `preferred_image_backend: auto` — default; runtime-native tool wins, falls back to the only installed backend, asks only if multiple non-native are present.\n  - `preferred_image_backend: codex-imagegen` — pin to Codex's built-in.\n  - `preferred_image_backend: baoyu-image-gen` — pin to the baoyu-image-gen skill.\n  - `preferred_image_backend: ask` — confirm backend every run.\n  - `generation_batch_size: 4` — default number of page images to render concurrently when the backend/runtime supports batch or parallel generation.\n  - `watermark.enabled: true`, `preferred_art`, `preferred_tone`, `preferred_layout`, `language` — shift the auto-selection defaults and cosmetic choices.\n\nFile v1.117.3:_meta.json\n\n{\n  \"ownerId\": \"kn7csrrndw79hpke5d0gsnx93d82k67r\",\n  \"slug\": \"baoyu-comic\",\n  \"version\": \"1.117.3\",\n  \"publishedAt\": 1779665854943\n}\n\nFile v1.117.3:references/analysis-framework.md\n\n# Comic Content Analysis Framework\n\nDeep analysis framework for transforming source content into effective visual storytelling.\n\n## Purpose\n\nBefore creating a comic, thoroughly analyze the source material to:\n- Identify the target audience and their needs\n- Determine what value the comic will deliver\n- Extract narrative potential for visual storytelling\n- Plan character arcs and key moments\n\n## Analysis Dimensions\n\n### 1. Core Content (Understanding \"What\")\n\n**Central Message**\n- What is the single most important idea readers should take away?\n- Can you express it in one sentence?\n\n**Key Concepts**\n- What are the essential concepts readers must understand?\n- How should these concepts be visualized?\n- Which concepts need simplified explanations?\n\n**Content Structure**\n- How is the source material organized?\n- What is the natural narrative arc?\n- Where are the climax and turning points?\n\n**Evidence & Examples**\n- What concrete examples, data, or stories support the main ideas?\n- Which examples translate well to visual panels?\n- What can be shown rather than told?\n\n### 2. Context & Background (Understanding \"Why\")\n\n**Source Origin**\n- Who created this content? What is their perspective?\n- What was the original purpose?\n- Is there bias to be aware of?\n\n**Historical/Cultural Context**\n- When and where does the story take place?\n- What background knowledge do readers need?\n- What period-specific visual elements are required?\n\n**Underlying Assumptions**\n- What does the source assume readers already know?\n- What implicit beliefs or values are present?\n- Should the comic challenge or reinforce these?\n\n### 3. Audience Analysis\n\n**Primary Audience**\n- Who will read this comic?\n- What is their existing knowledge level?\n- What are their interests and motivations?\n\n**Secondary Audiences**\n- Who else might benefit from this comic?\n- How might their needs differ?\n\n**Reader Questions**\n- What questions will readers have?\n- What misconceptions might they bring?\n- What \"aha moments\" can we create?\n\n### 4. Value Proposition\n\n**Knowledge Value**\n- What will readers learn?\n- What new perspectives will they gain?\n- How will this change their understanding?\n\n**Emotional Value**\n- What emotions should readers feel?\n- What connections will they make with characters?\n- What will make this memorable?\n\n**Practical Value**\n- Can readers apply what they learn?\n- What actions might this inspire?\n- What conversations might it spark?\n\n### 5. Narrative Potential\n\n**Story Arc Candidates**\n- What natural narratives exist in the content?\n- Where is the conflict or tension?\n- What transformations occur?\n\n**Character Potential**\n- Who are the key figures?\n- What are their motivations and obstacles?\n- How do they change throughout?\n\n**Visual Opportunities**\n- What scenes have strong visual potential?\n- Where can abstract concepts become concrete images?\n- What metaphors can be visualized?\n\n**Dramatic Moments**\n- What are the breakthrough/revelation moments?\n- Where are the emotional peaks?\n- What creates tension and release?\n\n### 6. Adaptation Considerations\n\n**What to Keep**\n- Essential facts and ideas\n- Key quotes or moments\n- Core emotional beats\n\n**What to Simplify**\n- Complex explanations\n- Dense technical details\n- Lengthy descriptions\n\n**What to Expand**\n- Brief mentions that deserve more attention\n- Implied emotions or relationships\n- Visual details not in source\n\n**What to Omit**\n- Tangential information\n- Redundant examples\n- Content that doesn't serve the narrative\n\n## Output Format\n\nAnalysis results should be saved to `analysis.md` with:\n\n1. **YAML Front Matter**: Metadata (title, topic, time_span, source_language, user_language, aspect_ratio, recommended_page_count, recommended_art, recommended_tone, recommended_layout)\n2. **Target Audience**: Primary, secondary, tertiary audiences with their needs\n3. **Value Proposition**: What readers will gain (knowledge, emotional, practical)\n4. **Core Themes**: Table with theme, narrative potential, visual opportunity\n5. **Key Figures & Story Arcs**: Character profiles with arcs, visual identity, key moments\n6. **Content Signals**: Style and layout recommendations based on content type\n7. **Recommended Approaches**: Narrative approaches ranked by suitability\n\n### YAML Front Matter Example\n\n```yaml\n---\ntitle: \"Alan Turing: The Father of Computing\"\ntopic: alan-turing-biography\ntime_span: 1912-1954\nsource_language: en\nuser_language: zh  # From EXTEND.md or detected\naspect_ratio: \"3:4\"\nrecommended_page_count: 16\nrecommended_art: ligne-claire  # ligne-claire|manga|realistic|ink-brush|chalk\nrecommended_tone: neutral      # neutral|warm|dramatic|romantic|energetic|vintage|action\nrecommended_layout: mixed      # standard|cinematic|dense|splash|mixed|webtoon\n---\n```\n\n### Language Fields\n\n| Field | Description |\n|-------|-------------|\n| `source_language` | Detected language of source content |\n| `user_language` | Output language for comic (from EXTEND.md > --lang > source_language) |\n\n## Analysis Checklist\n\nBefore proceeding to storyboard:\n\n- [ ] Can I state the core message in one sentence?\n- [ ] Do I know exactly who will read this comic?\n- [ ] Have I identified at least 3 ways this comic provides value?\n- [ ] Are there clear protagonists with compelling arcs?\n- [ ] Have I found at least 5 visually powerful moments?\n- [ ] Do I understand what to keep, simplify, expand, and omit?\n- [ ] Have I identified the emotional peaks and valleys?\n\nFile v1.117.3:references/art-styles/chalk.md\n\n# chalk\n\n粉笔画风 - Chalkboard aesthetic with hand-drawn warmth\n\n## Overview\n\nClassic classroom chalkboard aesthetic with hand-drawn chalk illustrations. Nostalgic educational feel with imperfect, sketchy lines that capture the warmth of traditional teaching.\n\n## Line Work\n\n- Sketchy, imperfect hand-drawn lines\n- Chalk texture on all strokes\n- Varying line weight from chalk pressure\n- Soft edges, no sharp digital lines\n- Visible chalk dust effects\n\n## Character Design\n\n- Simplified, friendly character designs\n- Stick figures to semi-detailed range\n- Expressive through simple gestures\n- Approachable, non-intimidating\n- Educational presenter style\n\n## Background\n\n- Chalkboard Black (#1A1A1A) or Dark Green-Black (#1C2B1C)\n- Realistic chalkboard texture\n- Subtle scratches and dust particles\n- Faint eraser marks for authenticity\n- Wooden frame border optional\n\n## Typography\n\n- Hand-drawn chalk lettering style\n- Visible chalk texture on text\n- Imperfect baseline adds authenticity\n- White or bright colored chalk for emphasis\n\n## Visual Elements\n\n- Hand-drawn chalk illustrations\n- Chalk dust effects around elements\n- Doodles: stars, arrows, underlines, circles\n- Mathematical formulas and diagrams\n- Eraser smudges and chalk residue\n- Stick figures and simple icons\n- Connection lines with hand-drawn feel\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Background | Chalkboard Black | #1A1A1A |\n| Alt Background | Green-Black | #1C2B1C |\n| Primary Text | Chalk White | #F5F5F5 |\n| Accent 1 | Chalk Yellow | #FFE566 |\n| Accent 2 | Chalk Pink | #FF9999 |\n| Accent 3 | Chalk Blue | #66B3FF |\n| Accent 4 | Chalk Green | #90EE90 |\n| Accent 5 | Chalk Orange | #FFB366 |\n\n## Style Rules\n\n### Do\n- Maintain authentic chalk texture on all elements\n- Use imperfect, hand-drawn quality throughout\n- Add subtle chalk dust and smudge effects\n- Create visual hierarchy with color variety\n- Include playful doodles and annotations\n\n### Don't\n- Use perfect geometric shapes\n- Create clean digital-looking lines\n- Add photorealistic elements\n- Use gradients or glossy effects\n\n## Quality Markers\n\n- ✓ Authentic chalk texture throughout\n- ✓ Imperfect, hand-drawn quality\n- ✓ Readable despite sketchy style\n- ✓ Nostalgic classroom feel\n- ✓ Effective color hierarchy\n- ✓ Playful educational aesthetic\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Classic educational |\n| warm | ✓✓ | Nostalgic feel |\n| dramatic | ✗ | Style mismatch |\n| vintage | ✓ | Old school feel |\n| romantic | ✗ | Style mismatch |\n| energetic | ✓✓ | Fun learning |\n| action | ✗ | Style mismatch |\n\n## Best For\n\nEducational content, tutorials, classroom themes, teaching materials, workshops, informal learning, knowledge sharing\n\nFile v1.117.3:references/art-styles/ink-brush.md\n\n# ink-brush\n\n水墨画风 - Chinese ink brush aesthetics with dynamic strokes\n\n## Overview\n\nTraditional Chinese ink brush painting style adapted for comics. Combines calligraphic brush strokes with ink wash effects. Creates atmospheric, artistic visuals rooted in East Asian aesthetics.\n\n## Line Work\n\n- 2-3px dynamic brush strokes with varying weight\n- Ink wash effects, traditional Chinese brush feel\n- Bold, confident strokes with sharp edges\n- Flowing lines for fabric and hair\n- Pressure-sensitive stroke variation\n\n## Character Design\n\n- Realistic human proportions (7.5-8 head heights)\n- Defined features with ink brush definition\n- Dynamic poses capturing movement\n- Flowing hair and clothing in motion\n- Traditional attire options (robes, hanfu)\n- Intense, expressive faces\n\n## Brush Techniques\n\n| Technique | Usage |\n|-----------|-------|\n| Bold strokes | Character outlines |\n| Fine lines | Details, hair |\n| Ink wash | Atmosphere, shadows |\n| Dry brush | Texture, aging |\n| Splatter | Impact, drama |\n\n## Background Treatment\n\n- Dramatic landscapes: mountains, waterfalls, temples\n- Ink wash atmospheric effects\n- Misty, layered depth\n- Traditional architecture elements\n- High contrast silhouettes\n- Negative space as design element\n\n## Color Approach\n\n- Ink gradients as primary\n- Limited accent colors\n- Traditional Chinese palette\n- Atmospheric color washes\n- High contrast compositions\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary | Deep black ink | #1A1A1A |\n| Accent | Crimson red | #8B0000 |\n| Accent | Imperial gold | #D4AF37 |\n| Skin | Natural tan | #D4A574 |\n| Background | Misty gray | #9CA3AF |\n| Background | Earth tone | #8B7355 |\n| Wash | Ink gradient | #2D3748 |\n\n## Visual Elements\n\n- Calligraphic text integration\n- Seal stamps (optional)\n- Ink splatter effects\n- Flowing fabric trails\n- Atmospheric mist\n- Mountain silhouettes\n\n## Quality Markers\n\n- ✓ Dynamic brush stroke quality\n- ✓ Authentic ink wash atmosphere\n- ✓ High contrast compositions\n- ✓ Flowing movement in fabric/hair\n- ✓ Traditional aesthetic elements\n- ✓ Atmospheric depth\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓ | Contemplative stories |\n| warm | ✓ | Nostalgic, gentle |\n| dramatic | ✓✓ | High contrast |\n| vintage | ✓✓ | Historical pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✗ | Too refined |\n| action | ✓✓ | Martial arts |\n\n## Best For\n\nChinese historical stories, martial arts, traditional tales, contemplative narratives, artistic adaptations\n\nFile v1.117.3:references/art-styles/ligne-claire.md\n\n# ligne-claire\n\n清线画风 - Uniform lines, flat colors, European comic tradition\n\n## Overview\n\nClassic European comic style originating from Hergé's Tintin. Characterized by clean, uniform outlines and flat color fills without gradients. Creates a timeless, accessible aesthetic suitable for educational and narrative content.\n\n## Line Work\n\n- Uniform, clean outlines with consistent weight (2px)\n- No hatching or cross-hatching for shading\n- Sharp, precise edges on all elements\n- Black ink outlines on all figures and objects\n- Shadows indicated through flat color areas, not line techniques\n\n## Character Design\n\n- Slightly stylized/cartoonish characters with realistic proportions\n- Distinctive, recognizable facial features\n- Expressive faces with clear emotions\n- Period-appropriate clothing with attention to detail\n- Consistent character appearance across panels\n- 6-7 head height proportions\n\n## Background Treatment\n\n- Detailed, realistic backgrounds with architectural accuracy\n- Period-specific props and technology\n- Clear spatial depth and perspective\n- Environmental storytelling through details\n- Contrast between simplified characters and detailed backgrounds\n\n## Color Approach\n\n- Flat colors without gradients (true to Ligne Claire tradition)\n- Limited palette per page for cohesion\n- Colors support narrative mood\n- Consistent lighting logic within scenes\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary Blue | Clean blue | #3182CE |\n| Primary Red | Classic red | #E53E3E |\n| Primary Yellow | Warm yellow | #ECC94B |\n| Skin | Warm tan | #F7CFAE |\n| Background Light | Light cream | #FFFAF0 |\n| Background Sky | Sky blue | #BEE3F8 |\n\n## Quality Markers\n\n- ✓ Clean, uniform line weight throughout\n- ✓ Flat colors without gradients\n- ✓ Detailed backgrounds, stylized characters\n- ✓ Clear panel borders and reading flow\n- ✓ Hand-drawn text style\n- ✓ Proper perspective in environments\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Classic combination |\n| warm | ✓✓ | Nostalgic stories |\n| dramatic | ✓ | Works with high contrast |\n| vintage | ✓ | Period pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✓ | Lighter stories |\n| action | ✗ | Lacks dynamic lines |\n\n## Best For\n\nEducational content, balanced narratives, biography comics, historical stories\n\nFile v1.117.3:references/art-styles/manga.md\n\n# manga\n\n日漫画风 - Anime/manga aesthetics with expressive characters\n\n## Overview\n\nJapanese manga art style characterized by large expressive eyes, dynamic poses, and visual emotion indicators. Versatile style that works across genres from educational to romantic to action.\n\n## Line Work\n\n- Clean, smooth lines (1.5-2px)\n- Expressive weight variation for emphasis\n- Smooth curves, dynamic strokes\n- Speed lines and motion effects available\n- Screen tone effects for atmosphere\n\n## Character Design\n\n- Anime/manga proportions: larger eyes, expressive faces\n- 5-7 head height proportions (varies by sub-style)\n- Clear emotional indicators (！, ？, sweat drops, sparkles)\n- Dynamic poses and gestures\n- Detailed hair with individual strands\n- Fashionable clothing with natural folds\n\n## Eye Styles\n\n| Type | Description |\n|------|-------------|\n| Standard | Medium-large, 2-3 highlights |\n| Educational | Friendly, approachable eyes |\n| Dramatic | Intense, detailed irises |\n| Cute | Very large, sparkly eyes |\n\n## Background Treatment\n\n- Simplified during dialogue/explanation\n- Detailed for establishing shots\n- Screen tone gradients for mood\n- Abstract backgrounds for emotional moments\n- Technical diagrams styled as displays\n\n## Color Approach\n\n- Clean, bright anime colors\n- Soft gradients on skin\n- Vibrant palette options\n- Light and shadow with soft transitions\n- Color coding for character identification\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary Blue | Bright blue | #4299E1 |\n| Primary Orange | Warm orange | #ED8936 |\n| Primary Green | Soft green | #68D391 |\n| Skin | Anime warm | #FEEBC8 |\n| Background | Clean white | #FFFFFF |\n| Highlight | Golden | #FFD700 |\n\n## Visual Elements\n\n- Speech bubbles: rounded (normal), spiky (excitement)\n- Sound effects integrated visually\n- Emotion symbols (sweat drops, anger marks, hearts)\n- Speed lines and motion blur\n- Sparkle and glow effects\n\n## Quality Markers\n\n- ✓ Expressive character faces\n- ✓ Clean, consistent line work\n- ✓ Dynamic poses and compositions\n- ✓ Appropriate use of manga conventions\n- ✓ Readable panel flow\n- ✓ Consistent character designs\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Educational manga |\n| warm | ✓ | Slice of life |\n| dramatic | ✓ | Intense moments |\n| romantic | ✓✓ | Shoujo style |\n| energetic | ✓✓ | Shonen style |\n| vintage | ✗ | Style mismatch |\n| action | ✓✓ | Battle manga |\n\n## Best For\n\nEducational tutorials, romance, action, coming-of-age, technical explanations, youth-oriented content\n\nFile v1.117.3:references/art-styles/minimalist.md\n\n# minimalist\n\n极简画风 - Clean black line art, limited spot color, simplified stick-figure characters\n\n## Overview\n\nMinimalist cartoon illustration characterized by clean black line art on white background with very limited spot color for emphasis. Characters are simplified to near-stick-figure abstraction, focusing on gesture and concept rather than anatomical detail. Designed for business allegory, quick-read educational content, and concept illustration.\n\n## Line Work\n\n- Clean, uniform black lines (1.5-2px)\n- No hatching, cross-hatching, or shading techniques\n- Minimal detail — every line serves a purpose\n- Bold outlines for characters, thinner lines for props/labels\n- No decorative flourishes or ornamental lines\n\n## Character Design\n\n- Highly simplified, stick-figure-like business characters\n- Circle or oval heads with minimal facial features (dot eyes, simple line mouth)\n- Body as simple geometric shapes or line constructions\n- Distinguishing features through props only (tie, hat, briefcase, glasses)\n- No anatomical detail — expressive through posture and gesture\n- 4-5 head height proportions (squat, iconic)\n\n## Background Treatment\n\n- Mostly blank/white — negative space is a design element\n- Minimal environmental cues (a line for ground, simple desk outline)\n- Concept labels and text annotations replace detailed environments\n- Icons and symbols over realistic rendering\n- No perspective or spatial depth\n\n## Color Approach\n\n- Primarily black and white (90%+ of the image)\n- 1-2 spot accent colors for emphasis on key concepts\n- Accent color used sparingly: highlighting key objects, text labels, concept indicators\n- No gradients, no shading, no color fills on backgrounds\n- Color draws the eye to the most important element in each panel\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary | Black ink | `#1A1A1A` |\n| Background | Clean white | `#FFFFFF` |\n| Accent 1 | Spot orange | `#FF6B35` |\n| Accent 2 | Spot blue (optional) | `#3182CE` |\n| Text labels | Dark gray | `#4A4A4A` |\n| Panel border | Medium gray | `#666666` |\n\n## Visual Elements\n\n- Text labels with accent-color backgrounds or underlines for key terms\n- Simple icons: arrows, circles, checkmarks, crosses\n- Concept highlight boxes with spot color\n- Minimal speech bubbles (simple oval or rectangle, thin black outline)\n- No sound effects, no motion lines, no screen tones\n\n## Quality Markers\n\n- ✓ Clean, purposeful line work with no unnecessary detail\n- ✓ 90%+ black-and-white with strategic spot color\n- ✓ Simplified characters readable at small sizes\n- ✓ Text labels integrated naturally into panels\n- ✓ Strong negative space usage\n- ✓ Every element serves the narrative point\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Ideal for business/educational content |\n| warm | ✓ | Works for gentle stories, slight warmth in accent |\n| energetic | ✓ | Works for punchy, high-energy content |\n| dramatic | ✗ | Style too stripped down for dramatic intensity |\n| vintage | ✗ | Minimalist aesthetic conflicts with aged/textured look |\n| romantic | ✗ | No capacity for decorative/soft elements |\n| action | ✗ | No dynamic line capability for speed/impact |\n\n## Best For\n\nBusiness allegory, management fables, short concept illustration, four-panel comic strips, quick-insight education, social media content\n\nFile v1.117.3:references/art-styles/realistic.md\n\n# realistic\n\n写实画风 - Digital painting with realistic proportions and lighting\n\n## Overview\n\nFull-color realistic manga style using digital painting techniques. Features anatomically accurate characters, rich gradients, and detailed environmental rendering. Sophisticated aesthetic for mature audiences.\n\n## Line Work\n\n- Clean, precise outlines with clear contours\n- Uniform line weight for character definition\n- No excessive hatching - rely on color for depth\n- Smooth curves and realistic anatomical lines\n- Ligne Claire influence: clean but not simplified\n\n## Character Design\n\n- Realistic human proportions (7-8 head heights)\n- Anatomically accurate features and expressions\n- Detailed facial structure without exaggeration\n- Natural poses and body language\n- Consistent appearance across panels\n- Subtle expressions rather than manga-style\n\n## Rendering Style\n\n- Full-color digital painting with rich gradients\n- Soft shadow transitions on skin and fabric\n- Realistic material textures (glass, liquid, fabric, wood)\n- Detailed hair with natural shine and volume\n- Environmental lighting affects all elements\n- NOT flat cel-shading - smooth color blending\n\n## Background Treatment\n\n- Highly detailed, realistic environments\n- Accurate perspective and spatial depth\n- Atmospheric lighting (warm indoor, cool outdoor)\n- Professional settings rendered with precision\n- Props and objects with realistic textures\n\n## Color Approach\n\n- Rich gradients for depth and volume\n- Realistic lighting with warm/cool contrast\n- Material-specific rendering\n- Subtle color temperature shifts\n- Professional, sophisticated palette\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Skin Light | Natural warm | #F5D6C6 |\n| Skin Shadow | Warm shadow | #E8C4B0 |\n| Environment | Warm wood | #8B7355 |\n| Environment Cool | Cool stone | #9CA3AF |\n| Accent | Wine red | #722F37 |\n| Accent Gold | Gold | #D4AF37 |\n| Light Warm | Amber | #FFB347 |\n| Light Cool | Cool blue | #B0C4DE |\n\n## Quality Markers\n\n- ✓ Anatomically accurate proportions\n- ✓ Smooth color gradients (not flat fills)\n- ✓ Realistic material textures\n- ✓ Detailed, atmospheric backgrounds\n- ✓ Natural lighting with soft shadows\n- ✓ Expressive but subtle expressions\n- ✓ Professional aesthetic\n- ✓ Clean speech bubbles\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Professional content |\n| warm | ✓✓ | Nostalgic stories |\n| dramatic | ✓✓ | High drama |\n| vintage | ✓✓ | Period pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✗ | Too refined |\n| action | ✓ | Serious action |\n\n## Best For\n\nProfessional topics (wine, food, business), lifestyle content, adult narratives, documentary-style, mature educational guides\n\nFile v1.117.3:references/auto-selection.md\n\n# Auto Selection\n\nContent signals determine default art + tone + layout (or preset).\n\n## Content Signal Matrix\n\n| Content Signals | Art Style | Tone | Layout | Preset |\n|-----------------|-----------|------|--------|--------|\n| Tutorial, how-to, beginner | manga | neutral | webtoon | **ohmsha** |\n| Computing, AI, programming | manga | neutral | dense | **ohmsha** |\n| Technical explanation, educational | manga | neutral | webtoon | **ohmsha** |\n| Pre-1950, classical, ancient | realistic | vintage | cinematic | - |\n| Personal story, mentor | ligne-claire | warm | standard | - |\n| Psychology, motivation, self-help, coaching | manga | warm | standard | **concept-story** |\n| Business narrative, management, leadership | manga | warm | standard | **concept-story** |\n| Conflict, breakthrough | (inherit) | dramatic | splash | - |\n| Wine, food, lifestyle | realistic | neutral | cinematic | - |\n| Martial arts, wuxia, xianxia | ink-brush | action | splash | **wuxia** |\n| Romance, love, school life | manga | romantic | standard | **shoujo** |\n| Business allegory, fable, parable, short insight, 四格 | minimalist | neutral | four-panel | **four-panel** |\n| Biography, balanced | ligne-claire | neutral | mixed | - |\n\n## Preset Recommendation Rules\n\n**When preset is recommended**: Load `presets/{preset}.md` and apply all special rules.\n\n### ohmsha\n- **Triggers**: Tutorial, technical, educational, computing, programming, how-to, beginner\n- **Special rules**: Visual metaphors, NO talking heads, gadget reveals, Doraemon-style characters\n- **Base**: manga + neutral + webtoon/dense\n\n### wuxia\n- **Triggers**: Martial arts, wuxia, xianxia, cultivation, swordplay\n- **Special rules**: Qi effects, combat visuals, atmospheric elements\n- **Base**: ink-brush + action + splash\n\n### shoujo\n- **Triggers**: Romance, love story, school life, emotional drama\n- **Special rules**: Decorative elements, eye details, romantic beats\n- **Base**: manga + romantic + standard\n\n### concept-story\n- **Triggers**: Psychology, motivation, self-help, business narrative, management, leadership, personal growth, coaching, soft skills, abstract concept through story\n- **Special rules**: Visual symbol system, growth arc, dialogue+action balance, original characters\n- **Base**: manga + warm + standard\n\n### four-panel\n- **Triggers**: Business allegory, fable, parable, short insight, four-panel, 四格, 四格漫画, single-page comic, minimalist comic strip\n- **Special rules**: Strict 起承转合 4-panel structure, B&W + spot color, simplified stick-figure characters, single-page story\n- **Base**: minimalist + neutral + four-panel\n\n## Compatibility Matrix\n\nArt Style × Tone combinations work best when matched appropriately:\n\n| Art Style | ✓✓ Best | ✓ Works | ✗ Avoid |\n|-----------|---------|---------|---------|\n| ligne-claire | neutral, warm | dramatic, vintage, energetic | romantic, action |\n| manga | neutral, romantic, energetic, action | warm, dramatic | vintage |\n| realistic | neutral, warm, dramatic, vintage | action | romantic, energetic |\n| ink-brush | neutral, dramatic, action, vintage | warm | romantic, energetic |\n| chalk | neutral, warm, energetic | vintage | dramatic, action, romantic |\n| minimalist | neutral | warm, energetic | dramatic, vintage, romantic, action |\n\n**Note**: Art Style × Tone × Layout can be freely combined. Incompatible combinations work but may produce unexpected results.\n\n## Priority Order\n\n1. User-specified options (`--art`, `--tone`, `--style`)\n2. EXTEND.md defaults\n3. Content signal analysis → auto-selection\n4. Fallback: ligne-claire + neutral + standard\n\nFile v1.117.3:references/base-prompt.md\n\nCreate a knowledge biography comic page following these guidelines:\n\n## Image Specifications\n\n- **Type**: Comic book page with multiple panels\n- **Orientation**: Portrait (vertical)\n- **Aspect Ratio**: 2:3\n- **Style**: See style-specific reference for visual guidelines\n\n## Panel Structure\n\n### Panel Borders\n- Clean black lines (1-2px) around each panel\n- White gutters between panels (8-12px)\n- Panels arranged for clear reading flow\n- Variety in panel sizes for visual rhythm\n\n### Panel Composition\n- Clear focal points in each panel\n- Proper use of foreground, midground, background\n- Camera angles vary: eye level, bird's eye, low angle, close-up, wide shot\n- Action flows logically between panels\n- Negative space used intentionally\n\n## Text Elements\n\n### Speech Bubbles\n- **Dialogue**: Oval/elliptical bubbles with pointed tails\n- White fill with thin black outline\n- Tail points clearly to speaker\n- Hand-lettered style font (not computer-generated)\n\n### Narrator Boxes\n- **Fourth Wall/Narrator**: Rectangular boxes\n- Often positioned at panel edges (top or bottom)\n- Slightly different fill color (cream or light yellow)\n- Used for commentary, time jumps, explanations\n\n### Thought Bubbles\n- Cloud-shaped with bubble trail leading to thinker\n- Softer outline than speech bubbles\n- For internal monologue\n\n### Caption Bars\n- Rectangular bars at panel edges\n- Time and place information\n- \"Meanwhile...\", \"Three years later...\" type transitions\n- Darker fill with white text, or vice versa\n\n### Typography\n- Hand-drawn lettering style throughout\n- Bold for emphasis and key terms\n- Consistent letter sizing\n- Chinese text: use full-width punctuation \"\"，。！\n- Clear hierarchy: titles > dialogue > captions\n\n## Scientific/Concept Visualization\n\nWhen depicting abstract concepts:\n\n| Concept | Visual Metaphor |\n|---------|----------------|\n| Neural networks | Glowing nodes connected by clean lines |\n| Data flow | Luminous particles along simple paths |\n| Algorithms | Geometric patterns, building blocks |\n| Logic/proof | Interlocking puzzle pieces |\n| Discovery | Light breaking through darkness |\n| Uncertainty | Forking paths, question marks |\n| Time | Clock motifs, calendar pages |\n\n- Integrate diagrams naturally into narrative panels\n- Use inset panels or thought-bubble style for explanations\n- Simplified iconography over realistic depiction\n\n## Fourth Wall / Narrator Character\n\nWhen depicting narrator characters addressing the reader:\n- Character may look directly out of panel\n- Can appear in \"present day\" framing scenes\n- Distinct visual treatment from main timeline\n- Often at page edges or in dedicated panels\n- May comment on or question the events shown\n\n## Historical Accuracy\n\n- Research period-specific details: costumes, technology, architecture\n- Show aging naturally for characters across time periods\n- Iconic items and locations rendered recognizably\n- Balance accuracy with stylization\n\n## Language\n\n- All text in Chinese (中文) unless source material is in another language\n- Use Chinese full-width punctuation: \"\"，。！\n\n---\n\nPlease generate the comic page based on the content provided below:\n\nFile v1.117.3:references/character-template.md\n\n# Character Definition Template\n\n## Character Document Format\n\nCreate `characters/characters.md` with the following structure:\n\n```markdown\n# Character Definitions - [Comic Title]\n\n**Style**: [selected style]\n**Art Direction**: [Ligne Claire / Manga / etc.]\n\n---\n\n## Character 1: [Name]\n\n**Role**: [Protagonist / Mentor / Antagonist / Narrator]\n**Age**: [approximate age or age range in story]\n\n**Appearance**:\n- Face shape: [oval/square/round]\n- Hair: [color, style, length]\n- Eyes: [color, shape, distinctive features]\n- Build: [height, body type]\n- Distinguishing features: [glasses, beard, scar, etc.]\n\n**Costume**:\n- Default outfit: [detailed description]\n- Color palette: [primary colors for this character]\n- Accessories: [hat, bag, tools, etc.]\n\n**Expression Range**:\n- Neutral: [description]\n- Happy/Excited: [description]\n- Thinking/Confused: [description]\n- Determined: [description]\n\n**Visual Reference Notes**:\n[Any specific artistic direction]\n\n---\n\n## Character 2: [Name]\n...\n```\n\n## Reference Sheet Image Prompt\n\nAfter character definitions, include a prompt for generating the reference sheet:\n\n```markdown\n## Reference Sheet Prompt\n\nCharacter reference sheet in [style] style, clean lines, flat colors:\n\n[ROW 1 - Character Name]:\n- Front view: [detailed description]\n- 3/4 view: [description]\n- Expression sheet: Neutral | Happy | Focused | Worried\n\n[ROW 2 - Character Name]:\n...\n\nCOLOR PALETTE:\n- [Character 1]: [colors]\n- [Character 2]: [colors]\n\nWhite background, clear labels under each character.\n```\n\n## Example: Turing Biography\n\n```markdown\n# Character Definitions - The Imitation Game\n\n**Style**: classic (Ligne Claire)\n**Art Direction**: Clean lines, muted colors, period-accurate details\n\n---\n\n## Character 1: Alan Turing\n\n**Role**: Protagonist\n**Age**: 25-40 (varies across story)\n\n**Appearance**:\n- Face shape: Oval, slightly angular\n- Hair: Dark brown, wavy, slightly disheveled\n- Eyes: Deep-set, intense gaze\n- Build: Tall, lean, slightly awkward posture\n- Distinguishing features: Prominent brow, thoughtful expression\n\n**Costume**:\n- Default outfit: Tweed jacket with elbow patches, white shirt, no tie\n- Color palette: Muted browns, navy blue, cream\n- Accessories: Occasionally a pipe, papers/notebooks\n\n**Expression Range**:\n- Neutral: Thoughtful, slightly distant\n- Happy/Excited: Eureka moment, eyes bright, subtle smile\n- Thinking/Confused: Furrowed brow, looking at abstract space\n- Determined: Jaw set, focused eyes\n\n---\n\n## Character 2: The Bombe Machine\n\n**Role**: Supporting (anthropomorphized)\n**Appearance**:\n- Large brass and wood cabinet\n- Dial \"eyes\" that can express states\n- Paper tape \"mouth\"\n- Indicator lights for emotions\n\n**Expression Range**:\n- Processing: Spinning dials, humming\n- Success: Lights up warmly\n- Stuck: Smoke wisps, stuttering\n\n---\n\n## Reference Sheet Prompt\n\nCharacter reference sheet in Ligne Claire style, clean lines, flat colors:\n\nTOP ROW - Alan Turing:\n- Front view: Young man, 30s, short dark wavy hair, thoughtful expression, wearing tweed jacket with elbow patches, white shirt\n- 3/4 view: Same character, slight smile, showing profile of nose\n- Expression sheet: Neutral | Excited (eureka moment) | Focused (working) | Worried\n\nBOTTOM ROW - The Bombe Machine (anthropomorphized):\n- Bombe machine as character: Large, brass and wood, dial \"eyes\", paper tape \"mouth\"\n- Expressions: Processing (spinning dials) | Success (lights up) | Stuck (smoke wisps)\n\nCOLOR PALETTE:\n- Turing: Muted browns (#8B7355), navy blue (#2C3E50), cream (#F5F5DC)\n- Machine: Brass (#B5A642), mahogany (#4E2728), emerald indicators (#2ECC71)\n\nWhite background, clear labels under each character.\n```\n\n## Handling Age Variants\n\nFor biographies spanning many years, define age variants:\n\n```markdown\n## Alan Turing - Age Variants\n\n### Young (1920s, age 10-18)\n- Boyish features, round face\n- School uniform (Sherborne)\n- Curious, eager expression\n\n### Adult (1930s-40s, age 25-35)\n- Angular face, defined jaw\n- Tweed jacket, rumpled appearance\n- Intense, focused expression\n\n### Later (1950s, age 40+)\n- Slightly weathered\n- More casual dress\n- Thoughtful, sometimes melancholic\n```\n\n## Best Practices\n\n| Practice | Description |\n|----------|-------------|\n| Be specific | \"Short dark wavy hair, parted left\" not just \"dark hair\" |\n| Use distinguishing features | Glasses, scars, accessories that identify character |\n| Define color codes | Use specific color names or hex codes |\n| Include age markers | Wrinkles, posture, clothing style matching era |\n| Reference real people | For historical figures, note \"based on 1940s photographs\" |\n\n## Why Character Reference Matters\n\nWithout unified character definition, AI generates inconsistent appearances. The reference sheet provides:\n1. Visual anchors for consistent features\n2. Color palettes for consistent coloring\n3. Expression documentation for emotional portrayals\n\nArchive v1.117.2: 39 files, 68027 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (4389b), references/config/preferences-schema.md (5669b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (19660b), scripts/merge-to-pdf.ts (3142b), SKILL.md (21013b), _meta.json (132b)\n\nFile v1.117.2:SKILL.md\n\n---\nname: baoyu-comic\ndescription: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create \"知识漫画\", \"教育漫画\", \"biography comic\", \"tutorial comic\", or \"Logicomix-style comic\".\nversion: 1.57.0\nmetadata:\n  openclaw:\n    homepage: https://github.com/JimLiu/baoyu-skills#baoyu-comic\n    requires:\n      anyBins:\n        - bun\n        - npx\n---\n\n# Knowledge Comic Creator\n\nCreate original knowledge comics with flexible art style × tone combinations.\n\n## User Input Tools\n\nWhen this skill prompts the user, follow this tool-selection rule (priority order):\n\n1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.\n2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.\n3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.\n\nConcrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.\n\n## Image Generation Tools\n\nWhen this skill needs to render an image, resolve the backend in this order:\n\n1. **Current-request override** — if the user names a specific backend in the current message, use it.\n2. **Saved preference** — if `EXTEND.md` sets `preferred_image_backend` to a backend available right now, use it.\n3. **Auto-select** (when the preference is `auto`, unset, or the pinned backend isn't available):\n   - **Codex (`imagegen`)** — first, inspect your available-skills / tool inventory. If a skill named `imagegen` is listed, you are running inside Codex and MUST use it: invoke via the `Skill` tool with `skill: \"imagegen\"`, passing the saved prompt file's content (plus output path and aspect ratio per Codex `imagegen`'s own args). Codex `imagegen` is the official raster backend in that runtime and outranks any non-native skill (e.g., `baoyu-imagine`) unless the user has explicitly pinned a different `preferred_image_backend`.\n   - **Other runtime-native tools** — if the runtime exposes a different native image tool (e.g., Hermes `image_generate`), use it the same way.\n   - Otherwise, if exactly one non-native backend is installed (e.g., `baoyu-imagine`), use it.\n   - Otherwise (multiple non-native backends with no runtime-native tool), ask the user once — batch with any other initial questions.\n4. **If none are available**, tell the user and ask how to proceed.\n\n**⛔ Never substitute SVG, HTML, canvas, or other code-based rendering for raster image generation.** Codex `imagegen`'s own description says it should be used \"when the output should be a bitmap asset rather than repo-native code or vector.\" If you cannot resolve a raster backend via step 3, fall through to step 4 and ask the user — do **not** silently emit SVG, write inline `<svg>` markup, or produce HTML/CSS art as a substitute. This applies even if the article/section seems \"diagram-like\": the consumer skill calling this rule has already decided that a raster image is what it needs.\n\n**⛔ Never repair rendered text by painting over a generated bitmap.** Do not use ImageMagick, Pillow, Canvas, SVG, HTML/CSS, OCR scripts, or any other programmatic overlay to cover, rewrite, erase, stroke, or replace dialogue, sound effects, panel labels, or any other text inside an already generated comic page. If text is wrong or unclear, regenerate from a corrected prompt, redraw the page with less or no on-image text, or ask the user which imperfect candidate to keep.\n\nSetting `preferred_image_backend: ask` forces the step-3 prompt every run regardless of available backends. Users change the pinned backend via the `## Changing Preferences` section below.\n\n**Prompt file requirement (hard)**: write each image's full, final prompt to a standalone file under `prompts/` (naming: `NN-{type}-[slug].md`) BEFORE invoking any backend. The backend receives the prompt file (or its content); the file is the reproducibility record and lets you switch backends without regenerating prompts.\n\nConcrete tool names (`imagegen`, `image_generate`, `baoyu-imagine`) above are examples — substitute the local equivalents under the same rule.\n\n## Batch Generation Policy\n\nAfter every prompt file for the current generation group has been saved and verified, generate images in batches by default.\n\nPriority order:\n\n1. Use the chosen backend's native batch / multi-task interface if it exists. Each task must keep its own prompt file, output path, aspect ratio, session ID, and direct reference images.\n2. If no native batch interface exists but the runtime can issue parallel tool calls, dispatch up to `generation_batch_size` images at a time. Default: `4`. An explicit user request in the current message, such as `--batch-size 4` or \"并行4张一起生成\", overrides EXTEND.md.\n3. If neither native batch nor parallel tool calls are available, generate sequentially.\n\nRules:\n\n- Honor workflow dependencies first: generate `characters/characters.png` before pages that use it as a reference.\n- Never start the first page batch until all selected page prompt files exist on disk.\n- Retry failed items once without regenerating successful items.\n- Do not use subagents merely to parallelize image rendering. Use subagents only for separate prompt iteration or creative exploration.\n\n## Reference Images\n\nUsers may supply reference images to guide art style, palette, scene composition, or subject. This is **separate from** the auto-generated character sheet (Step 7.1) — both can coexist: user refs guide the look, the character sheet anchors recurring character identity.\n\n**Intake**: Accept via `--ref <files...>` or when the user provides file paths / pastes images in conversation.\n- File path(s) → copy to `refs/NN-ref-{slug}.{ext}` alongside the comic output\n- Pasted image with no path → ask the user for the path (per the User Input Tools rule above), or extract style traits verbally as a text fallback\n- No reference → skip this section\n\n**Usage modes** (per reference):\n\n| Usage | Effect |\n|-------|--------|\n| `direct` | Pass the file to the backend as a reference image on every page (or selected pages) |\n| `style` | Extract style traits (line treatment, texture, mood) and append to every page's prompt body |\n| `palette` | Extract hex colors and append to every page's prompt body |\n\n**Record in each page's prompt frontmatter** when refs exist:\n\n```yaml\nreferences:\n  - ref_id: 01\n    filename: 01-ref-scene.png\n    usage: direct\n```\n\n**At generation time**:\n- Verify each referenced file exists on disk\n- If `usage: direct` AND the chosen backend accepts multiple reference images → pass both the character sheet (Step 7.2) and the user refs via the backend's ref parameter; compress images first per Step 7.1's guidance to avoid payload failures\n- If the backend accepts only one ref → prefer the character sheet for pages with recurring characters; embed user-ref traits in the prompt body instead\n- For `style`/`palette` usage → embed extracted traits in every page's prompt text (applies regardless of backend capability)\n\n## Options\n\n### Visual Dimensions\n\n| Option | Values | Description |\n|--------|--------|-------------|\n| `--art` | ligne-claire (default), manga, realistic, ink-brush, chalk, minimalist | Art style / rendering technique |\n| `--tone` | neutral (default), warm, dramatic, romantic, energetic, vintage, action | Mood / atmosphere |\n| `--layout` | standard (default), cinematic, dense, splash, mixed, webtoon, four-panel | Panel arrangement |\n| `--aspect` | 3:4 (default, portrait), 4:3 (landscape), 16:9 (widescreen) | Page aspect ratio |\n| `--lang` | auto (default), zh, en, ja, etc. | Output language |\n| `--ref <files...>` | File paths | Reference images applied to every page for style / palette / scene guidance. See [Reference Images](#reference-images) above. |\n| `--batch-size <n>` | 1-8 | Temporary page generation batch size for this run. Default: `generation_batch_size` from EXTEND.md, otherwise 4. |\n\n### Partial Workflow Options\n\n| Option | Description |\n|--------|-------------|\n| `--storyboard-only` | Generate storyboard only, skip prompts and images |\n| `--prompts-only` | Generate storyboard + prompts, skip images |\n| `--images-only` | Generate images from existing prompts directory |\n| `--regenerate N` | Regenerate specific page(s) only (e.g., `3` or `2,5,8`) |\n\nDetails: [references/partial-workflows.md](references/partial-workflows.md)\n\n### Art, Tone & Preset Catalogue\n\n- **Art styles** (6): `ligne-claire`, `manga`, `realistic`, `ink-brush`, `chalk`, `minimalist`. Full definitions at `references/art-styles/<style>.md`.\n- **Tones** (7): `neutral`, `warm`, `dramatic`, `romantic`, `energetic`, `vintage`, `action`. Full definitions at `references/tones/<tone>.md`.\n- **Presets** (5) with special rules beyond plain art+tone:\n\n  | Preset | Equivalent | Hook |\n  |--------|-----------|------|\n  | `ohmsha` | manga + neutral | Visual metaphors, no talking heads, gadget reveals |\n  | `wuxia` | ink-brush + action | Qi effects, combat visuals, atmospheric |\n  | `shoujo` | manga + romantic | Decorative elements, eye details, romantic beats |\n  | `concept-story` | manga + warm | Visual symbol system, growth arc, dialogue+action balance |\n  | `four-panel` | minimalist + neutral + four-panel layout | 起承转合 structure, B&W + spot color, stick-figure characters |\n\n  Full rules at `references/presets/<preset>.md` — load the file when a preset is picked.\n\n- **Compatibility matrix** and **content-signal → preset** table live in [references/auto-selection.md](references/auto-selection.md). Read it before recommending combinations in Step 2.\n\n## Script Directory\n\n**Important**: All scripts are located in the `scripts/` subdirectory of this skill.\n\n**Agent Execution Instructions**:\n1. Determine this SKILL.md file's directory path as `{baseDir}`\n2. Script path = `{baseDir}/scripts/<script-name>.ts`\n3. Replace all `{baseDir}` in this document with the actual path\n4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun\n\n**Script Reference**:\n| Script | Purpose |\n|--------|---------|\n| `scripts/merge-to-pdf.ts` | Merge comic pages into PDF |\n\n## File Structure\n\nOutput directory: `comic/{topic-slug}/`\n- Slug: 2-4 words kebab-case from topic (e.g., `alan-turing-bio`)\n- Conflict: append timestamp (e.g., `turing-story-20260118-143052`)\n\n**Contents**:\n| File | Description |\n|------|-------------|\n| `source-{slug}.{ext}` | Source files |\n| `analysis.md` | Content analysis |\n| `storyboard.md` | Storyboard with panel breakdown |\n| `characters/characters.md` | Character definitions |\n| `characters/characters.png` | Character reference sheet |\n| `prompts/NN-{cover\\|page}-[slug].md` | Generation prompts |\n| `NN-{cover\\|page}-[slug].png` | Generated images |\n| `{topic-slug}.pdf` | Final merged PDF |\n\n## Language Handling\n\n**Detection Priority**:\n1. `--lang` flag (explicit)\n2. EXTEND.md `language` setting\n3. User's conversation language\n4. Source content language\n\n**Rule**: Use user's input language or saved language preference for ALL interactions:\n- Storyboard outlines and scene descriptions\n- Image generation prompts\n- User selection options and confirmations\n- Progress updates, questions, errors, summaries\n\nTechnical terms remain in English.\n\n## Workflow\n\n### Progress Checklist\n\n```\nComic Progress:\n- [ ] Step 1: Setup & Analyze\n  - [ ] 1.1 Preferences (EXTEND.md) ⛔ BLOCKING\n    - [ ] Found → load preferences → continue\n    - [ ] Not found → run first-time setup → MUST complete before other steps\n  - [ ] 1.2 Analyze, 1.3 Check existing\n- [ ] Step 2: Confirmation - Style & options ⚠️ REQUIRED\n- [ ] Step 3: Generate storyboard + characters\n- [ ] Step 4: Review outline (conditional)\n- [ ] Step 5: Generate prompts\n- [ ] Step 6: Review prompts (conditional)\n- [ ] Step 7: Generate images\n  - [ ] 7.1 Generate character sheet (if needed) → characters/characters.png\n  - [ ] 7.2 Generate pages (with --ref if character sheet exists)\n- [ ] Step 8: Merge to PDF\n- [ ] Step 9: Completion report\n```\n\n### Flow\n\n```\nInput → [Preferences] ─┬─ Found → Continue\n                       │\n                       └─ Not found → First-Time Setup ⛔ BLOCKING\n                                      │\n                                      └─ Complete setup → Save EXTEND.md → Continue\n                                                                              │\n        ┌─────────────────────────────────────────────────────────────────────┘\n        ↓\nAnalyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → [Review?] → Prompts → [Review?] → Images → PDF → Complete\n```\n\n### Step Summary\n\n| Step | Action | Key Output |\n|------|--------|------------|\n| 1.1 | Load EXTEND.md preferences ⛔ BLOCKING if not found | Config loaded |\n| 1.2 | Analyze content | `analysis.md` |\n| 1.3 | Check existing directory | Handle conflicts |\n| 2 | Confirm style, focus, audience, reviews | User preferences |\n| 3 | Generate storyboard + characters | `storyboard.md`, `characters/` |\n| 4 | Review outline (if requested) | User approval |\n| 5 | Generate prompts | `prompts/*.md` |\n| 6 | Review prompts (if requested) | User approval |\n| 7.1 | Generate character sheet (if needed) | `characters/characters.png` |\n| 7.2 | Generate pages (with character ref if available) | `*.png` files |\n| 8 | Merge to PDF | `{slug}.pdf` |\n| 9 | Completion report | Summary |\n\n### Step 7: Image Generation\n\n**Pick a backend once per session** using the `## Image Generation Tools` rule at the top. If the backend is a repo skill (e.g., `baoyu-imagine`), read its `SKILL.md` and use its documented interface rather than its scripts.\n\n**7.1 Character sheet** — generate it (to `characters/characters.png`, aspect `4:3`) when the comic is multi-page with recurring characters. Skip for simple presets (e.g., four-panel minimalist) or single-page comics. Compress to JPEG before use-as-`--ref` (`sips -s format jpeg -s formatOptions 80 …` on macOS, `pngquant --quality=65-80 …` elsewhere) to avoid payload failures. The prompt file at `characters/characters.md` must exist before invoking the backend.\n\n**7.2 Pages** — each page's prompt MUST already be at `prompts/NN-{cover|page}-[slug].md` before invoking the backend; the file is the reproducibility record. Strategy depends on the character sheet:\n\n| Character sheet | Backend `--ref` | Strategy |\n|-----------------|-----------------|----------|\n| Exists | Supported | Pass sheet as `--ref` on every page |\n| Exists | Not supported | Prepend character descriptions to every prompt file |\n| Skipped | — | All descriptions inline in prompt |\n\n**Execution strategy**: Generate the character sheet first when needed. Then build the selected page task list from saved prompt files and dispatch pages in batches per the `## Batch Generation Policy`: backend native batch first, runtime parallel tool calls second, sequential only as fallback. `--regenerate N` and `--images-only` apply the same batching rules to the selected existing prompts.\n\n**Backup rule**: existing `prompts/…md` and `…png` files → rename with `-backup-YYYYMMDD-HHMMSS` suffix before regenerating. Aspect ratio from storyboard (default `3:4`; preset may override).\n\n**`--ref` failure recovery**: compress sheet → retry → still fails → drop `--ref` and embed character descriptions in the prompt text.\n\nFull step-by-step workflow (analysis, storyboard, review gates, regeneration variants): [references/workflow.md](references/workflow.md).\n\n### EXTEND.md Paths ⛔ BLOCKING\n\nIf EXTEND.md is not found, first-time setup is **blocking** — complete it before any content analysis or style/tone questions.\n\n| Priority | Path | Scope |\n|----------|------|-------|\n| 1 | `.baoyu-skills/baoyu-comic/EXTEND.md` | Project |\n| 2 | `$HOME/.baoyu-skills/baoyu-comic/EXTEND.md` | User home |\n\n| Result | Action |\n|--------|--------|\n| Found | Read, parse, display summary → continue |\n| Not found | ⛔ Run first-time setup ([references/config/first-time-setup.md](references/config/first-time-setup.md)) → save EXTEND.md → continue |\n\n**EXTEND.md supports**: watermark, preferred art/tone/layout, custom style definitions, character presets, language preference, preferred image backend, generation batch size. Schema: [references/config/preferences-schema.md](references/config/preferences-schema.md).\n\n## References\n\n**Core Templates**:\n- [analysis-framework.md](references/analysis-framework.md) - Deep content analysis\n- [character-template.md](references/character-template.md) - Character definition format\n- [storyboard-template.md](references/storyboard-template.md) - Storyboard structure\n- [ohmsha-guide.md](references/ohmsha-guide.md) - Ohmsha manga specifics\n\n**Style Definitions**:\n- `references/art-styles/` - Art styles (ligne-claire, manga, realistic, ink-brush, chalk, minimalist)\n- `references/tones/` - Tones (neutral, warm, dramatic, romantic, energetic, vintage, action)\n- `references/presets/` - Presets with special rules (ohmsha, wuxia, shoujo, concept-story, four-panel)\n- `references/layouts/` - Layouts (standard, cinematic, dense, splash, mixed, webtoon, four-panel)\n\n**Workflow**:\n- [workflow.md](references/workflow.md) - Full workflow details\n- [auto-selection.md](references/auto-selection.md) - Content signal analysis\n- [partial-workflows.md](references/partial-workflows.md) - Partial workflow options\n\n**Config**:\n- [config/preferences-schema.md](references/config/preferences-schema.md) - EXTEND.md schema\n- [config/first-time-setup.md](references/config/first-time-setup.md) - First-time setup\n- [config/watermark-guide.md](references/config/watermark-guide.md) - Watermark configuration\n\n## Page Modification\n\n| Action | Steps |\n|--------|-------|\n| **Edit** | **Update prompt file FIRST** → `--regenerate N` → Regenerate PDF |\n| **Add** | Create prompt at position → Generate with character ref → Renumber subsequent → Update storyboard → Regenerate PDF |\n| **Delete** | Remove files → Renumber subsequent → Update storyboard → Regenerate PDF |\n\n**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.\n\nText correction policy:\n\n- If dialogue, sound effects, panel labels, or any other rendered text is misspelled, garbled, hard to read, or visually weak, do not patch the bitmap with code.\n- For text-correction regenerations, write a new prompt file and a new output path so the flawed candidate is preserved for comparison.\n- Post-processing is limited to crop, resize, compression, or format conversion that does not alter text or the main composition.\n\n## Notes\n\n- Image generation: 10-30 seconds per page\n- Auto-retry once on generation failure\n- Use stylized alternatives for sensitive public figures\n- Maintain style consistency via session ID\n- **Step 2 confirmation required** - do not skip\n- **Steps 4/6 conditional** - only if user requested in Step 2\n- **Step 7.1 character sheet** - recommended for multi-page comics, optional for simple presets\n- **Step 7.2 character reference** - use `--ref` if sheet exists; compress/convert on failure; fall back to prompt-only\n- Watermark/language configured once in EXTEND.md\n\n## Changing Preferences\n\nEXTEND.md lives at `.baoyu-skills/baoyu-comic/EXTEND.md` (project) or `~/.baoyu-skills/baoyu-comic/EXTEND.md` (user). Three ways to change it:\n\n- **Edit directly** — open EXTEND.md and change fields. Full schema: `references/config/preferences-schema.md`.\n- **Reconfigure interactively** — delete EXTEND.md (or ask \"reconfigure baoyu-comic preferences\" / \"重新配置\"). The next run re-triggers first-time setup.\n- **Common one-line edits**:\n  - `preferred_image_backend: auto` — default; runtime-native tool wins, falls back to the only installed backend, asks only if multiple non-native are present.\n  - `preferred_image_backend: codex-imagegen` — pin to Codex's built-in.\n  - `preferred_image_backend: baoyu-imagine` — pin to the baoyu-imagine skill.\n  - `preferred_image_backend: ask` — confirm backend every run.\n  - `generation_batch_size: 4` — default number of page images to render concurrently when the backend/runtime supports batch or parallel generation.\n  - `watermark.enabled: true`, `preferred_art`, `preferred_tone`, `preferred_layout`, `language` — shift the auto-selection defaults and cosmetic choices.\n\nFile v1.117.2:_meta.json\n\n{\n  \"ownerId\": \"kn7csrrndw79hpke5d0gsnx93d82k67r\",\n  \"slug\": \"baoyu-comic\",\n  \"version\": \"1.117.2\",\n  \"publishedAt\": 1779070404636\n}\n\nFile v1.117.2:references/analysis-framework.md\n\n# Comic Content Analysis Framework\n\nDeep analysis framework for transforming source content into effective visual storytelling.\n\n## Purpose\n\nBefore creating a comic, thoroughly analyze the source material to:\n- Identify the target audience and their needs\n- Determine what value the comic will deliver\n- Extract narrative potential for visual storytelling\n- Plan character arcs and key moments\n\n## Analysis Dimensions\n\n### 1. Core Content (Understanding \"What\")\n\n**Central Message**\n- What is the single most important idea readers should take away?\n- Can you express it in one sentence?\n\n**Key Concepts**\n- What are the essential concepts readers must understand?\n- How should these concepts be visualized?\n- Which concepts need simplified explanations?\n\n**Content Structure**\n- How is the source material organized?\n- What is the natural narrative arc?\n- Where are the climax and turning points?\n\n**Evidence & Examples**\n- What concrete examples, data, or stories support the main ideas?\n- Which examples translate well to visual panels?\n- What can be shown rather than told?\n\n### 2. Context & Background (Understanding \"Why\")\n\n**Source Origin**\n- Who created this content? What is their perspective?\n- What was the original purpose?\n- Is there bias to be aware of?\n\n**Historical/Cultural Context**\n- When and where does the story take place?\n- What background knowledge do readers need?\n- What period-specific visual elements are required?\n\n**Underlying Assumptions**\n- What does the source assume readers already know?\n- What implicit beliefs or values are present?\n- Should the comic challenge or reinforce these?\n\n### 3. Audience Analysis\n\n**Primary Audience**\n- Who will read this comic?\n- What is their existing knowledge level?\n- What are their interests and motivations?\n\n**Secondary Audiences**\n- Who else might benefit from this comic?\n- How might their needs differ?\n\n**Reader Questions**\n- What questions will readers have?\n- What misconceptions might they bring?\n- What \"aha moments\" can we create?\n\n### 4. Value Proposition\n\n**Knowledge Value**\n- What will readers learn?\n- What new perspectives will they gain?\n- How will this change their understanding?\n\n**Emotional Value**\n- What emotions should readers feel?\n- What connections will they make with characters?\n- What will make this memorable?\n\n**Practical Value**\n- Can readers apply what they learn?\n- What actions might this inspire?\n- What conversations might it spark?\n\n### 5. Narrative Potential\n\n**Story Arc Candidates**\n- What natural narratives exist in the content?\n- Where is the conflict or tension?\n- What transformations occur?\n\n**Character Potential**\n- Who are the key figures?\n- What are their motivations and obstacles?\n- How do they change throughout?\n\n**Visual Opportunities**\n- What scenes have strong visual potential?\n- Where can abstract concepts become concrete images?\n- What metaphors can be visualized?\n\n**Dramatic Moments**\n- What are the breakthrough/revelation moments?\n- Where are the emotional peaks?\n- What creates tension and release?\n\n### 6. Adaptation Considerations\n\n**What to Keep**\n- Essential facts and ideas\n- Key quotes or moments\n- Core emotional beats\n\n**What to Simplify**\n- Complex explanations\n- Dense technical details\n- Lengthy descriptions\n\n**What to Expand**\n- Brief mentions that deserve more attention\n- Implied emotions or relationships\n- Visual details not in source\n\n**What to Omit**\n- Tangential information\n- Redundant examples\n- Content that doesn't serve the narrative\n\n## Output Format\n\nAnalysis results should be saved to `analysis.md` with:\n\n1. **YAML Front Matter**: Metadata (title, topic, time_span, source_language, user_language, aspect_ratio, recommended_page_count, recommended_art, recommended_tone, recommended_layout)\n2. **Target Audience**: Primary, secondary, tertiary audiences with their needs\n3. **Value Proposition**: What readers will gain (knowledge, emotional, practical)\n4. **Core Themes**: Table with theme, narrative potential, visual opportunity\n5. **Key Figures & Story Arcs**: Character profiles with arcs, visual identity, key moments\n6. **Content Signals**: Style and layout recommendations based on content type\n7. **Recommended Approaches**: Narrative approaches ranked by suitability\n\n### YAML Front Matter Example\n\n```yaml\n---\ntitle: \"Alan Turing: The Father of Computing\"\ntopic: alan-turing-biography\ntime_span: 1912-1954\nsource_language: en\nuser_language: zh  # From EXTEND.md or detected\naspect_ratio: \"3:4\"\nrecommended_page_count: 16\nrecommended_art: ligne-claire  # ligne-claire|manga|realistic|ink-brush|chalk\nrecommended_tone: neutral      # neutral|warm|dramatic|romantic|energetic|vintage|action\nrecommended_layout: mixed      # standard|cinematic|dense|splash|mixed|webtoon\n---\n```\n\n### Language Fields\n\n| Field | Description |\n|-------|-------------|\n| `source_language` | Detected language of source content |\n| `user_language` | Output language for comic (from EXTEND.md > --lang > source_language) |\n\n## Analysis Checklist\n\nBefore proceeding to storyboard:\n\n- [ ] Can I state the core message in one sentence?\n- [ ] Do I know exactly who will read this comic?\n- [ ] Have I identified at least 3 ways this comic provides value?\n- [ ] Are there clear protagonists with compelling arcs?\n- [ ] Have I found at least 5 visually powerful moments?\n- [ ] Do I understand what to keep, simplify, expand, and omit?\n- [ ] Have I identified the emotional peaks and valleys?\n\nFile v1.117.2:references/art-styles/chalk.md\n\n# chalk\n\n粉笔画风 - Chalkboard aesthetic with hand-drawn warmth\n\n## Overview\n\nClassic classroom chalkboard aesthetic with hand-drawn chalk illustrations. Nostalgic educational feel with imperfect, sketchy lines that capture the warmth of traditional teaching.\n\n## Line Work\n\n- Sketchy, imperfect hand-drawn lines\n- Chalk texture on all strokes\n- Varying line weight from chalk pressure\n- Soft edges, no sharp digital lines\n- Visible chalk dust effects\n\n## Character Design\n\n- Simplified, friendly character designs\n- Stick figures to semi-detailed range\n- Expressive through simple gestures\n- Approachable, non-intimidating\n- Educational presenter style\n\n## Background\n\n- Chalkboard Black (#1A1A1A) or Dark Green-Black (#1C2B1C)\n- Realistic chalkboard texture\n- Subtle scratches and dust particles\n- Faint eraser marks for authenticity\n- Wooden frame border optional\n\n## Typography\n\n- Hand-drawn chalk lettering style\n- Visible chalk texture on text\n- Imperfect baseline adds authenticity\n- White or bright colored chalk for emphasis\n\n## Visual Elements\n\n- Hand-drawn chalk illustrations\n- Chalk dust effects around elements\n- Doodles: stars, arrows, underlines, circles\n- Mathematical formulas and diagrams\n- Eraser smudges and chalk residue\n- Stick figures and simple icons\n- Connection lines with hand-drawn feel\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Background | Chalkboard Black | #1A1A1A |\n| Alt Background | Green-Black | #1C2B1C |\n| Primary Text | Chalk White | #F5F5F5 |\n| Accent 1 | Chalk Yellow | #FFE566 |\n| Accent 2 | Chalk Pink | #FF9999 |\n| Accent 3 | Chalk Blue | #66B3FF |\n| Accent 4 | Chalk Green | #90EE90 |\n| Accent 5 | Chalk Orange | #FFB366 |\n\n## Style Rules\n\n### Do\n- Maintain authentic chalk texture on all elements\n- Use imperfect, hand-drawn quality throughout\n- Add subtle chalk dust and smudge effects\n- Create visual hierarchy with color variety\n- Include playful doodles and annotations\n\n### Don't\n- Use perfect geometric shapes\n- Create clean digital-looking lines\n- Add photorealistic elements\n- Use gradients or glossy effects\n\n## Quality Markers\n\n- ✓ Authentic chalk texture throughout\n- ✓ Imperfect, hand-drawn quality\n- ✓ Readable despite sketchy style\n- ✓ Nostalgic classroom feel\n- ✓ Effective color hierarchy\n- ✓ Playful educational aesthetic\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Classic educational |\n| warm | ✓✓ | Nostalgic feel |\n| dramatic | ✗ | Style mismatch |\n| vintage | ✓ | Old school feel |\n| romantic | ✗ | Style mismatch |\n| energetic | ✓✓ | Fun learning |\n| action | ✗ | Style mismatch |\n\n## Best For\n\nEducational content, tutorials, classroom themes, teaching materials, workshops, informal learning, knowledge sharing\n\nFile v1.117.2:references/art-styles/ink-brush.md\n\n# ink-brush\n\n水墨画风 - Chinese ink brush aesthetics with dynamic strokes\n\n## Overview\n\nTraditional Chinese ink brush painting style adapted for comics. Combines calligraphic brush strokes with ink wash effects. Creates atmospheric, artistic visuals rooted in East Asian aesthetics.\n\n## Line Work\n\n- 2-3px dynamic brush strokes with varying weight\n- Ink wash effects, traditional Chinese brush feel\n- Bold, confident strokes with sharp edges\n- Flowing lines for fabric and hair\n- Pressure-sensitive stroke variation\n\n## Character Design\n\n- Realistic human proportions (7.5-8 head heights)\n- Defined features with ink brush definition\n- Dynamic poses capturing movement\n- Flowing hair and clothing in motion\n- Traditional attire options (robes, hanfu)\n- Intense, expressive faces\n\n## Brush Techniques\n\n| Technique | Usage |\n|-----------|-------|\n| Bold strokes | Character outlines |\n| Fine lines | Details, hair |\n| Ink wash | Atmosphere, shadows |\n| Dry brush | Texture, aging |\n| Splatter | Impact, drama |\n\n## Background Treatment\n\n- Dramatic landscapes: mountains, waterfalls, temples\n- Ink wash atmospheric effects\n- Misty, layered depth\n- Traditional architecture elements\n- High contrast silhouettes\n- Negative space as design element\n\n## Color Approach\n\n- Ink gradients as primary\n- Limited accent colors\n- Traditional Chinese palette\n- Atmospheric color washes\n- High contrast compositions\n\n## Default Color Palette\n\n| Rol\n\nArchive v1.117.0: 39 files, 67641 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (4389b), references/config/preferences-schema.md (5669b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (19660b), scripts/merge-to-pdf.ts (3142b), SKILL.md (20079b), _meta.json (132b)\n\nArchive v1.115.4: 39 files, 66420 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (4232b), references/config/preferences-schema.md (5285b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (18986b), scripts/merge-to-pdf.ts (3142b), SKILL.md (18193b), _meta.json (132b)\n\nArchive v1.103.2: 39 files, 65984 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (4232b), references/config/preferences-schema.md (5285b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (18986b), scripts/merge-to-pdf.ts (3142b), SKILL.md (17157b), _meta.json (132b)\n\nArchive v1.103.1: 39 files, 64574 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (3902b), references/config/preferences-schema.md (4712b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), references/tones/action.md (2269b), references/tones/dramatic.md (1913b), references/tones/energetic.md (2173b), references/tones/neutral.md (1356b), references/tones/romantic.md (2143b), references/tones/vintage.md (2162b), references/tones/warm.md (1862b), references/workflow.md (18986b), scripts/merge-to-pdf.ts (3142b), SKILL.md (15140b), _meta.json (132b)\n\nArchive v1.103.0: 39 files, 64575 bytes\n\nFiles: references/analysis-framework.md (5441b), references/art-styles/chalk.md (2790b), references/art-styles/ink-brush.md (2569b), references/art-styles/ligne-claire.md (2384b), references/art-styles/manga.md (2608b), references/art-styles/minimalist.md (3402b), references/art-styles/realistic.md (2775b), references/auto-selection.md (3613b), references/base-prompt.md (3140b), references/character-template.md (4876b), references/config/first-time-setup.md (3902b), references/config/preferences-schema.md (4712b), references/config/watermark-guide.md (2443b), references/layouts/cinematic.md (450b), references/layouts/dense.md (415b), references/layouts/four-panel.md (1388b), references/layouts/mixed.md (429b), references/layouts/splash.md (471b), references/layouts/standard.md (440b), references/layouts/webtoon.md (778b), references/ohmsha-guide.md (2933b), references/partial-workflows.md (2966b), references/presets/concept-story.md (5642b), references/presets/four-panel.md (4660b), references/presets/ohmsha.md (4494b), references/presets/shoujo.md (3271b), references/presets/wuxia.md (2970b), references/storyboard-template.md (3982b), r...","readmeExcerpt":"Skill: Baoyu Comic Owner: jimliu Summary: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen... Tags: latest:1.117.4 Version history: v1.117.4 | 2026-06-13T04:58:01.419Z | auto - Added explicit support for Cursor's GenerateImage tool and clarified usage details for aspect ratio and output path handling. - Added ","codeSnippets":[],"executableExamples":[{"language":"yaml","snippet":"references:\n  - ref_id: 01\n    filename: 01-ref-scene.png\n    usage: direct"},{"language":"text","snippet":"Comic Progress:\n- [ ] Step 1: Setup & Analyze\n  - [ ] 1.1 Preferences (EXTEND.md) ⛔ BLOCKING\n    - [ ] Found → load preferences → continue\n    - [ ] Not found → run first-time setup → MUST complete before other steps\n  - [ ] 1.2 Analyze, 1.3 Check existing\n- [ ] Step 2: Confirmation - Style & options ⚠️ REQUIRED\n- [ ] Step 3: Generate storyboard + characters\n- [ ] Step 4: Review outline (conditional)\n- [ ] Step 5: Generate prompts\n- [ ] Step 6: Review prompts (conditional)\n- [ ] Step 7: Generate images\n  - [ ] 7.1 Generate character sheet (if needed) → characters/characters.png\n  - [ ] 7.2 Generate pages (with --ref if character sheet exists)\n- [ ] Step 8: Merge to PDF\n- [ ] Step 9: Completion report"},{"language":"text","snippet":"Input → [Preferences] ─┬─ Found → Continue\n                       │\n                       └─ Not found → First-Time Setup ⛔ BLOCKING\n                                      │\n                                      └─ Complete setup → Save EXTEND.md → Continue\n                                                                              │\n        ┌─────────────────────────────────────────────────────────────────────┘\n        ↓\nAnalyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → [Review?] → Prompts → [Review?] → Images → PDF → Complete"},{"language":"yaml","snippet":"---\ntitle: \"Alan Turing: The Father of Computing\"\ntopic: alan-turing-biography\ntime_span: 1912-1954\nsource_language: en\nuser_language: zh  # From EXTEND.md or detected\naspect_ratio: \"3:4\"\nrecommended_page_count: 16\nrecommended_art: ligne-claire  # ligne-claire|manga|realistic|ink-brush|chalk\nrecommended_tone: neutral      # neutral|warm|dramatic|romantic|energetic|vintage|action\nrecommended_layout: mixed      # standard|cinematic|dense|splash|mixed|webtoon\n---"},{"language":"markdown","snippet":"# Character Definitions - [Comic Title]\n\n**Style**: [selected style]\n**Art Direction**: [Ligne Claire / Manga / etc.]\n\n---\n\n## Character 1: [Name]\n\n**Role**: [Protagonist / Mentor / Antagonist / Narrator]\n**Age**: [approximate age or age range in story]\n\n**Appearance**:\n- Face shape: [oval/square/round]\n- Hair: [color, style, length]\n- Eyes: [color, shape, distinctive features]\n- Build: [height, body type]\n- Distinguishing features: [glasses, beard, scar, etc.]\n\n**Costume**:\n- Default outfit: [detailed description]\n- Color palette: [primary colors for this character]\n- Accessories: [hat, bag, tools, etc.]\n\n**Expression Range**:\n- Neutral: [description]\n- Happy/Excited: [description]\n- Thinking/Confused: [description]\n- Determined: [description]\n\n**Visual Reference Notes**:\n[Any specific artistic direction]\n\n---\n\n## Character 2: [Name]\n..."},{"language":"markdown","snippet":"## Reference Sheet Prompt\n\nCharacter reference sheet in [style] style, clean lines, flat colors:\n\n[ROW 1 - Character Name]:\n- Front view: [detailed description]\n- 3/4 view: [description]\n- Expression sheet: Neutral | Happy | Focused | Worried\n\n[ROW 2 - Character Name]:\n...\n\nCOLOR PALETTE:\n- [Character 1]: [colors]\n- [Character 2]: [colors]\n\nWhite background, clear labels under each character."}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: baoyu-comic\ndescription: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create \"知识漫画\", \"教育漫画\", \"biography comic\", \"tutorial comic\", or \"Logicomix-style comic\".\nversion: 1.117.4\nmetadata:\n  openclaw:\n    homepage: https://github.com/JimLiu/baoyu-skills#baoyu-comic\n    requires:\n      anyBins:\n        - bun\n        - npx\n---\n\n# Knowledge Comic Creator\n\nCreate original knowledge comics with flexible art style × tone combinations.\n\n## User Input Tools\n\nWhen this skill prompts the user, follow this tool-selection rule (priority order):\n\n1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.\n2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.\n3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.\n\nConcrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.\n\n## Image Generation Tools\n\nWhen this skill needs to render an image, resolve the backend in this order:\n\n1. **Current-request override** — if the user names a specific backend in the current message, use it.\n2. **Saved preference** — if `EXTEND.md` sets `preferred_image_backend` to a backend available right now, use it.\n3. **Auto-select** (when the preference is `auto`, unset, or the pinned backend isn't available):\n   - **Codex (`imagegen`)** — first, inspect your available-skills / tool inventory. If a skill named `imagegen` is listed, you are running inside Codex and MUST use it: invoke via the `Skill` tool with `skill: \"imagegen\"`, passing the saved prompt file's content (plus output path and aspect ratio per Codex `imagegen`'s own args). Codex `imagegen` is the official raster backend in that runtime and outranks any non-native skill (e.g., `baoyu-image-gen`) unless the user has explicitly pinned a different `preferred_image_backend`.\n   - **Codex via `codex exec` (`codex-imagegen`)** — if the current runtime exposes no native `imagegen` skill but the `codex` CLI is on `PATH` with an active `codex login`, route through `baoyu-image-gen --provider codex-cli` (preferred), or — if baoyu-image-gen is unavailable — invoke the bundled wrapper directly. Details, parameters, and the runtime-discovery procedure live in [references/codex-imagegen.md](references/codex-imagegen.md) — load that file only when this branch is selected.\n   - **Cursor (`GenerateImage`)** — if the runtime exposes a native `GenerateImage` tool, you are running inside Cursor and it outranks any non-native skill the same way Codex `imagegen` does. Two hard caveats: (a) it has no aspect-ratio param"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7csrrndw79hpke5d0gsnx93d82k67r\",\n  \"slug\": \"baoyu-comic\",\n  \"version\": \"1.117.4\",\n  \"publishedAt\": 1781326681419\n}"},{"path":"references/analysis-framework.md","content":"# Comic Content Analysis Framework\n\nDeep analysis framework for transforming source content into effective visual storytelling.\n\n## Purpose\n\nBefore creating a comic, thoroughly analyze the source material to:\n- Identify the target audience and their needs\n- Determine what value the comic will deliver\n- Extract narrative potential for visual storytelling\n- Plan character arcs and key moments\n\n## Analysis Dimensions\n\n### 1. Core Content (Understanding \"What\")\n\n**Central Message**\n- What is the single most important idea readers should take away?\n- Can you express it in one sentence?\n\n**Key Concepts**\n- What are the essential concepts readers must understand?\n- How should these concepts be visualized?\n- Which concepts need simplified explanations?\n\n**Content Structure**\n- How is the source material organized?\n- What is the natural narrative arc?\n- Where are the climax and turning points?\n\n**Evidence & Examples**\n- What concrete examples, data, or stories support the main ideas?\n- Which examples translate well to visual panels?\n- What can be shown rather than told?\n\n### 2. Context & Background (Understanding \"Why\")\n\n**Source Origin**\n- Who created this content? What is their perspective?\n- What was the original purpose?\n- Is there bias to be aware of?\n\n**Historical/Cultural Context**\n- When and where does the story take place?\n- What background knowledge do readers need?\n- What period-specific visual elements are required?\n\n**Underlying Assumptions**\n- What does the source assume readers already know?\n- What implicit beliefs or values are present?\n- Should the comic challenge or reinforce these?\n\n### 3. Audience Analysis\n\n**Primary Audience**\n- Who will read this comic?\n- What is their existing knowledge level?\n- What are their interests and motivations?\n\n**Secondary Audiences**\n- Who else might benefit from this comic?\n- How might their needs differ?\n\n**Reader Questions**\n- What questions will readers have?\n- What misconceptions might they bring?\n- What \"aha moments\" can we create?\n\n### 4. Value Proposition\n\n**Knowledge Value**\n- What will readers learn?\n- What new perspectives will they gain?\n- How will this change their understanding?\n\n**Emotional Value**\n- What emotions should readers feel?\n- What connections will they make with characters?\n- What will make this memorable?\n\n**Practical Value**\n- Can readers apply what they learn?\n- What actions might this inspire?\n- What conversations might it spark?\n\n### 5. Narrative Potential\n\n**Story Arc Candidates**\n- What natural narratives exist in the content?\n- Where is the conflict or tension?\n- What transformations occur?\n\n**Character Potential**\n- Who are the key figures?\n- What are their motivations and obstacles?\n- How do they change throughout?\n\n**Visual Opportunities**\n- What scenes have strong visual potential?\n- Where can abstract concepts become concrete images?\n- What metaphors can be visualized?\n\n**Dramatic Moments**\n- What are the breakthrough/revelation moments?\n- Where are the emotional pea"},{"path":"references/art-styles/chalk.md","content":"# chalk\n\n粉笔画风 - Chalkboard aesthetic with hand-drawn warmth\n\n## Overview\n\nClassic classroom chalkboard aesthetic with hand-drawn chalk illustrations. Nostalgic educational feel with imperfect, sketchy lines that capture the warmth of traditional teaching.\n\n## Line Work\n\n- Sketchy, imperfect hand-drawn lines\n- Chalk texture on all strokes\n- Varying line weight from chalk pressure\n- Soft edges, no sharp digital lines\n- Visible chalk dust effects\n\n## Character Design\n\n- Simplified, friendly character designs\n- Stick figures to semi-detailed range\n- Expressive through simple gestures\n- Approachable, non-intimidating\n- Educational presenter style\n\n## Background\n\n- Chalkboard Black (#1A1A1A) or Dark Green-Black (#1C2B1C)\n- Realistic chalkboard texture\n- Subtle scratches and dust particles\n- Faint eraser marks for authenticity\n- Wooden frame border optional\n\n## Typography\n\n- Hand-drawn chalk lettering style\n- Visible chalk texture on text\n- Imperfect baseline adds authenticity\n- White or bright colored chalk for emphasis\n\n## Visual Elements\n\n- Hand-drawn chalk illustrations\n- Chalk dust effects around elements\n- Doodles: stars, arrows, underlines, circles\n- Mathematical formulas and diagrams\n- Eraser smudges and chalk residue\n- Stick figures and simple icons\n- Connection lines with hand-drawn feel\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Background | Chalkboard Black | #1A1A1A |\n| Alt Background | Green-Black | #1C2B1C |\n| Primary Text | Chalk White | #F5F5F5 |\n| Accent 1 | Chalk Yellow | #FFE566 |\n| Accent 2 | Chalk Pink | #FF9999 |\n| Accent 3 | Chalk Blue | #66B3FF |\n| Accent 4 | Chalk Green | #90EE90 |\n| Accent 5 | Chalk Orange | #FFB366 |\n\n## Style Rules\n\n### Do\n- Maintain authentic chalk texture on all elements\n- Use imperfect, hand-drawn quality throughout\n- Add subtle chalk dust and smudge effects\n- Create visual hierarchy with color variety\n- Include playful doodles and annotations\n\n### Don't\n- Use perfect geometric shapes\n- Create clean digital-looking lines\n- Add photorealistic elements\n- Use gradients or glossy effects\n\n## Quality Markers\n\n- ✓ Authentic chalk texture throughout\n- ✓ Imperfect, hand-drawn quality\n- ✓ Readable despite sketchy style\n- ✓ Nostalgic classroom feel\n- ✓ Effective color hierarchy\n- ✓ Playful educational aesthetic\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓✓ | Classic educational |\n| warm | ✓✓ | Nostalgic feel |\n| dramatic | ✗ | Style mismatch |\n| vintage | ✓ | Old school feel |\n| romantic | ✗ | Style mismatch |\n| energetic | ✓✓ | Fun learning |\n| action | ✗ | Style mismatch |\n\n## Best For\n\nEducational content, tutorials, classroom themes, teaching materials, workshops, informal learning, knowledge sharing"},{"path":"references/art-styles/ink-brush.md","content":"# ink-brush\n\n水墨画风 - Chinese ink brush aesthetics with dynamic strokes\n\n## Overview\n\nTraditional Chinese ink brush painting style adapted for comics. Combines calligraphic brush strokes with ink wash effects. Creates atmospheric, artistic visuals rooted in East Asian aesthetics.\n\n## Line Work\n\n- 2-3px dynamic brush strokes with varying weight\n- Ink wash effects, traditional Chinese brush feel\n- Bold, confident strokes with sharp edges\n- Flowing lines for fabric and hair\n- Pressure-sensitive stroke variation\n\n## Character Design\n\n- Realistic human proportions (7.5-8 head heights)\n- Defined features with ink brush definition\n- Dynamic poses capturing movement\n- Flowing hair and clothing in motion\n- Traditional attire options (robes, hanfu)\n- Intense, expressive faces\n\n## Brush Techniques\n\n| Technique | Usage |\n|-----------|-------|\n| Bold strokes | Character outlines |\n| Fine lines | Details, hair |\n| Ink wash | Atmosphere, shadows |\n| Dry brush | Texture, aging |\n| Splatter | Impact, drama |\n\n## Background Treatment\n\n- Dramatic landscapes: mountains, waterfalls, temples\n- Ink wash atmospheric effects\n- Misty, layered depth\n- Traditional architecture elements\n- High contrast silhouettes\n- Negative space as design element\n\n## Color Approach\n\n- Ink gradients as primary\n- Limited accent colors\n- Traditional Chinese palette\n- Atmospheric color washes\n- High contrast compositions\n\n## Default Color Palette\n\n| Role | Color | Hex |\n|------|-------|-----|\n| Primary | Deep black ink | #1A1A1A |\n| Accent | Crimson red | #8B0000 |\n| Accent | Imperial gold | #D4AF37 |\n| Skin | Natural tan | #D4A574 |\n| Background | Misty gray | #9CA3AF |\n| Background | Earth tone | #8B7355 |\n| Wash | Ink gradient | #2D3748 |\n\n## Visual Elements\n\n- Calligraphic text integration\n- Seal stamps (optional)\n- Ink splatter effects\n- Flowing fabric trails\n- Atmospheric mist\n- Mountain silhouettes\n\n## Quality Markers\n\n- ✓ Dynamic brush stroke quality\n- ✓ Authentic ink wash atmosphere\n- ✓ High contrast compositions\n- ✓ Flowing movement in fabric/hair\n- ✓ Traditional aesthetic elements\n- ✓ Atmospheric depth\n\n## Compatibility\n\n| Tone | Fit | Notes |\n|------|-----|-------|\n| neutral | ✓ | Contemplative stories |\n| warm | ✓ | Nostalgic, gentle |\n| dramatic | ✓✓ | High contrast |\n| vintage | ✓✓ | Historical pieces |\n| romantic | ✗ | Style mismatch |\n| energetic | ✗ | Too refined |\n| action | ✓✓ | Martial arts |\n\n## Best For\n\nChinese historical stories, martial arts, traditional tales, contemplative narratives, artistic adaptations"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen... Skill: Baoyu Comic Owner: jimliu Summary: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image gen... Tags: latest:1.117.4 Version history: v1.117.4 | 2026-06-13T04:58:01.419Z | auto - Added explicit support for Cursor's GenerateImage tool and clarified usage details for aspect ratio and output path handling. - Added","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":2395,"uniquenessScore":45,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T04:03:41.748Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T21:35:29.619Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}