/install bookmorph-magic
BookMorph Magic
Use this skill as a publishable template for book-to-content orchestration. It is not a private, fixed workflow.
What this template does
- Takes one book or one episode-style request
- Produces a package of multi-format content
- Bundles the final outputs into a stable episode directory with a manifest
Typical outputs:
- one video
- one audio file
- three cover images (
3:4,4:3,1:1) - one
manifest.json
Important constraints
- This is a template, not a turnkey SaaS workflow.
- To run end to end, you must provide 3 adapters:
book selectorlongform content generatorcover generator
- If you already have existing skills or scripts for those adapters, wire them to the contracts in
references/integration-template.md.
Inputs
- A book file path, or
- A request containing one episode identifier such as
ep38,EP38,episode 38, or第38期
Output contract
- Output root is configurable
- Episode directory prefix is configurable; default is
episode- - Stable output filenames:
epNN-video.\x3Cext>epNN-audio.\x3Cext>epNN-cover-3x4.\x3Cext>epNN-cover-4x3.\x3Cext>epNN-cover-1x1.\x3Cext>manifest.json
Workflow
- Parse the episode identifier with
scripts/episode_bundle.py parse-episode. - Create or reset the target episode directory with
prepare-dest. - Run your
book selectoradapter until it chooses exactly one source book. - Run your
longform content generatoradapter to produce a video and an audio output. - Run your
cover generatoradapter to produce3:4,4:3, and1:1images. - Run
bundleto copy the final artifacts into the episode directory and writemanifest.json.
Adapter requirements
Book selector
Must return enough information to identify one selected source:
- book title
- author
- local source file path
- selection round or attempt count
- optional selector checkpoint path
Longform content generator
Must return:
- video file path
- audio file path
- attempt count
- optional generator checkpoint path
Cover generator
Must return:
- image path for
3:4 - image path for
4:3 - image path for
1:1 - attempt count
- optional prompt archive path
- optional generator checkpoint path
Failure rules
- If the episode number cannot be parsed, fail immediately.
- If no source book can be selected, stop and write a failed manifest.
- If longform media is incomplete, stop and write a failed or partial manifest.
- If any required cover image is missing, stop and write a failed or partial manifest.
Commands
python3 {baseDir}/scripts/episode_bundle.py parse-episode --text "制作ep38内容" --output-root "/abs/output/root"
python3 {baseDir}/scripts/episode_bundle.py prepare-dest --episode 38 --clear-existing --output-root "/abs/output/root"
python3 {baseDir}/scripts/episode_bundle.py bundle --episode 38 --video "/abs/video.mp4" --audio "/abs/audio.m4a" --image-3x4 "/abs/3x4.png" --image-4x3 "/abs/4x3.png" --image-1x1 "/abs/1x1.png" --book-title "Example Book" --author "Example Author" --book-path "/abs/book.epub" --selector-adapter "my-book-selector" --selector-reference "round-1" --selection-round 1 --longform-attempts 1 --cover-attempts 1 --prompt-archive "/abs/prompts.md" --output-root "/abs/output/root"
python3 {baseDir}/scripts/episode_bundle.py bundle --episode 38 --selection-round 3 --longform-attempts 0 --cover-attempts 0 --status failed --failure "selector=no valid source book" --output-root "/abs/output/root"
References
- Adapter contracts:
references/integration-template.md - Manifest fields:
references/manifest-schema.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bookmorph-magic - After installation, invoke the skill by name or use
/bookmorph-magic - Provide required inputs per the skill's parameter spec and get structured output
What is BookMorph Magic?
Orchestrate book-to-content workflows to generate video, audio, cover images, and a manifest for episode or campaign packages. It is an AI Agent Skill for Claude Code / OpenClaw, with 249 downloads so far.
How do I install BookMorph Magic?
Run "/install bookmorph-magic" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is BookMorph Magic free?
Yes, BookMorph Magic is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does BookMorph Magic support?
BookMorph Magic is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created BookMorph Magic?
It is built and maintained by OiiOAI (@oiioai); the current version is v1.0.0.