autonovel-drafting

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

A chapter-by-chapter novel-drafting workflow that follows a detailed plot outline and checks each chapter for repeated or weak writing.

In plain words
What is it for?
Use it to draft the remaining chapters of a novel, review them with automated checks, and rewrite flagged passages.
Why use it?
It reduces the need to track drafting progress and find mechanical problems manually across a long manuscript.

Skill for Claude Code

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

Good fit Use it to draft the remaining chapters of a novel, review them with automated checks, and rewrite flagged passages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duketwocan/autonovel-agent-skills/autonovel-drafting
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-drafting
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-drafting

README.md
[![agentmods](https://agentmods.dev/badge/skills/duketwocan/autonovel-agent-skills/autonovel-drafting/github.svg)](https://agentmods.dev/skills/duketwocan/autonovel-agent-skills/autonovel-drafting)
Your own site
<a href="https://agentmods.dev/skills/duketwocan/autonovel-agent-skills/autonovel-drafting"><img src="https://agentmods.dev/badge/skills/duketwocan/autonovel-agent-skills/autonovel-drafting/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-drafting

Your own site · 80×15
<a href="https://agentmods.dev/skills/duketwocan/autonovel-agent-skills/autonovel-drafting"><img src="https://agentmods.dev/badge/skills/duketwocan/autonovel-agent-skills/autonovel-drafting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,935 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.00098 $0.02935
Opus 5 $0.00049 $0.01468
Sonnet 5 $0.00020 $0.00587
Haiku 4.5 $0.00010 $0.00294

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

Security

Grade A, and why

autonovel-drafting 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 9 executable files (lib/chapter_patch.py, lib/genre_models.py, lib/genre_patterns.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-drafting/SKILL.md · 237 lines

How it starts

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

Autonovel — Phase 2 (Drafting)

Draft each chapter in sequence from the scene-level outline. Per-chapter loop: draft → mechanical gates → surgical rewrite loop → grading gate (see references/surgical-rewrite.md).

When to use this skill

  • State.json shows "phase": "drafting"
  • Foundation complete; outline.md has scene-level beats; world/characters/voice/canon all present
  • chapters_drafted < chapters_total (or chapters_total is 0 and we need to count from outline)

Prerequisites

!`cd "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG" && ls -la outline.md world.md characters.md voice.md canon.md`
!`cat "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG/state.json"`

If any foundation file is missing, hand back to autonovel-foundation.

Workflow

Step 1 — Resolve the next chapter

Read chapters_drafted + 1 as the next chapter number. New foundations already carry chapters_total. For a legacy drafting state where it is zero, count the validated outline headings for the loop bound; the first atomic checkpoint persists that derived count. Do not edit state.json by hand.

Step 2 — Draft loop

For each chapter index N from chapters_drafted + 1 to chapters_total:

a. Compile and build context for chapter N. At the start of every chapter, run the deterministic preflight before spending a model call:

python ${HERMES_SKILL_DIR}/lib/validation.py preflight "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG" --chapter N

Nonzero exit means the accepted foundation does not contain a safe drafting packet for this chapter. Report the returned issue codes and stop this chapter; the command does not mutate state. After preflight, re-run the task-specific resolver (unchanged inputs use its fingerprint cache):

python ${HERMES_SKILL_DIR}/../autonovel/lib/genre_resolver.py compile --state "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG/state.json" --workspace "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG" --task drafting.chapter

Read:

  • outline.md — get the scene-beat section for chapter N
  • world.md, characters.md, voice.md, canon.md — full
  • chapters/ch_{N-1:02d}.md if N > 1 — get the last 1000 words for continuity (prose texture and immediate scene state; NOT a source of facts — see the STORY STATE block below, which replaces re-reading older chapters for facts)
  • references/chapter-prompt.md (THIS SKILL's reference dir) — get the chapter draft template
  • genre_context/story-contract.md — the persistent story-specific genre promises
  • genre_context/compiled/drafting.md — the bounded static drafting packet
  • genre_context/compiled/evaluation-chapter.md — the profile-compliance and semantic genre-slop criteria used by Gate 4
  • genre_context/resolved.json — selected-pack metadata and the generated pattern-bundle pointer used by the mechanical scan
  • profile from state.json — rating, exclusions, and content tags to match against the outline coverage map; do not reopen source pack Markdown from Drafting
  • STORY STATE block (if story_state/facts.json exists — see references/fact-extraction.md for how it's populated):
    !`python3 ${HERMES_SKILL_DIR}/lib/story_state.py query "$AUTONOVEL_WORKSPACE/$NOVEL_SLUG/story_state/facts.json" {N} <characters-in-this-beat>`
    
    <characters-in-this-beat> = the entity keys of characters named in chapter N's outline beat (space-separated CLI args). Include the returned facts and participating characters in {GENRE_DRAFTING_BLOCK} rather than duplicating a separate story-state block. Budget: this story-state portion must stay <= 1.5k tokens; this cap does not include or truncate the story contract or compiled drafting packet. If the query runs longer, narrow the subject list further to only the characters actually on-page in this beat rather than the full cast. If story_state/facts.json does not exist yet, skip this block — it is created on the first chapter's fact-extraction step (references/fact-extraction.md).

Read the full file on GitHub · 237 lines

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 · 237 lines · 98 tokens per session scan A 164926171886

Subscribe to this mod's changes

autonovel-drafting is a skill published in the GitHub repository DukeTwoCan/autonovel-agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 2,935 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.

Related

Other skills, from other repositories