diff --git a/skills/baoyu-comic/SKILL.md b/skills/baoyu-comic/SKILL.md index e60681a..f016dc8 100644 --- a/skills/baoyu-comic/SKILL.md +++ b/skills/baoyu-comic/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-comic description: Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and sequential image generation. Use when user asks to create "知识漫画", "教育漫画", "biography comic", "tutorial comic", or "Logicomix-style comic". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-comic + requires: + anyBins: + - bun + - npx --- # Knowledge Comic Creator @@ -104,9 +112,9 @@ Details: [references/auto-selection.md](references/auto-selection.md) **Important**: All scripts are located in the `scripts/` subdirectory of this skill. **Agent Execution Instructions**: -1. Determine this SKILL.md file's directory path as `SKILL_DIR` -2. Script path = `${SKILL_DIR}/scripts/.ts` -3. Replace all `${SKILL_DIR}` in this document with the actual path +1. Determine this SKILL.md file's directory path as `{baseDir}` +2. Script path = `{baseDir}/scripts/.ts` +3. Replace all `{baseDir}` in this document with the actual path 4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun **Script Reference**: @@ -209,12 +217,14 @@ Analyze → [Check Existing?] → [Confirm: Style + Reviews] → Storyboard → **7.1 Generate character sheet first**: - **Backup rule**: If `characters/characters.png` exists, rename to `characters/characters-backup-YYYYMMDD-HHMMSS.png` ```bash -# Use Reference Sheet Prompt from characters/characters.md -${BUN_X} ${SKILL_DIR}/../baoyu-image-gen/scripts/main.ts \ +# Example with an installed image generation skill such as baoyu-image-gen +${BUN_X} /scripts/main.ts \ --promptfiles characters/characters.md \ --image characters/characters.png --ar 4:3 ``` +Replace `` with the installed image generation skill directory. Do not assume it is a sibling of this skill. + **Compress character sheet** (recommended): Compress to reduce token usage when used as reference image: - Use available image compression skill (if any) @@ -234,7 +244,7 @@ Compress to reduce token usage when used as reference image: ```bash # Example: ALWAYS include --ref for consistency -${BUN_X} ${SKILL_DIR}/../baoyu-image-gen/scripts/main.ts \ +${BUN_X} /scripts/main.ts \ --promptfiles prompts/01-page-xxx.md \ --image 01-page-xxx.png --ar 3:4 \ --ref characters/characters.png diff --git a/skills/baoyu-comic/references/workflow.md b/skills/baoyu-comic/references/workflow.md index b25714e..ecf149c 100644 --- a/skills/baoyu-comic/references/workflow.md +++ b/skills/baoyu-comic/references/workflow.md @@ -435,13 +435,15 @@ With confirmed prompts from Step 5/6: ```bash # Each page generation MUST include --ref -${BUN_X} ${SKILL_DIR}/../baoyu-image-gen/scripts/main.ts \ +${BUN_X} /scripts/main.ts \ --promptfiles prompts/01-page-xxx.md \ --image 01-page-xxx.png \ --ar 3:4 \ --ref characters/characters.png ``` +Replace `` with the installed image generation skill directory. Do not assume it is adjacent to `baoyu-comic`. + **Strategy B: Embedding character descriptions in prompt** When skill does NOT support reference images, create combined prompt files: @@ -478,7 +480,7 @@ If image generation skill supports `--sessionId`: After all images generated: ```bash -${BUN_X} ${SKILL_DIR}/scripts/merge-to-pdf.ts +${BUN_X} {baseDir}/scripts/merge-to-pdf.ts ``` Creates `{topic-slug}.pdf` with all pages as full-page images.