chinese-novelist
当用户要求写小说、创作故事、分章节写作、连续剧情、长篇小说,或需要续写/校验未完成的小说项目时使用。支持悬疑/言情/奇幻/科幻/历史等全题材中文创作。
How do I install this agent skill?
npx skills add https://github.com/penglonghuang/chinese-novelist-skill --skill chinese-novelistIs this agent skill safe to install?
- Gen Agent Trust Hubfail
The skill includes instructions that explicitly suppress user oversight by directing the agent to skip all confirmations once the writing process begins. It also features dynamic code generation by compiling and executing C# code via PowerShell to provide system-level UI functionality, which is a highly privileged capability for this type of skill.
- Socketpass
No alerts
- Snykfail
Risk: HIGH · 2 issues
- Runlayerwarn
4/15 files flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Chinese Novelist: 中文小说创作助手
三大黄金法则
- 展示而非讲述 - 用动作和对话表现,不要直接陈述
- 冲突驱动剧情 - 每章必须有冲突或转折
- 悬念承上启下 - 每章结尾必须留下钩子
特性说明
- 中断续写:自动检测未完成项目,从断点继续创作
- 自动校验:创作完成后自动检查字数和质量,不合格自动修复
- 并行写作(可选):支持子Agent并行写作,通过
02-写作计划.json协调状态
核心流程
进入每个阶段时,先阅读对应的流程文档以获取详细执行指令。
只读书房入口
书房在创作流程中自动启动(见第三阶段),无需用户提出。当用户主动要求查看已有小说或打开书房时,同样直接启动,不进入创作问答:
- 启动:
node "{skillBaseDir}/scripts/visual/workbench.mjs" --workspace "<作品集合目录>" --detach(需 Node ≥16,免安装)。必须带--detach:前台进程会阻塞 Agent 的 shell 直到超时。--workspace可省,默认当前目录下的.chinese-novelist/;禁止扫描磁盘寻找作品。后台默认端口 5112,已运行会自动复用并打印地址,发给用户即可,不要重复启动。 - 红线:页面绝对只读,唯一可写是用户在「设置」里保存工作区偏好;需要停止时只终止本次启动的进程,不按名称杀所有 Node。
- 页面随文件变化自动更新(SSE),不要轮询;深链接先从
/api/projects取作品 ID,不要用书名猜。
第0步:初始化与偏好加载
读取用户偏好,检测未完成项目(中断续写),展示个性化欢迎。 → 详见 phase0-initialization.md
第一阶段:三层递进式问答
通过递进式问答收集创作需求,确定小说定位与标题:
- 核心定位(必答,Q1-Q3):题材创意、主角设定、核心冲突 → 详见 phase1-layer1-core.md
- 深度定制与规格(2 次合并提问):世界观、视角基调、核心主题、读者定位、章节数量、每章字数、配置确认 → 详见 phase1-layer2-customize.md
- 标题生成:AI 基于创意元素生成候选标题,用户选择或自定义 → 详见 phase1-layer3-title.md
第二阶段:规划 + 二次确认
创建项目文件夹(./.chinese-novelist/{timestamp}-{小说名称}/),生成大纲、人物档案和写作计划JSON,等待用户确认。 → 详见 phase2-planning.md
第2.5步:写作模式选择
规划确认后,选择写作模式:
- 逐章串行(
serial):主 Agent 自己逐章写,全程无中断 - 子Agent并行(
subagent-parallel):将章节分成批次,派生子 Agent 并行写作 - Agent Teams(
agent-teams):Claude Code 多 Agent 协作模式,Agent 间可通讯(需手动开启)
→ 详见 phase3-writing.md
第三阶段:疯狂创作(无需用户确认)
切记,一旦进入这个阶段,所有过程都禁止向用户确认。用户就是你的读者,你必须把完整的小说创作完成才能与用户报告
开写第一章前自动启动书房(无需用户提出):node "{skillBaseDir}/scripts/visual/workbench.mjs" --workspace <作品集合目录> --detach,地址发给用户后立即逐章创作,不停不等(失败照常写作)。
根据用户选择的写作模式(串行/并行/Teams)逐章执行创作流程。每章创作前必须读取 01-大纲.md 中对应章节的规划信息,严格按大纲创作。支持中断续写。 → 详见 phase3-writing.md
第四阶段:自动校验与修复(无需用户确认)
主 Agent 调用脚本检查章节状态和字数,将问题派回原写作 worker 处理,最多3轮;未通过则标记 needs_attention。全程无需用户确认。 → 详见 phase4-validation.md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/penglonghuang/chinese-novelist-skill/chinese-novelist">View chinese-novelist on skillZs</a>