lingfengQAQ/webnovel-writer
基于 Claude Code 的长篇网文辅助创作系统,解决 AI 写作中的「遗忘」和「幻觉」问题,支持 200 万字量级 连载创作。
What it solves
Writing a long web novel (hundreds of chapters) is hard because the AI tends to forget earlier setup: characters' motives drift, power levels and timelines contradict each other, foreshadowing gets lost, and pacing falls apart. This plugin turns those "must-remember" rules into automatic steps inside Claude Code: before writing, it checks past facts; after writing, it records new facts, reviews consistency, and updates the project state so nothing is forgotten.
How it works
The plugin installs as a Claude Code plugin and provides eight slash commands (e.g., /webnovel-init, /webnovel-plan, /webnovel-write, /webnovel-review). Each command triggers one or more specialized agents (Context, Reviewer, Data, Deconstruction) that work with a central fact store called the "Story System". Every chapter goes through a pipeline: preflight checks, context retrieval, drafting, multi-dimensional review, polish, fact extraction, and a commit that updates state files, search indexes, summaries, long-term memory, and a read-only dashboard. The system treats "how to write" (style and pacing) and "what happened" (facts) separately—facts must be registered, reviewed, and archived.
Who it's for
Writers who use Claude Code and want to produce long, consistent Chinese web novels (like cultivation, urban, romance, or mystery genres). It's also for developers contributing to the plugin—the repository includes genre templates, review dimensions, dashboard improvements, RAG/retrieval enhancements, and cross-platform fixes. The README targets both end users and contributors, with installation, configuration, and development instructions.
Highlights
- Eight slash commands covering initialization, planning, writing, review, query, learning, dashboard, and health-check.
- A Story System with contracts, chapter commits, and event audit—facts flow from the main chain to derived views (state JSON, databases, summaries, memory).
- A read-only visualization dashboard showing project status, entity graph, chapter content, foreshadowing, and reader-retention data.
- Built-in 37 Chinese web novel genre templates, and support for mixing genres.
- RAG (retrieval) with optional embedding and reranker—automatically falls back to BM25 keyword search if no API key is set.
- Chapter-level backups, phased initialization, and status reports that tell you if a step is done, partially done, needs your decision, or failed.
- CLI tools for preflight checks, project status, doctor, write-gate validation, and projection replay.
- Open source under GPL v3, with a marketplace install and Python 3.10+ requirement.
Related
- Project
- Project
- Project
- Project