publish-novel

publish-novel is a skill for Claude Code, Codex from comfuture/novelist. It costs 72 tokens per session (1,946 once invoked), scanned A, original, MIT.

A guide for packaging a Markdown novel project as a validated EPUB, the standard ebook file format. It checks the book's source files and assets before producing the ebook output.

In plain words
What is it for?
Use it to publish, export, rebuild, or check a novel's EPUB, including its metadata, chapters, cover, illustrations, generated files, and container integrity.
Why use it?
An ebook can fail in reading software because of missing chapters, incorrect metadata, broken images, or packaging errors. Validation helps find these problems before the file is used.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions AGENTS.md.

Part of the novelist plugin — 9 skills shipped together

Good fit Use it to publish, export, rebuild, or check a novel's EPUB, including its metadata, chapters, cover, illustrations, generated files, and container integrity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comfuture/novelist/publish-novel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add comfuture/novelist --skill publish-novel
Clone the repo
git clone --depth 1 https://github.com/comfuture/novelist

Made for: Claude Code, Codex.

Or install novelist, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for publish-novel

README.md
[![agentmods](https://agentmods.dev/badge/skills/comfuture/novelist/publish-novel.svg)](https://agentmods.dev/skills/comfuture/novelist/publish-novel)
Your own site
<a href="https://agentmods.dev/skills/comfuture/novelist/publish-novel"><img src="https://agentmods.dev/badge/skills/comfuture/novelist/publish-novel.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01946
Opus 5 $0.00036 $0.00973
Sonnet 5 $0.00014 $0.00389
Haiku 4.5 $0.00007 $0.00195

Measured 8d ago against content hash 294404050f1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

publish-novel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/build_epub.py, tests/test_build_epub.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/novelist/skills/publish-novel/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Publish Novel

Before running a bundled command, resolve <skill-dir> to the absolute directory containing this SKILL.md, and resolve <skills-dir> to its parent directory. Keep --project-root pointed at the active novel workspace, not at the skill or plugin installation.

Operating Contract

Turn an author request such as "Publish this novel" into the complete EPUB workflow. Do not ask the author to type shell commands. Run the bundled script yourself, verify the result, and report the artifact path.

Treat Markdown and project assets as canonical source. Treat published/epub/ and .epub files as generated output. Never repair a generated EPUB by hand; update source and republish.

Retain both outputs after a successful build. published/epub/ is the inspectable staging tree, while published/*.epub is the ZIP-based EPUB container intended for reading software. Rebuilding may replace the contents of the staging tree, but publication must not delete it after packaging.

Interpret publish as local EPUB generation only. Do not upload, distribute, email, release, or submit the book to a storefront or external service unless the author explicitly requests that separate action.

Do not invoke analytical-review merely because the author asks to publish, export, build, regenerate, package, or validate an existing novel. Ordinary publication retains the structural and continuity preflight below. When a fully autonomous start-to-publication workflow was explicitly authorized, the orchestrating storytelling workflow must complete analytical review, finding disposition, revision, and bounded regression review before handing the manuscript to this skill. Keep literary judgment out of build_epub.py.

Workflow

1. Read Publication Context

Read:

  • AGENTS.md
  • project.md
  • published/README.md
  • publishable chapter filenames and frontmatter, plus image references needed for packaging
  • style/visual-style-guide.md
  • existing files under assets/cover/ and assets/illustrations/

Read the full file on GitHub · 196 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 196 lines · 72 tokens per session scan A 294404050f1a

Subscribe to this mod's changes

publish-novel is a skill published in the GitHub repository comfuture/novelist (5 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 1,946 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.