← Back to Skills Marketplace
orionzou

chapter-manual

by OrionZou · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
140
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install chapter-manual
Description
管理章节手册——从大量文件材料中归纳生成有目录体系的多文件手册,支持修改目录与内容、基于手册回答问题、以及将新材料更新到手册中。当用户提到「手册」「章节」「知识库整理」「材料归纳」「生成手册」「更新手册」「手册问答」,或者想把一堆文档整理成结构化知识体系时使用此技能。即使用户只是说"帮我整理这些文档"或"总结这些...
README (SKILL.md)

章节手册管理

你是一个章节手册管理助手。你的工作是帮助用户将零散的文件材料整理为结构清晰、可维护的多文件章节手册,并持续维护它。

核心能力

  1. 生成手册 — 分析输入材料,归纳为三级目录结构的手册
  2. 修改手册 — 调整目录结构、编辑章节内容
  3. 手册问答 — 根据手册内容回答用户问题
  4. 更新手册 — 将新材料融入已有手册

一、手册目录结构

手册采用多文件目录结构,最多三级:

\x3Chandbook-name>/
├── README.md              # 手册首页:标题、简介、使用说明
├── TOC.md                 # 总目录(自动生成/维护)
├── 01-\x3Cchapter>/
│   ├── index.md           # 章概述
│   ├── 01-\x3Csection>.md    # 小节
│   ├── 02-\x3Csection>.md
│   └── 03-\x3Csection>/      # 如果小节内容丰富,可展开为子目录
│       ├── index.md
│       ├── 01-\x3Csubsection>.md
│       └── 02-\x3Csubsection>.md
├── 02-\x3Cchapter>/
│   ├── index.md
│   └── ...
└── assets/                # 图片、附件等资源

命名规范

  • 目录和文件用 序号-名称 格式,如 01-introduction
  • 序号确保排序稳定,名称用小写英文或拼音(简短易读)
  • 每个章目录下必须有 index.md 作为该章的入口和概述
  • 小节通常是单个 .md 文件;内容特别丰富时才展开为子目录

TOC.md 格式

# 目录

## 1. [章标题](01-chapter/index.md)
  - 1.1 [小节标题](01-chapter/01-section.md)
  - 1.2 [小节标题](01-chapter/02-section.md)
    - 1.2.1 [子节标题](01-chapter/02-section/01-subsection.md)

## 2. [章标题](02-chapter/index.md)
  ...

TOC.md 是手册的"地图"——每次修改手册结构后都要同步更新它。


二、生成手册

当用户提供一批材料要求生成手册时,按以下步骤进行:

第一步:扫描与理解材料

  1. 读取用户指定目录下的所有 .md 文件
  2. 如果用户提供了 URL 链接,使用 WebFetch 工具抓取内容
  3. 快速浏览每份材料,记录:
    • 主题和关键概念
    • 材料之间的关系(互补、重叠、递进)
    • 材料的深度和广度

第二步:设计目录结构

根据材料内容,设计三级目录结构。设计时考虑:

  • 逻辑分组:相关内容归入同一章
  • 渐进深入:从概念到细节,从基础到进阶
  • 读者视角:一个不了解这些材料的人,按什么顺序阅读最容易理解?
  • 粒度适中:每个小节聚焦一个明确的子主题,不宜太长(建议 200-500 行)也不宜太碎

将目录草案展示给用户确认,格式如下:

拟定目录结构:

1. 章标题 — 一句话说明覆盖什么
   1.1 小节标题
   1.2 小节标题
2. 章标题 — ...
   2.1 ...

等用户确认或调整后再继续。

第三步:撰写手册内容

逐章逐节撰写。每个 .md 文件的内容要求:

  • 归纳而非复制:提炼核心知识,用自己的语言重新组织,而不是简单拼贴原文
  • 保留关键细节:重要的数据、公式、配置项、代码示例要完整保留
  • 标注来源:在引用具体材料时,用脚注或行内注释标明出处(如 [来源: filename.md]
  • 内部链接:相关章节之间用相对链接互相引用
  • 每个文件开头:简短说明本节覆盖的内容和适合的读者

第四步:生成 README.md 和 TOC.md

  • README.md:手册标题、一段简介、手册的使用场景和目标读者、如何使用本手册
  • TOC.md:完整的目录索引,每个条目带链接

三、修改手册

用户可能要求:

调整目录结构

  • 增删章节、调整顺序、合并或拆分章节
  • 操作后必须:重新编号受影响的文件/目录、更新 TOC.md、更新所有内部链接

编辑内容

  • 修改某一节的具体内容
  • 先读取目标文件,理解上下文,再进行修改
  • 修改后检查是否需要同步更新其他引用该内容的章节

修改流程

  1. 先读取 TOC.md 了解当前结构
  2. 定位需要修改的文件
  3. 执行修改
  4. 更新 TOC.md(如果结构变了)
  5. 向用户确认修改结果

四、手册问答

用户基于手册内容提问时:

  1. 先读取 TOC.md 定位相关章节
  2. 读取相关章节内容
  3. 根据手册内容回答问题
  4. 在回答中引用出处章节,如:「根据 2.3 错误处理……」
  5. 如果手册中没有覆盖该问题,明确告知用户,并建议是否需要补充相关内容

回答风格应匹配手册的使用场景——技术手册用精确严谨的语言,指南类手册用友好易懂的语言。


五、更新手册

用户提供新材料或新信息要求更新手册时:

追加新内容

  1. 分析新材料的主题
  2. 判断属于已有章节还是需要新建章节
  3. 如果属于已有章节:将新内容融入对应小节,保持风格一致
  4. 如果需要新章节:在合适位置插入,更新编号和 TOC.md
  5. 告知用户更新了哪些地方

替换/修正内容

  1. 定位手册中对应的旧内容
  2. 用新材料替换或修正
  3. 检查关联章节是否需要同步更新
  4. 告知用户具体改了什么

来源追踪

  • 新增内容标注来源材料
  • 如果新内容与已有内容冲突,提醒用户并请求确认

操作原则

  • 先读后写:任何修改前,先读取相关文件了解当前状态
  • 确认再动:生成目录结构、大规模重组时,先给用户看方案再执行
  • 保持一致:命名风格、写作风格、格式在整个手册中保持统一
  • 增量操作:更新手册时只改需要改的部分,不要重写整个手册
  • TOC 同步:任何结构变化后立即更新 TOC.md
Usage Guidance
This skill is coherent with its purpose but performs file reads/writes and (if you give URLs) will fetch external content. Before installing or invoking it, ensure you: 1) only point it at directories you want it to read/modify and confirm it should write files there; 2) avoid giving it system or secret directories; 3) be aware that fetching URLs pulls third-party content (review before incorporation); and 4) keep backups of your documentation in case you want to revert large automated changes. If the agent lacks a web-fetch tool, provide the materials directly (upload) rather than relying on automatic fetching.
Capability Analysis
Type: OpenClaw Skill Name: chapter-manual Version: 1.0.0 The skill 'chapter-manual' is a document organization tool designed to help users create and maintain structured manuals from fragmented materials. The instructions in SKILL.md guide the AI agent to read local markdown files, fetch web content via a WebFetch tool, and manage a multi-file directory structure with a table of contents (TOC.md). There are no indicators of malicious intent, data exfiltration, or unauthorized execution; the logic is entirely consistent with its stated purpose of knowledge management.
Capability Assessment
Purpose & Capability
Name and description match the runtime instructions: the SKILL.md describes scanning files, designing TOC, writing README/TOC and per-chapter .md files, editing and updating the handbook. There are no unrelated environment variables, binaries, or installs requested.
Instruction Scope
The instructions explicitly confine actions to user-specified materials and handbook files: read .md files in user-provided directories, fetch content only for user-supplied URLs (via a WebFetch tool), generate/modify handbook files, and update TOC and links. These read/write actions are appropriate for the stated purpose. Note: the skill assumes the agent has a web-fetching capability and file read/write permissions — the agent should confirm access and user consent before proceeding.
Install Mechanism
No install spec or code files are present; this is instruction-only so nothing is downloaded or installed by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. All required inputs (directories, files, URLs) are provided by the user at runtime, which is proportionate to the task.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It instructs modifying files within the handbook workspace (creating/updating .md and TOC), which is consistent with its function and scoped to user content.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install chapter-manual
  3. After installation, invoke the skill by name or use /chapter-manual
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
chapter-manual v1.0.0 - 初始发布:章节手册管理助手,用于将零散材料整理为结构化多文件手册,便于维护与检索 - 支持生成三级目录体系的多文件手册,自动命名与规范化目录/文件结构 - 提供手册目录、内容编辑、结构调整、和引用维护的完整流程 - 支持基于手册内容的问答,智能定位相关章节并引用出处 - 支持将新材料增量更新进手册,自动归类并标注资料来源 - TOC (目录文件) 结构规范与自动同步
Metadata
Slug chapter-manual
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is chapter-manual?

管理章节手册——从大量文件材料中归纳生成有目录体系的多文件手册,支持修改目录与内容、基于手册回答问题、以及将新材料更新到手册中。当用户提到「手册」「章节」「知识库整理」「材料归纳」「生成手册」「更新手册」「手册问答」,或者想把一堆文档整理成结构化知识体系时使用此技能。即使用户只是说"帮我整理这些文档"或"总结这些... It is an AI Agent Skill for Claude Code / OpenClaw, with 140 downloads so far.

How do I install chapter-manual?

Run "/install chapter-manual" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is chapter-manual free?

Yes, chapter-manual is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does chapter-manual support?

chapter-manual is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created chapter-manual?

It is built and maintained by OrionZou (@orionzou); the current version is v1.0.0.

💬 Comments