Agent skill

Story HTML Publisher

by hassancs91 in hassancs91/claude-image-generation

Final step of the AI Storybook pipeline. An agent skill from hassancs91/claude-image-generation.

MITAuto-check passedFrontend & Design

Install Story HTML Publisher

skills CLI
$ npx skills add hassancs91/claude-image-generation --skill story-html-publisher -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hassancs91/claude-image-generation story-html-publisher --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hassancs91/claude-image-generation.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/story-html-publisher .claude/skills/story-html-publisher && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
story-html-publisher
GitHub stars
102
Token cost
~1.7k tokens
SKILL.md length
795 words
Files
4 (incl. references, assets)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Final step of the AI Storybook pipeline. An agent skill from hassancs91/claude-image-generation.

  • Works in 4 steps: Discover and validate → Build the HTML → HARD GATE: review the storybook → …
  • The user wants to build the final storybook
  • SKILL.md covers When this skill applies, Required inputs, Workflow — four stages with… and What the finished storybook does, plus 2 more sections
  • Runs Python scripts from its folder; calls python

What it does

Story HTML Publisher is an agent skill from hassancs91/claude-image-generation. Final step of the AI Storybook pipeline. Consolidates the scenes, images, and per-scene audio into ONE self-contained HTML storybook — a swipe/tap player with every image and audio clip embedded as base64 so the single file works offline and can be shared as-is. Reads {slug}scenes.json, {slug}images.json, and {slug}audio/, then writes {slug}story.json and {slug}.html. Use this skill whenever the user wants to build the final storybook, export to HTML, package the story, make the storybook file, generate the HTML…

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files and assets (for example `assets/build_html.py` and `references/build-html.md`).

It sits in Frontend & Design, covering Image generation. It works with Storybook. The repository describes itself as: Connect Claude to image generation with Agent Skills. Three levels: a zero-cost code-based design engine, a Three.js 3D renderer, and a real diffusion model on Cloudflare. Plus… The licence is MIT.

When your agent uses it

  • The user wants to build the final storybook
  • Package the story
  • Make the storybook file
  • Generate the HTML

Example prompts

  • “build the storybook HTML”
  • “export to HTML”
  • “make the final file”
  • “/story-html-publisher”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Discover and validate
  2. Build the HTML
  3. HARD GATE: review the storybook
  4. Finish

What it can do on your machine

Read from SKILL.md and the folder at commit f533831. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Story HTML Publisher loads about 1.7k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 225 tokens; SKILL.md has 795 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~225
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hassancs91/claude-image-generation at commit f533831, republished under its MIT licence (© hassancs91). 795 words, ~1,670 tokens.

Download SKILL.mdSave it as .claude/skills/story-html-publisher/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
story-html-publisher
description
Final step of the AI Storybook pipeline. Consolidates the scenes, images, and per-scene audio into ONE self-contained HTML storybook — a swipe/tap player with every image and audio clip embedded as base64 so the single file works offline and can be shared as-is. Reads {slug}_scenes.json, {slug}_images.json, and {slug}_audio/, then writes {slug}_story.json and {slug}.html. Use this skill whenever the user wants to build the final storybook, export to HTML, package the story, make the storybook file, generate the HTML, or wrap up the pipeline. Trigger on phrases like "build the storybook HTML", "export to HTML", "make the final file", "package the storybook", "generate the storybook", "wrap up the pipeline", or whenever the scenes + images + audio all exist and the user wants the single shareable file. Produces a single self-contained .html (images + audio embedded).

Story HTML Publisher

Takes everything the upstream skills produced and emits one self-contained HTML storybook: a swipe/tap player where each scene is one screen (illustration + narration text), with the playback controls in a fixed footer. It opens with a dedicated cover page — the first illustration shown clean, playing only the short spoken title. Every image and audio clip is embedded as a base64 data URI, so the single .html file works offline, opens with a double-click, and can be emailed or dropped on any static host with no assets folder.

This skill does no creative work — no new text, images, or audio. It only reads, validates, pairs, embeds, and writes. If something is missing upstream, it reports the gap rather than fabricating.

When this skill applies

The pipeline's earlier skills have run and the user wants the final output: "build the storybook", "export to HTML", "make the final file", "wrap up the pipeline".

Does NOT apply to stories that haven't been through scene-splitter + story-illustrator + story-narrator — point the user to the missing step.

Required inputs

In stories/{slug}/:

ArtifactProducerPath
Scenes spinescene-splitter{slug}_scenes.json
Image registrystory-illustrator{slug}_images.json
Audio clipsstory-narrator{slug}_audio/{slug}_part_NN.mp3
Title clip (optional)story-narrator{slug}_audio/title.mp3

Everything pairs by scene index: scenes[i].index = N → image from images.json.shots[] where index = N → audio {slug}_part_NN.mp3.

Workflow — four stages with one hard gate

Stage 1: Discover and validate
  1. Determine the slug (user argument → the *_scenes.json in the working dir → ask).
  2. Locate the three inputs. Confirm each scene has both an image (in images.json) and an audio file. Build a pairing table: index → text snippet → image present? → audio present?
  3. Reconstruction sanity check: the scene count in scenes.json should match the number of shots in images.json and the number of _part_NN.mp3 files.
  4. Report findings:

    Found 9 scenes, 9 images, 9 audio clips (+ title clip). All paired. Ready to build. If anything is missing, list the gaps. Don't proceed to build with gaps unless the user says "build partial" (the build script will embed what exists and leave placeholders for the rest).

Stage 2: Build the HTML

Run the build script (preferred):

bash
python .claude/skills/story-html-publisher/assets/build_html.py {slug}

It downloads/reads every image and audio file, embeds them as data URIs, injects them into assets/player-template.html, and writes stories/{slug}/{slug}_story.json + stories/{slug}/{slug}.html. Read references/build-html.md for what it does, options, and how to do it by hand if the script can't run.

On Windows use python; on macOS/Linux use python3. Stdlib only — no installs needed.

Stage 3 — HARD GATE: review the storybook

Report:

  1. Output path: stories/{slug}/{slug}.html, its size (MB), and scene count
  2. Any warnings the build emitted (missing image/audio for a scene)
  3. A one-liner: "Open stories/{slug}/{slug}.html in your browser to read the finished storybook."

Then prompt:

Storybook built — open it and review, then reply:

  • done to finish
  • rebuild to regenerate the HTML (e.g. after swapping an image/audio file)
  • fix image N / fix audio N — if a scene's media is wrong, regenerate it upstream (illustrator/narrator), then rebuild

This is the final review surface — the user reads the actual storybook here. Don't declare success before they've had the chance to open it.

⚠️ The .html can be large (several MB) because media is embedded. It opens fine in a browser but may be slow to preview inside a chat/artifact viewer — tell the user to open it locally in a real browser.

Show full SKILL.md (249 more words)Show less
Stage 4: Finish

On done, confirm in one line: "Storybook ready: stories/{slug}/{slug}.html ({N} scenes, {size} MB). Fully self-contained — share or host it anywhere."

What the finished storybook does

  • A dedicated cover page (slide 0): the first illustration shown clean — no overlaid title text, no scrim, no glyph — with the title in the header. It plays the optional spoken title clip, then auto-advances into scene 1.
  • One scene per screen after that: illustration + narration text, controls in a fixed footer
  • Tap the image (or the footer play button) to play/pause the scene's narration. No play glyph is drawn on the image.
  • Swipe (left = next, right = prev), arrow keys, on-screen buttons, or tap a progress dot to navigate
  • Auto-play toggle: when a scene's narration ends, advance to the next scene. Every slide is uniform (one image, one clip, advance on ended) — no title→body audio chaining
  • A "The End" screen with a "Read again" button at the finish
  • Serif body text matching the serif title, LTR English, warm storybook styling, responsive (phone + desktop), no external dependencies

What this skill does NOT do

  • Does NOT generate new content (text/images/audio) — it only packages.
  • Does NOT upload anywhere — local file output only. (The result is portable; the user can host it wherever.)
  • Does NOT modify upstream artifacts.
  • Does NOT support multiple stories per run — one story per invocation.

Reference files

© hassancs91, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references, assets) in .claude/skills/story-html-publisher of hassancs91/claude-image-generation.

  • SKILL.md
  • assets/build_html.py
  • assets/player-template.html
  • references/build-html.md

Open the folder on GitHubat commit f533831

Compare with similar skills

Story HTML Publisher next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Story HTML Publisher compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Story HTML Publisher this skillhassancs91/claude-image-generation102—~1.7kAutomated safety check: PassMIT
Gimi IllustrationGiMi-Xiaomi/gimi-illustration-skill703—~1.7kAutomated safety check: PassMIT
Hand Drawnthreerocks/hand-drawn-styles2.2k—~398Automated safety check: PassMIT
Imagegen Frontend Webcaorushizi/oss-client11314 repos~9.2kAutomated safety check: PassNone
Ky Design To HTMLKyrieCheungYep/ky-design-to-html-skill163—~2.8kAutomated safety check: PassNone
Run Umbraco UIumbraco/Umbraco.UI152—~1.2kAutomated safety check: PassMIT

Similar skills

  • Gimi Illustration

    GiMi-Xiaomi/gimi-illustration-skill

    Multi-style illustrations from Chinese article text (配图 / illustration): quirky sketch, warm storybook, product proposal; OR custom IP enrollment (自定义 IP / 录入 IP / 上传形象 / 新建 IP).

    703 GitHub stars~1.7k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Hand Drawn

    threerocks/hand-drawn-styles

    A skill your agent uses when users ask for a hand-drawn or illustrated image prompt, name one of the repository's 20 numbered styles or the 3.1 stable variant, or mention triggers such as…

    2.2k GitHub stars~398 tokensUpdated 2 days ago
    Legal & ComplianceAuto-check passed
  • Imagegen Frontend Web

    caorushizi/oss-client

    Elite frontend image-direction skill for generating premium, conversion-aware website design references.

    113 GitHub starsUsed in 14 repos~9.2k tokens
    Frontend & DesignAuto-check passed
  • Ky Design To HTML

    KyrieCheungYep/ky-design-to-html-skill

    Convert visible UI references such as screenshots, exported mockups, Figma frame images, SaaS empty states, dashboards, and landing page screenshots into high-quality HTML/CSS by decomposing layout…

    163 GitHub stars~2.8k tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Run Umbraco UI

    umbraco/Umbraco.UI

    Build, run, and drive the Umbraco.UI (UUI) web-component library via its Storybook.

    152 GitHub stars~1.2k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Wonder Blocks

    Khan/wonder-blocks

    Implements user interfaces using the Wonder Blocks (WB) design system — Khan Academy's React component library.

    163 GitHub stars~3.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from hassancs91/claude-image-generation

  • 3D Image Renderer

    hassancs91/claude-image-generation

    Generate PNG images by building a real Three.js 3D scene and capturing one frame headlessly — no image model involved.

    102 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Cf Image

    hassancs91/claude-image-generation

    Generate an image from a text description using Cloudflare Workers AI (the flux-1-schnell model).

    102 GitHub stars~867 tokensUpdated 1 mo ago
    Auto-check: notes
  • Prompt To Design

    hassancs91/claude-image-generation

    Generate a polished PNG graphic from a text prompt and an aspect ratio.

    102 GitHub stars~3.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Scene Splitter

    hassancs91/claude-image-generation

    Splits a plain English story into a numbered list of SCENES — each scene being one moment that gets exactly one illustration AND one narration clip downstream.

    102 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Story Narrator

    hassancs91/claude-image-generation

    Generates one expressive narration MP3 per scene for an English storybook, using the ElevenLabs MCP (texttospeech).

    102 GitHub stars~2.5k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Story HTML Publisher

What does Story HTML Publisher do?

Final step of the AI Storybook pipeline. An agent skill from hassancs91/claude-image-generation. Story HTML Publisher is an agent skill from hassancs91/claude-image-generation. Final step of the AI Storybook pipeline.

When should I use Story HTML Publisher?

Story HTML Publisher fits situations like: the user wants to build the final storybook; package the story; make the storybook file; generate the HTML.

How do I install Story HTML Publisher in Claude Code?

Run `npx skills add hassancs91/claude-image-generation --skill story-html-publisher -a claude-code`. Or copy the skill folder (.claude/skills/story-html-publisher in hassancs91/claude-image-generation) into .claude/skills/story-html-publisher in your project. Claude Code loads it when a task matches its description.

How do I install Story HTML Publisher in Codex?

Run `npx skills add hassancs91/claude-image-generation --skill story-html-publisher -a codex`. Or copy the skill folder (.claude/skills/story-html-publisher in hassancs91/claude-image-generation) into .agents/skills/story-html-publisher in your project. Codex loads it when a task matches its description.

Can I use Story HTML Publisher in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hassancs91/claude-image-generation --skill story-html-publisher -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/story-html-publisher, .gemini/skills/story-html-publisher, .github/skills/story-html-publisher and .opencode/skills/story-html-publisher in your project.

What does Story HTML Publisher need to run?

Going by SKILL.md and its folder, Story HTML Publisher needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Story HTML Publisher access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Story HTML Publisher safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Story HTML Publisher use?

Story HTML Publisher is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Story HTML Publisher use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Story HTML Publisher?

Skills that share tags, products or a category with Story HTML Publisher: Gimi Illustration (GiMi-Xiaomi/gimi-illustration-skill, 703 stars), Hand Drawn (threerocks/hand-drawn-styles, 2.2k stars), Imagegen Frontend Web (caorushizi/oss-client, 113 stars) and Ky Design To HTML (KyrieCheungYep/ky-design-to-html-skill, 163 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Story HTML Publisher?

hassancs91 (a GitHub user) maintains it in hassancs91/claude-image-generation, which has 102 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 18, 2026.

Source: hassancs91/claude-image-generation on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.