← Back to Skills Marketplace
oiioai

BookMorph Magic

by OiiOAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
249
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install bookmorph-magic
Description
Orchestrate book-to-content workflows to generate video, audio, cover images, and a manifest for episode or campaign packages.
README (SKILL.md)

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 selector
    • longform content generator
    • cover 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

  1. Parse the episode identifier with scripts/episode_bundle.py parse-episode.
  2. Create or reset the target episode directory with prepare-dest.
  3. Run your book selector adapter until it chooses exactly one source book.
  4. Run your longform content generator adapter to produce a video and an audio output.
  5. Run your cover generator adapter to produce 3:4, 4:3, and 1:1 images.
  6. Run bundle to copy the final artifacts into the episode directory and write manifest.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
Usage Guidance
This package is a local orchestration template: it expects you to wire your own adapters that produce media files, then call the included Python script to bundle them. Before installing or using it, check any adapters you wire in (or other skills you connect) for network access or credential usage, and avoid passing sensitive system paths to the bundle commands — the script will copy any absolute paths you supply into the episode directory. If you plan to run adapters from third parties, vet them separately because this template will happily package outputs they produce.
Capability Analysis
Type: OpenClaw Skill Name: bookmorph-magic Version: 1.0.0 The skill bundle provides a legitimate orchestration template for converting books into multi-format content packages (video, audio, images). The primary logic resides in `scripts/episode_bundle.py`, which handles directory management, file copying, and manifest generation using standard Python libraries like `shutil` and `pathlib`. While the script includes a directory deletion feature (`shutil.rmtree`), it is constrained to specific episode subdirectories within a user-defined output root, which is consistent with the stated purpose of resetting a workflow. No evidence of data exfiltration, unauthorized network access, or malicious prompt injection was found.
Capability Assessment
Purpose & Capability
The name/description promise (book→video/audio/cover bundle and manifest) matches the included instructions and script: parsing episode identifiers, preparing output directories, copying supplied media, and writing a manifest. Nothing requested (no env vars, no binaries) is unrelated to that purpose.
Instruction Scope
SKILL.md confines runtime behavior to: parse episode text, invoke a local Python helper, run three adapter steps (book selector, longform generator, cover generator) supplied by the integrator, and bundle/copy local files into an output directory. The instructions do not direct reading of unrelated system files, environment variables, or sending data to external endpoints. The adapters themselves are external and must be provided by the user.
Install Mechanism
No install spec or remote downloads; this is instruction-only with one included Python script. Nothing is fetched from arbitrary URLs or installed into system locations.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The script operates on absolute file paths supplied at runtime — this is appropriate for a bundling/template utility.
Persistence & Privilege
The skill is not always-enabled, is user-invocable, does not change other skills' configuration, and does not request persistent agent-level privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bookmorph-magic
  3. After installation, invoke the skill by name or use /bookmorph-magic
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial public template release
Metadata
Slug bookmorph-magic
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

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.

💬 Comments