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.0.1.tar.gz (15.2 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.0.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for novelspec-1.0.1.tar.gz
Algorithm Hash digest
SHA256 eb82dd61bd54866d9082bb076b4ad2850e5ca14d19cc622585835cd0f262453a
MD5 3286fc46fc26d4c1b05609c002518758
BLAKE2b-256 3dc517cff2a5c7e850b191ea0a316992cd0471273a0450a7b4c6613f4bbded82

See more details on using hashes here.

Provenance

The following attestation bundles were made for novelspec-1.0.1.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.0.1-py3-none-any.whl.

File metadata

  • Download URL: novelspec-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e280d1e816c95e8d8a98ab332d1979f08fd4f0474933ae3903df975ce8a1716
MD5 5e40b8e20bf2df2ad918a5f57843b472
BLAKE2b-256 64c8d11c2028703ec53fded7629d268bb8af24f0817582f88dce637ab793ff49

See more details on using hashes here.

Provenance

The following attestation bundles were made for novelspec-1.0.1-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