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

Uploaded Python 3

File details

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

File metadata

  • Download URL: novelspec-1.0.0.tar.gz
  • Upload date:
  • Size: 15.1 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.0.tar.gz
Algorithm Hash digest
SHA256 09012abe481cf478deb33748f66bed258b6c3d0036bf551e96c61eb660941fa5
MD5 30376e2f05d39a1adfe75af696d2fc1a
BLAKE2b-256 b1f4ceab95e0cf0bcb5dd637435ce4a8b43dafb13f9d68d5246a03d15b9c02d7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: novelspec-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4012ff88e04e5c33eefef23ec115b158ae78275c493057980f71a602741efd5
MD5 418da3573176a009db7b6a242ec46dc4
BLAKE2b-256 8d5b3f54e80a947a630511c1be92762bb724949ebcdd4bfee3c867b5c386f1e2

See more details on using hashes here.

Provenance

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