Skip to main content

Spec-driven long-form novel creation — Spec-first workflow for AI-assisted storytelling

Project description

NovelSpec

Spec-driven long-form novel creation for AI coding assistants.

Inspired by OpenSpec (spec-driven development for AI coding), NovelSpec brings the same philosophy to storytelling:

Agree on the world before you write a single word.

Philosophy

→ spec-first not improv-first
→ iterative not waterfall
→ structured enough to keep AI consistent
→ flexible enough to change your mind
→ scalable from short stories to epic sagas

How It Works

                        NovelSpec Workflow

╔══════════════════════════════════════════════════════╗
║               SETUP PHASE                            ║
║                                                       ║
║   /novel:init → /novel:worldbuild → /novel:outline    ║
║        │               │                  │           ║
║        │        (iterate)          (batch per part)   ║
╚════════╪═══════════════╪══════════════════╪═══════════╝
         │               │                  │
         ▼               ▼                  ▼
╔══════════════════════════════════════════════════════╗
║              WRITING PHASE                           ║
║                                                       ║
║   /novel:write → review → /novel:revise → continue    ║
║                                                       ║
╚══════════════════════════════════════════════════════╝
         │               │                  │
         ▼               ▼                  ▼
╔══════════════════════════════════════════════════════╗
║              EVOLUTION PHASE                         ║
║                                                       ║
║   /novel:propose → discuss → /novel:accept → archive  ║
║                                                       ║
║   /novel:audit (weekly or on demand)                  ║
║                                                       ║
╚══════════════════════════════════════════════════════╝

Quick Start

# Install
pip install novelspec

# Create a new novel project
novelspec init my-novel
cd my-novel

# In your AI assistant (Claude Code, Cursor, Windsurf...):
# /novel:worldbuild  →  describe your story materials
# /novel:outline part-01  →  create chapter outlines
# /novel:write       →  start writing chapters

Project Structure

my-novel/
├── novel.yaml                      # Metadata
├── world/                          # World-building
├── characters/                     # Character profiles
├── plot/                           # Plot, outlines, foreshadowing
├── style/                          # Narrative style guide
├── prompts/                        # Agent working instructions
├── state/                          # Writing progress tracker
├── chapters/                       # Chapter drafts
├── framework/                      # Framework change proposals
└── meta/                           # Changelog

Slash Commands

Command Purpose
/novel:init Initialize a new novel project
/novel:worldbuild Generate world framework from your materials
/novel:outline Create chapter outlines per part
/novel:write Write the next chapter
/novel:show Read written content
/novel:revise Revise a chapter (auto-saves history)
/novel:propose Propose a framework change
/novel:accept Accept and apply a framework change
/novel:archive Archive completed proposals
/novel:audit Consistency audit
/novel:status Show writing progress

Three-Level Storage

  • L1 - Framework layer (world/ + characters/ + plot/ + style/): Stable, rarely changes
  • L2 - State layer (state/): Updates daily, compact
  • L3 - Output layer (chapters/): Full drafts, only summary.md referenced for context

This prevents context window explosion in long novels.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

novelspec-1.2.0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

novelspec-1.2.0-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file novelspec-1.2.0.tar.gz.

File metadata

  • Download URL: novelspec-1.2.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for novelspec-1.2.0.tar.gz
Algorithm Hash digest
SHA256 74616526b93974aa8f1cf5fe05ccf6215697d709899d3eb102a681244abdda85
MD5 b40a186f233559dec9540498670942ab
BLAKE2b-256 81b981467602aae69b547346aab1da4aad5ea1e37077efb644975a6637cb6d20

See more details on using hashes here.

Provenance

The following attestation bundles were made for novelspec-1.2.0.tar.gz:

Publisher: publish.yml on liemei/novelspec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file novelspec-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: novelspec-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for novelspec-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d5553e4753481147a33e857ae338851fbf1aee080f6e50d8c869c580e71abb6
MD5 069e8f619bfa32534f71fec4e9eae382
BLAKE2b-256 249ba46558e319bac9a8105cb9585f79363464118bf0108e015b2a8563c79d4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for novelspec-1.2.0-py3-none-any.whl:

Publisher: publish.yml on liemei/novelspec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page