New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Structured, rule-driven chapter writing pipeline that drafts, reviews, polishes, and commits publishable chapters with runtime contract checks.

skills.sh installs
916
GitHub stars
8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full chapter flow: context prep, drafting, one-pass review, polishing, data extraction, commit, and backup
  • Offers --fast and --minimal modes that skip steps while still logging a no-review artifact for the commit chain
  • Enforces hard gates: no skipped or merged steps, subagent-only review, and a blocking stop when review issues go unresolved
  • Designed for serialized web fiction projects that keep story state in a .story-system/ contract and .webnovel/ store

Install

$ npx -y skills add lingfengqaq/webnovel-writer --skill webnovel-write -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

写章流程

目标

产出可发布章节到 正文/第{NNNN}章-{title}.md。默认 2000-2500 字,用户/大纲另有要求时从之。

模式

模式流程
默认Step 1→2→3→4→5→6
--fastStep 1→2→3(轻量)→4→5→6
--minimalStep 1→2→3(写 no-review artifact)→4(仅排版)→5→6

硬规则

  • 禁止并步、跳步、伪造审查
  • 必须使用 Agent 工具调用指定 subagent;不得用主流程口头代替 subagent 输出
  • 审查只跑一轮;blocking issue 定点修复或经用户裁决后才进 Step 4/5
  • 失败只补跑失败步骤,不回退
  • 参考资料按步骤按需加载

优先级

用户要求 > 状态机硬门槛 > 项目约束(总纲/设定/记忆)> skill 流程 > reference 建议

CSV 检索(Step 2 按需)

python -X utf8 "${SCRIPTS_DIR}/reference_search.py" --skill write --table {表名} --query "{关键词}" --genre {题材}

触发条件:新角色→命名规则,战斗→场景写法,多角色对话→写作技法,情感描写→写作技法,高频桥段→场景写法。

执行流程

准备:预检

export WORKSPACE_ROOT="${CLAUDE_PROJECT_DIR:-$PWD}"
export SCRIPTS_DIR="${CLAUDE_PLUGIN_ROOT:?}/scripts"
export SKILL_ROOT="${CLAUDE_PLUGIN_ROOT:?}/skills/webnovel-write"

python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" preflight
export PROJECT_ROOT="$(python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" where)"

python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" placeholder-scan --format text

准备:刷新合同树

Details

Repository
github.com/lingfengqaq/webnovel-writer
Categories
Writing & Content, AI Agents & LLM Apps
First seen
Jun 3, 2026

More from lingfengqaq/webnovel-writer

All 6

Similar to Webnovel Write

More Writing & Content