autonovel-export

autonovel-export is a skill for Claude Code from DukeTwoCan/autonovel-agent-skills. It costs 90 tokens per session (2,139 once invoked), scanned A, original, MIT.

The final production step for a completed novel, turning chapter files into a PDF, an ePub ebook, and audiobook-ready transcript chunks. PDF creation uses LaTeX, a document typesetting system.

In plain words
What is it for?
Use it after all chapters are drafted to create the novel's PDF and ePub, plus transcript pieces that can be sent to a separate text-to-speech service.
Why use it?
It gathers separate manuscript chapters into reader-ready files and identifies when a local PDF typesetting tool is unavailable. The ePub and transcript outputs can still be produced without it.

Skill for Claude Code

Written for Claude Code: dynamic context !`command`.

Good fit Use it after all chapters are drafted to create the novel's PDF and ePub, plus transcript pieces that can be sent to a separate text-to-speech service.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duketwocan/autonovel-agent-skills/autonovel-export
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 DukeTwoCan/autonovel-agent-skills --skill autonovel-export
Clone the repo
git clone --depth 1 https://github.com/DukeTwoCan/autonovel-agent-skills

Made for: Claude Code.

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 autonovel-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/duketwocan/autonovel-agent-skills/autonovel-export/github.svg)](https://agentmods.dev/skills/duketwocan/autonovel-agent-skills/autonovel-export)
Your own site
<a href="https://agentmods.dev/skills/duketwocan/autonovel-agent-skills/autonovel-export"><img src="https://agentmods.dev/badge/skills/duketwocan/autonovel-agent-skills/autonovel-export/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for autonovel-export

Your own site · 80×15
<a href="https://agentmods.dev/skills/duketwocan/autonovel-agent-skills/autonovel-export"><img src="https://agentmods.dev/badge/skills/duketwocan/autonovel-agent-skills/autonovel-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,139 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.00090 $0.02139
Opus 5 $0.00045 $0.01069
Sonnet 5 $0.00018 $0.00428
Haiku 4.5 $0.00009 $0.00214

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

Security

Grade A, and why

autonovel-export 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 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (lib/build_epub.py, lib/build_tex.py, lib/chunk_audio.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.

skills/creative/autonovel-export/SKILL.md · 182 lines

How it starts

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

Autonovel — Phase 4 (Export)

Typeset the completed novel and produce final deliverables.

When to use this skill

  • State.json shows "phase": "export" (set by consistency-pass when cycles exhausted)
  • User says "export the novel" / "build the PDF" / "make the ePub"

Prerequisites

!`cd "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG" && ls chapters/*.md | wc -l && cat state.json | python -c "import json,sys; s=json.load(sys.stdin); print(s.get('phase'), s.get('chapters_drafted'))"`

Need: all chapters drafted, state.json phase is "export" (or user explicitly overriding).

For PDF: use a local xelatex/pdflatex installation or the repository's optional container toolchain. Check for a local engine:

!`which pdflatex || which xelatex || echo "no LaTeX engine found"`

If neither is found, look for compose.tools.yaml at the repository root and use the container command in Step 3. If neither native LaTeX nor Docker is available, skip PDF with a warning; ePub and transcript chunks still work.

Workflow

Step 0 — Unpaid foreshadow check

If story_state/facts.json does not exist, skip this step silently — the novel predates the story-state ledger (Module A) and has no foreshadow tracking. Otherwise run:

!`python3 ${HERMES_SKILL_DIR}/lib/story_state.py unpaid "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG/story_state/facts.json"`

If any items print, list them to the user with their setup chapters before proceeding. Export continues regardless (a dangling thread may be intentional / sequel-bait) — this is a warning, not a gate.

Step 1 — Confirm title and author

Read state.json for novel_slug. Ask the user for the title (display title, may differ from slug) and author byline.

Step 2 — Content-notes front matter (if applicable)

Read profile from state.json and read the normalized selected packs from genre_context/resolved.json's selected_pack_ids. Let Intimacy be selected only when "intimacy" is in that list; do not re-resolve pack selection from display tags. A non-empty profile.content_tags still implies Intimacy because the resolver records "intimacy" in selected_pack_ids for that profile. If profile.rating is M or E, or Intimacy is selected, build a content-notes line:

Read the full file on GitHub · 182 lines

Files

What ships with it

6 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. 12d ago First seen · 182 lines · 90 tokens per session scan A a325822c5d0c

Subscribe to this mod's changes

autonovel-export is a skill published in the GitHub repository DukeTwoCan/autonovel-agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 2,139 once invoked, about $0.0005 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.