ai-bookwriter

AI Bookwriter v2.0. Automatically composes complete books based on a knowledge base. Triggered when a user says phrases like "write a book", "turn the knowledge base into a book", "help me publish a book", or requests organizing knowledge-base content into a full book. Not intended for single-article writing, simple summaries, or translation.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ai-bookwriter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b65ef0450f064dcd213114e8730e45ea468a02406ae0177777c6542b9ff9bb1d. Verify the upstream source and version against https://skillhub.cn/skills/user_4656c7bd/ai-bookwriter before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

AI Bookwriter v2.0. Automatically composes complete books based on a knowledge base. Triggered when a user says phrases like "write a book", "turn the knowledge base into a book", "help me publish a book", or requests organizing knowledge-base content into a full book. Not intended for single-article writing, simple summaries, or translation.

0 Downloads

Introduction source: third_party · user_4656c7bd · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: mx-bookwriter2.0
description: AI写作助手v2.0。基于知识库内容自动撰写书籍。当用户说"写书"、"把知识库写成书"、"帮我出书"、"基于知识库写一本书",或希望将知识库内容组织成完整书籍时触发。不适用于单篇文章写作、简单摘要或翻译。
agent_created: true

知识库写书

基于用户知识库中的素材,规划书籍结构、逐章撰写,最终输出出版社级排版的 Word 书稿(含插图、扉页、版权页、参考文献)。

你的工作方式

  1. 读取素材 — 扫描用户知识库,理解素材全貌;未指定知识库则自行联网搜索
  2. 规划目录 — 基于素材设计书籍大纲,请用户确认
  3. 确认配置 — 通过单页网页或聊天,一次性确认8项配置(书名/副书名/骨架/字数/写作模式/语气/风格/案例策略)
  4. 大纲审阅 — 生成精细到2级标题的详细大纲,在聊天中展示并等待用户确认
  5. 创建项目结构 — 搭建 mdBook 兼容的项目目录和初始文件
  6. 逐章撰写 — 一章一章地写,同步维护连续性记录和研究索引
  7. 反方论证审查 — 全书初稿完成后,插入反方论证强制段落
  8. 质量审查 — 按出版社规范逐章审查(15维度)
  9. 出版结构整理 — 创建自序、前言、参考文献等前后置页,组装完整出版结构
  10. 整合交付 — 导出出版社级 Word/DOCX

⚠️ 硬性要求:全书正文字数不得少于10万字(中文字符)。 规划目录时必须根据此底线计算章节数和每章篇幅。


初始化:写作模式与语气档位(强制输出)

在生成任何内容之前,必须显式声明两项配置——全书的「宪法」,后续章节不得违反。

  • 写作模式:三选一,默认「理论建构型」(基于公开文献与逻辑推演,禁止「走访了X家企业」)
  • 语气档位:五选一,默认「管理者手册型」(行动导向、短段落)

完整选项表(含约束、禁用词、风格冲突检查)→ config-options.md


Phase 0:项目状态扫描(必须先做)

在开始任何工作之前,先运行项目检测工具,看看项目目录里有什么,避免重复操作。检测返回5档状态码:空项目→走完整流程;有配置无章节→跳过配置直接写;有部分章节→从断点继续;已写完→直接审查导出;有模板无配置→聊天问你三选一。

详细处理规则 → error-handling.md


Phase 1:读取素材

  • 有知识库 → 用知识库工具搜索素材,精读核心文档
  • 无知识库 → 联网搜索补充素材
  • 落盘 → 写入 src/book-materials.md(核心论点、关键数据、可引用段落)

边缘场景处理 → error-handling.md


Phase 2:规划目录与确认配置

Phase 2 + 配置确认共用同一个选择页。8项配置在同一长页面中展示,用户点「全部确认,开始写书」后AI自动继续。网页打不开时降级为聊天方式逐步确认。

Step 1:基于素材设计推荐配置 → Step 2:启动选择页,等待用户点确认 → Step 3:生成2级详细大纲,在聊天中展示并等待用户审阅确认。

配置选项详解 → config-options.md | 边缘场景 → error-handling.md


Phase 2.6:创建项目结构

确认目录和风格后,创建 mdBook 兼容的项目目录和初始文件(配置文件、目录文件、连续性记录、术语表、案例注册表、概念复用清单、章节空文件等)。


Phase 3:逐章撰写

按确认后的目录和风格,一章一章地写。每章 ≥ 10000字,含章前引文 ≥ 700字。

每章写作前:确认本章功能和案例真实性。

每章写作中:补充搜索、引文、正文、脚注、保存章节文件。

每章完成后:运行冗余检测、可执行性过滤器、去AI味检测(加载humanizer-zh,≥35/50才通过)、更新连续性记录和研究资料索引。

详细写作规则 → chapter-writing-guide.md

边缘场景处理 → error-handling.md


Phase 3.5-3.7:反方论证、审查、终章约束

  • Phase 3.5:全书初稿完成后,在模型/策略后插入反方论证段落
  • Phase 3.6:15维度+出版社规范审查,逐章检查
  • Phase 3.7:终章如含90天计划,必须提供降级版+应急分支+备选方案

详细审查与导出规则 → review-export-guide.md


Phase 4:出版结构整理与导出

创建自序、前言、参考文献 → 组装完整书稿 → 18项导出前检查 → 运行导出脚本生成Word → 三项排版质量校验(中文字体完整性、样式一致性、段落完整性) → 交付Word文件。

详细导出与校验规则 → review-export-guide.md


异常提示原则

所有异常提示必须遵守三条规则:

  1. 不用技术术语 — 把 result.json、book_ui.py、CJK 等翻译成日常用语再说
  2. 告诉你该做什么 — 不是告诉你"出了什么错",而是告诉你"你接下来该干什么"
  3. 给选择而非恐慌 — 每个异常至少给一个用户能立刻执行的操作步骤

错误翻译表和各阶段边缘场景 → error-handling.md


完整示范:从一句话到一本书

你说: 「帮我把创业笔记知识库写成书」

Phase 0 → 管线自动检测,发现空项目,走完整流程。

Phase 1 → 管线搜索知识库,发现覆盖4大主题(创业方法论/行动学习/组织变革/案例复盘),素材摘要已保存。

Phase 2 → 管线启动选择页,你在网页中一次性确认8项配置(书名:《创业实战》/ 副书名:用行动学习打通创业每一步 / 骨架:破立练收型 / 字数:12万字 / 模式:理论建构型 / 语气:管理者手册型 / 风格:实战教练风格 / 案例:真实名称),点「全部确认」。

Phase 2 Step 3 → 管线在聊天中展示8章完整大纲(每章含节标题+核心论点+预计字数),你说「确认,开始写」。

Phase 3 → 管线逐章写作,每章完成后汇报(字数/去AI味评分/案例注册),你只在需要时回复修改意见。

Phase 3.5-3.6 → 全书8章完成后,反方论证已插入3处,15维度审查通过。

Phase 4 → 导出Word文件(含扉页/版权页/目录/自序/前言/8章正文/参考文献),三项排版校验通过。

最终交付物:

交付项 内容
书名 《创业实战:从0到1的行动学习》
总字数 120500字
Word文件 含扉页、版权页、自序、前言、目录、8章正文、参考文献
排版质量 中文字体正常、字号统一、段落完整、页码系统正确

全程自动,你只做了3次确认(选配置→审大纲→偶尔改稿)。


遇到问题?

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供从知识库到完整出版级书籍的端到端自动化写作流程
  • 解决用户将知识库内容转化为正式出版物的核心痛点
  • 支持10万字以上长篇书籍生成,满足出版要求
Trigger Precision90/100

Highlights

  • 触发词覆盖多种变体('写书'、'把知识库写成书'等)
  • 明确界定不适用场景(单篇文章、摘要、翻译),边界清晰
Structure and Standards85/100

Areas to improve

  • 文档过长 Reported severity: Minor

    主文件SKILL.md约600行,超过500行建议长度

    Recommendation: 考虑将部分详细说明移至引用文件中,保持主文件简洁

Highlights

  • Phase划分清晰(Phase 0-4),每阶段有明确目标和出口条件
  • 包含完整端到端示例,frontmatter完整
Execution Reliability90/100

Highlights

  • 覆盖主要异常场景(项目状态检测、断点续写、错误翻译)
  • 不可逆操作(导出)有多轮校验和确认机制
  • 工具来源明确,参数配置通过网页/聊天确认
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.