🎭 AI 写小说:从零生成 10-50 章完整中文小说,三层问答 · 创作记忆 · 悬念钩子 · 自动校验,长篇网文连载皆宜|开源免费,适配主流 coding agent|AI novel writing skill
# Add to your Claude Code skills
git clone https://github.com/PenglongHuang/chinese-novelist-skillGuides for using ai agents skills like chinese-novelist-skill.
Last scanned: 9/6/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-06T08:23:10.017Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}chinese-novelist-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by PenglongHuang. 🎭 AI 写小说:从零生成 10-50 章完整中文小说,三层问答 · 创作记忆 · 悬念钩子 · 自动校验,长篇网文连载皆宜|开源免费,适配主流 coding agent|AI novel writing skill. It has 2,813 GitHub stars.
Yes. chinese-novelist-skill passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/PenglongHuang/chinese-novelist-skill" and add it to your Claude Code skills directory (see the Installation section above). chinese-novelist-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
chinese-novelist-skill is primarily written in Python. It is open-source under PenglongHuang on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh chinese-novelist-skill against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
02-写作计划.json 协调状态进入每个阶段时,先阅读对应的流程文档以获取详细执行指令。
读取用户偏好,检测未完成项目(中断续写),展示个性化欢迎。 → 详见 phase0-initialization.md
通过递进式问答收集创作需求,确定小说定位与标题:
创建项目文件夹(./chinese-novelist/{timestamp}-{小说名称}/),生成大纲、人物档案和写作计划JSON,等待用户确认。 → 详见 phase2-planning.md
规划确认后,选择写作模式:
serial):主 Agent 自己逐章写,全程无中断subagent-parallel):将章节分成批次,派生子 Agent 并行写作agent-teams):Claude Code 多 Agent 协作模式,Agent 间可通讯(需手动开启)→ 详见 phase3-writing.md
切记,一旦进入这个阶段,所有过程都禁止向用户确认。用户就是你的读者,你必须把完整的小说创作完成才能与用户报告
根据用户选择的写作模式(串行/并行/Teams)逐章执行创作流程。每章创作前必须读取 01-大纲.md 中对应章节的规划信息,严格按大纲创作。支持中断续写。 → 详见 phase3-writing.md
全程无需用户介入,自动检查所有章节完成度和字数,不合格章节自动重写(最多3轮)。 → 详见 phase4-validation.md
偏好系统、写作计划系统、黄金法则详解、字数检查脚本等跨阶段共享机制。 → 详见 shared-infrastructure.md
🎉 v2.0 重构发布:引入三层递进式问答、偏好记忆系统、中断续写、三种写作模式和自动校验修复!
查看 v1.0 → v2.0 升级说明 了解详情。
写小说最难的是坚持写完。这个 Skill 专为解决这个痛点而生:
安装skill:npx skills add PenglongHuang/chinese-novelist-skill
输入指令:使用 chinese-novelist 帮我写一部小说
每次创作后,Skill 会自动学习你的偏好:喜欢的题材类型、叙事风格、章节数量倾向、文字密度等。下次使用时,直接应用你的习惯,省去重复问答。
用户 → ┌─────────────┐ ┌──────────────────────┐ ┌──────────────┐
│ Phase 0 │ → │ Phase 1 │ → │ Phase 2 │
│ 初始化 │ │ 三层递进式问答 │ │ 规划 + 确认 │
│ ·加载偏好 │ │ L1: 核心定位 (必答) │ │ ·大纲 │
│ ·检测中断 │ │ L2: 深度定制 (可选) │ │ ·人物档案 │
└─────────────┘ └──────────────────────┘ │ ·写作计划JSON│
└──────┬───────┘
↓
┌───────────────────────────┐
│ Phase 2.5 写作模式选择 │
│ 串行 / 子Agent并行 / Teams │
└─────────┬─────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ Phase 3 疯狂创作(全自动,无需确认) │
│ 逐章:写前分析 → 撰写(3000-5000字) → 润色去AI味 → 字数检查 │
└──────────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────────┐
│ Phase 4 自动校验与修复(全自动) │
│ 字数检查 → 连贯性检查 → 不合格自动重写(最多3轮) │
└──────────────────────────────────────────────────────────────┘
↓
✅ 全稿完成
自动加载用户偏好(user-preferences.json),检测是否有未完成的项目可续写,展示个性化欢迎。
Layer 1 — 核心定位(必答,3问):题材创意、主角设定、核心冲突
Layer 2 — 深度定制(可选,5问):世界观、叙事视角、核心主题、读者定位、章节数量
每个问题都支持🎲随机生成,也可以直接说"跳过"或"都用默认"。
📝 Q1:题材与创意
○ 悬疑推理 ○ 现代言情 ○ 奇幻玄幻 ○ 科幻未来
○ 武侠仙侠 ○ 历史架空 ○ 都市现实 ○ 🎲 随机生成
📝 Q2:主角设定
○ 男性主角 ○ 女性主角 ○ 双主角 ○ 群像戏
📝 Q3:核心冲突
○ 生死存亡 ○ 查明真相 ○ 复仇雪恨 ○ 成长突破
○ 爱情阻碍 ○ 权力争夺 ○ 守护保护
... Layer 2 可继续定制,也可直接跳到规划 ...
AI 自动生成大纲(7列章节规划)、人物档案、写作计划 JSON,展示给你确认:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
规划完成!请确认:
基本信息
题材:悬疑推理 | 主角:男性侦探 | 冲突:查明真相
章节数:20章 | 视角:第一人称 | 基调:紧张冷峻
章节规划(前5章)
第1章:午夜凶铃 - 接到神秘电话...
第2章:第一具尸体 - 发现密室杀人案...
...
主要角色
主角:李明 - 资深刑警,冷静智慧
反派:张华 - 高智商罪犯
配角:王芳 - 法医专家
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
回复"确认" → 选择写作模式 → 立即开始
| 模式 | 说明 | 适用场景 |
|---|---|---|
| 串行 | 主 Agent 逐章写,稳定可靠 | 默认推荐 |
| 子Agent并行 | 多个子 Agent 分批并行写 | 追求速度 |
| Agent Teams | Claude Code 多 Agent 协作 | 大型长篇 |
确认后进入全自动创作模式,无需再次确认。你可以离开工作台,等待完成。
每章严格执行:写前分析 → 撰写(3000-5000字) → 润色去AI味 → 字数检查 → 更新摘要。
✅ 第1章完成(3247字)
✅ 第2章完成(3582字)
✅ 第3章完成(3412字)
...
全稿完成后自动检查:字数达标、连贯性通过,不合格章节自动重写(最多3轮)。
chinese-novelist/
├── user-preferences.json # 用户偏好(跨项目共享)
└── 20260412-143000-午夜列车/
├── 01-大纲.md # 故事概述、章节规划(7列模板)
├── 00-人物档案.md # 主角、反派、配角档案
├── 02-写作计划.json # 机器可读的写作计划(v2)
├── 第01章-最后一班列车.md
├── 第02章-消失的乘客.md
└── ...
| 法则 | 说明 |
|---|---|
| 展示而非讲述 | 用动作和对话表现,不要直接陈述 |
| 冲突驱动剧情 | 每章必须有冲突或转折 |
| 悬念承上启下 | 每章结尾必须留下钩子 |
| 开头即高潮 | 前 20% 必须极其吸引人 |
将此目录放入 Claude Code 的 skills 目录:
~/.claude/skills/chinese-novelist/
或通过 Claude Code 技能管理界面安装。
references/flows/)| 文件 | 内容 |
|---|---|
phase0-initialization.md |
Phase 0:初始化与偏好加载 |
phase1-layer1-core.md |
Phase 1 Layer 1:核心定位问答(Q1-Q3) |
phase1-layer2-customize.md |
Phase 1 Layer 2:深度定制问答(Q4-Q8) |
phase2-planning.md |
Phase 2:规划与写作计划生成 |
phase3-writing.md |
Phase 3:疯狂创作(三种写作模式) |
phase4-validation.md |
Phase 4:自动校验与修复 |
shared-infrastructure.md |
共享机制(偏好系统、黄金法则、字数脚本) |
references/guides/)| 文件 | 内容 |
|---|---|
chapter-guide.md |
章节写作指南(含开头技巧、中文文学技法、连贯性保证、质量检查) |
hook-techniques.md |
悬念设置技巧(13 种结尾钩子类型) |
character-building.md |
人物塑造技法(侧重写作过程中的塑造技巧) |
dialogue-writing.md |
对话写作规范(含节奏进阶、权力博弈) |
plot-structures.md |
情节结构模板 |
content-expansion.md |
内容扩充技巧(含分题材策略、实例对比) |
outline-template.md |
大纲模板(7列章节规划) |
character-template.md |
人物档案模板 |
chapter-template.md |
章节文件模板 |
核心架构重构
references/flows/ 独立维护新增功能
scripts/check_chapter_wordcount.py 自动验证每章 3000-5000 字要求文档重组
references/flows/:新增 7 个流程文档(phase0-4 + shared-infrastructure)references/guides/:重组 8 个写作指南文档查看完整变更:v2.0 提交记录
如果这个项目帮你写出了第一部小说,可以考虑在爱发电赞助我,你的支持直接决定项目的更新速度 ⚡