write-manual
它能做什么
这项技能撰写一份长篇技术手册,深入解释某个系统,从它的用途一直讲到每个请求和响应。适合需要可靠参考资料、并让其他人能够维护的技术作者。
适用场景
- ✓当读者必须预测某个系统在手册未涵盖的情况下如何运作时。
- ✓当你有可以固定到某一版本的规格说明或源代码时。
- ✓当你需要为现有手册添加或检查一个章节时。
技能链接
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/write-manual/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为这个 1.2 版的协议撰写一份手册,每种请求类型都有一个章节。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体研究该系统,为其来源排序,记录来源之间的冲突,并以固定的结构撰写章节。它还会运行一次审核,必须报告零问题,手册才算完成。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Write a manual
A manual explains one subject, such as a protocol, a file format, or a runtime, at one exact version. A lesson teaches a concept and moves on. A manual stays with one system until the reader can predict what it does in a case the manual never showed.
This skill gives the full method. It covers research, ranked sources, and a register of conflicts between sources. It also covers an offline capture kit, a fixed section shape, prose limits, and an audit that must report TOTAL 0. It works in any repository. Inside the AI Engineering from Scratch repo, the tooling already exists, and manuals/a2a-101/ is the worked example.
When to use
- The reader must predict the behavior of one system, at one version, in cases you did not show.
- The subject has a specification, a schema, or a source tree that you can pin to a commit.
- You can run the subject, or a faithful stand-in, offline and record its requests and responses.
- The result is 60 to 100 pages with figures, and other people will maintain it.
When not to use
- You teach a general concept, such as attention or retrieval. Write a lesson instead.
- The subject has no version to pin, or changes every week.
- You cannot run the subject and cannot record its output. A manual without captures is an essay.
- You want a short how-to. A manual of fewer than about 15 sections does not need this shape.
Size of a 101 manual
| Item | Target |
|---|---|
| pages | 60 to 100 |
| parts | 6 to 8, plus one reference part |
| sections | about 25 |
| figures | 30 to 40 |
outcomes in manual.json |
at least 3 |
| takeaways per section | exactly 1 block, with at least 2 items |
The worked example has 7 parts, 28 sections, 7 reference sections, and 31 figures.
Method
- Pin the subject. Record the version, source URL, commit, release date, and verified date.
- Rank the sources. List them in authority order: schema or proto, specification, project docs, reference SDK, capture kit.
- Vendor what the license allows. Copy each quotable source unchanged into
research/sources/, with its license file beside it. - Write the fact brief. Index every rule you will use by section and line number, in
research/. See references/research-and-sources.md. - Open the conflict register. Give each disagreement between two sources an id (
D1,D2, ...) as you find it. - Build the capture kit. Drive the subject offline and write deterministic files to
capture/out/. See references/capture-kit.md. - Plan the contents from the specification. Name each section after one thing the reader can find in the spec.
- Write
manual.json. Fill the pin, outcomes, palette, ranked sources, quote sources, capture commands, and parts. See references/manual-json.md. - Write the front matter. Title it "How to read this manual" and follow the order in "Front matter" below.
- Write one section at a time. Use the section shape below. Cut every listing from a capture file.
- Draw each figure from a capture. Follow the figure must-haves below and the sibling
blueprint-figureskill. - Build and audit. Fix every finding until the audit prints
TOTAL 0. See references/audit.md. - Size commits by judgment. A section with its figures and the captures it adds is a good unit.
Plan the contents from the specification
Build the table of contents from the names the specification uses, then decide what each part proves.
- Front matter. One document,
front.md, titled "How to read this manual". - Part 1, the subject on one page. Two sections: what the subject standardizes, then one complete exchange from a capture.
- Middle parts. One part per layer of the subject, such as discovery, data model, operations, bindings, security, and extensions.
- Last part, implementation. Build a client and a server. Test both with the official conformance tools. Explain migration from the previous version.
- Reference part. Method tables, objects, states, errors, a glossary, the sources and conflicts, and the figure index.
Each section title names one object, operation, binding, header, error, or extension from the specification. "CancelTask and terminal states" is a good title. "State machines" is not, because no specification defines an object with that name. Put a general idea in the section about
常见问题
什么时候不应使用它?
不要用于一般性概念或简短的操作指南。这些更适合做成课程或简短指南。
它需要系统运行起来吗?
最好需要。运行该系统所捕获的输出,能让手册更可信。
审核检查什么?
审核会检查手册中的问题,只有当它报告零问题时,手册才算完成。
详情
作者的原始描述
Writes a long technical manual that explains one subject at one pinned version, from its purpose to each request and response. Every listing comes from an offline capture, every claim traces to a ranked source, and an audit must report TOTAL 0. Use it for "write a manual", "write a 101 manual for <subject>", "manual.json", "add a manual section", "build a capture kit", "audit the manual", or "pin a spec version and document it".
热度
- GitHub 星标
- 76k
- 排名
- #2627
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
blueprint-figure
76k帮你的智能体为课程、README 和手册绘制清晰的静态 SVG 图示,展示系统中真实部件之间的连接关系。
build-project
76k充当项目导师,每次带你完成一个实践 AI 项目阶段,提供提示和评分,但不给出完整答案。
check-understanding
76k对 AI Engineering from Scratch 课程中已完成的阶段进行小测验,让你在进入下一阶段前检查自己学到了什么。
claude-certification
76k在 AI Engineering from Scratch 课程的 Claude 认证路线中充当分步导师,提供课程、实验和练习考试。