Novel Writing Workflow V2: Managing Novel Fiction and Continuity Audit with File Contracts

Preface

The common pain point in writing long-form works with dialogue models isn’t “getting stuck on a single chapter,” but rather by the time you reach chapter ten or so, character relationships, prop states, information-acquisition paths, and earlier settings start drifting out of sync. Switching to a new conversation to continue writing, the model often has to guess from summaries, and changing one thing drags others along. If outlines, character cards, and chapter texts are scattered across chat records, it’s also hard to do rollback-capable version management.

The following is a community Skill on SkillHub: “Long-Form Fiction Writing Workflow V2” (coordinate @user_59dee265/d-writer, current version 4.2.0). It structures a book project as a set of agreed-upon directories and Markdown / JSON files, uses serial chapter transactions and multi-layer gates to constrain writing and auditing, and suits long-form fiction projects that need persistent story state, cross-session continuation, and continuity checks.

What This Is

One-line positioning: A tool-agnostic workflow for long-form fiction writing that maintains the story bible and runtime state via a “files-first” approach, and pairs it with mechanical gates, style contracts, informed continuity, and blind cold-read quality checks.

Maintenance and source: Published by SkillHub community user user_59dee265, categorized under content-creation, with a source tag of community; the tags indicate requires_api_key=false, meaning no additional API key is required. The metadata name inside the Skill package is dragon-writer, and the public display name is “Long-Form Fiction Writing Workflow V2.”

Problem it solves: According to the official description, it targets long-form fiction that needs persistent story state and continuity auditing—creating a new book, continuing chapters, importing old manuscripts, adjusting direction, rewriting chapters, safe rollback, or reading / reconstructing outline and settings files across multiple sessions. It is explicitly not for one-off short-text generation or simple copy editing.

Core Features

All capabilities below are taken from the Skill package’s SKILL.md and the various references/workflow-*.md files.

Seven Work Modes

The Agent recognizes the mode based on user intent and reads the corresponding reference document:

  1. Mode A · New Book: Build a book from an inspiration / title / genre, initializing directories and basic settings files.
  2. Mode B · Continue: Continue writing the next chapter on top of existing outline, settings, chapters, and state files.
  3. Mode C · Import: When old chapters already exist but state files are weak, import them and complete the contract files.
  4. Mode D · Pivot / Revise: Change direction, continue writing from a specified position, or patch the narrative.
  5. Mode E · Rewrite / Fix: Rewrite the text of a specific chapter.
  6. Mode F · Dashboard: View progress, settings completion, character relationships, or locally read chapters (dashboard.html).
  7. Mode G · Merge Review: After multiple chapters are done, perform an inter-chapter blind cold-read merge review on selected chapters.

File Contracts and Foundation / Runtime Separation

  • Files first: Outline, settings, characters, rules, chapters, and state files are the authoritative source.
  • No overwriting canon: Unless the user explicitly requests rewriting, do not alter already-written content; when uncertain, append dated notes.
  • Separate static foundation from runtime state: Foundation (premise, world laws, volume-chapter map, stable character traits, rulebook) changes only when the user requests it or when there is a directional pivot; Runtime (current state, hooks, summaries, focus, audit drift, prop ledger, spatial anchors, character card timelines, etc.) updates per chapter.

Serial Chapter Transactions and Four Quality Gates

The state machine for each chapter is prepared → drafted → gated → audited → closed, driven by scripts/chapter_txn.py; only a full closed state allows preparing the next chapter. Mandatory steps include:

  • Mechanical gate: Minimum word count and evidence of intent-scene nodes.
  • Style contract gate: scripts/check_style_contract.py verifies that story/style_guide.md contains real text samples and compares statistical fingerprints such as sentence length.
  • Informed continuity gate: The main agent checks time, space, information access, relationship access, etc., against project files; reports must include traceable file and paragraph references.
  • Blind cold-read: A fresh sub-agent reads only the chapter text, reports only reader-visible issues, and does not modify the text.

When building a book, you must choose from the 30 voices in references/style-presets/ (or mix layers, with only one stylistic layer), writing them into story/style_guide.md and story/style_exemplars.md; the Skill requires “no book should begin writing without a voice contract.”

Local Dashboard

init_book.py copies assets/dashboard.html into the book directory. Users can double-click to open it in Chrome / Edge; after granting access to the book root directory for the first time, it reads book.json, chapters/*.md, and story/*.md locally in the browser, allowing you to view overview, settings completion, character relationships, and chapter reading; data is not uploaded, and the dashboard does not modify book files.

Skill Self-Update (Optional)

_meta.json defaults to update.auto_check=false. When the user explicitly requests an update, you can run within the Skill directory:

python scripts/auto_update.py status --verbose   # only check remote version, do not download
python scripts/auto_update.py check --force      # check and apply updates (will modify skill)

The remote version query comes from the SkillHub API (slug=d-writer). You can set update.enabled to false in _meta.json to completely disable update capability.

Installation and Activation

The official SkillHub page gives the following installation guide: install the coordinate @user_59dee265/d-writer via the SkillHub installation documentation.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, you can run the full installation script (recommended by the documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install this Skill into the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by the Agent, otherwise the default ./skills/ may not be loaded. Common paths documented are:

Agent skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ in the project

Example under Cursor:

skillhub install @user_59dee265/d-writer --dir ~/.cursor/skills/

After installation, restart or refresh the Agent according to the client’s requirements to load the new Skill. This Skill does not bind to a specific writing CLI; reading, writing, and script execution rely on the Agent’s built-in file and command capabilities.

Typical Usage

The following steps are extracted from references/workflow-new-book.md and the “Start here” section of SKILL.md; you can trigger them via natural language in conversation, and the Agent will execute them by mode.

Create a New Book (Mode A)

  1. Agree on the project root directory, defaulting to books/<slug>/, to avoid overwriting existing directories.
  2. Initialize the blank template (without example fiction text):

Run within the Skill package directory (--title is required, others have defaults):

python scripts/init_book.py --title "Book Title" --genre "Urban Fantasy" --chapter-word-count 4000 --root books
  1. Fill in book.json (book title, language, genre, chapterMinChars and other hard minimums), author_intent.md, story_frame.md, volume_map.md, character profiles and book_rules.md, current_state.md, and other basic files.
  2. Select a style preset and write style_guide.md / style_exemplars.md.
  3. After the basic files are ready, save the closed snapshot for Chapter 0:
python scripts/snapshot_book.py <book-dir> --chapter 0 --type closed
python scripts/snapshot_book.py <book-dir> --chapter 0 --type closed --verify

If the user requests writing text immediately, then proceed to Mode B to write Chapter 1.

Continue One Chapter (Mode B)

Before touching files, read references/file-contract.md, references/chapter-protocol.md, and references/chapter-craft.md. Before continuing, you can run build_work_packet.py to rebuild the current chapter’s work packet from disk. Each chapter must complete the transaction and pass the four gates, registered by chapter_txn.py; without closed, you may not start writing the next chapter.

View Progress (Mode F)

Confirm books/<book-id>/dashboard.html exists (if missing, copy it from assets/dashboard.html once without overwriting existing files). Inform the user to double-click the HTML, authorize the book root directory in the browser, and view it locally.

Example dialogue (illustrative, not fixed commands):

  • “Use d-writer to start a new book in books/my-xuanhuan, urban fantasy, at least 4000 words per chapter.”
  • “Continue the next chapter in books/my-xuanhuan, first read the unresolved warnings in audit-drift.”
  • “Open this book’s dashboard, I want to see character relationships and the chapter list.”

Applicable Scenarios and Notes

Who it suits

  • Novelists who plan to write multiple chapters and volumes and need to keep settings and text consistent across multiple sessions.
  • Teams or individuals willing to put the project on disk and accept file contracts and script gates.
  • Users who need to import old manuscripts, rewrite single chapters, or use snapshot rollback, rather than one-off short-text generation.

What it doesn’t suit

  • One-off short texts, slogan copywriting, or tasks that only polish text without maintaining a book project (as explicitly excluded in the Skill description).

Usage notes

  • Single writer serially: During continuous writing, sub-agents are forbidden to write text or pre-write later chapters; the cold-read sub-agent must start in a background-free manner only after the draft is frozen and passes the mechanical gate.
  • Style contract is a hard prerequisite: A style file with only a list of adjectives will be deemed unqualified and cannot pass the style gate for closure.
  • Drift must be read back: Before continuing / rewriting, read the unresolved items in audit-drift.md to avoid “write-only, read-none” bypassing the gates.
  • Platform rules and genre: The Skill states that genre is only a technique hint and not used to reject user genres; the host platform’s content policy still applies independently.
  • Statistical metrics: Ratings and download counts on the SkillHub page and scraped materials may change; when writing, use the real-time data from the SkillHub list page (scraped record: rating 100000, downloads 3486).

Conclusion

Long-Form Fiction Writing Workflow V2 treats “a book” as an auditable file project: state is persisted on disk, chapters are closed via transactions, and quality is layered through gates and cold-reads rather than relying on one-off conversation memory. If your project is long-form fiction and values continuity, you can install @user_59dee265/d-writer from SkillHub to try it.

  • SkillHub page: https://www.skillhub.cn/skills/user_59dee265/d-writer
  • Official coordinate page: https://api.skillhub.cn/user_59dee265/d-writer
  • Installation guide: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye