Skip to main content

Write Manual

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".

v1.1.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install ai-engineering-scratch-write-manual
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/ai-engineering-scratch-write-manual/SKILL.md

Setup guide →
0Save

Instructions

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

ItemTarget
pages60 to 100
parts6 to 8, plus one reference part
sectionsabout 25
figures30 to 40
outcomes in manual.jsonat least 3
takeaways per sectionexactly 1 block, with at least 2 items

The worked example has 7 parts, 28 sections, 7 reference sections, and 31 figures.

Method

  1. Pin the subject. Record the version, source URL, commit, release date, and verified date.
  2. Rank the sources. List them in authority order: schema or proto, specification, project docs, reference SDK, capture kit.
  3. Vendor what the license allows. Copy each quotable source unchanged into research/sources/, with its license file beside it.
  4. Write the fact brief. Index every rule you will use by section and line number, in research/. See references/research-and-sources.md.
  5. Open the conflict register. Give each disagreement between two sources an id (D1, D2, ...) as you find it.
  6. Build the capture kit. Drive the subject offline and write deterministic files to capture/out/. See references/capture-kit.md.
  7. Plan the contents from the specification. Name each section after one thing the reader can find in the spec.
  8. Write manual.json. Fill the pin, outcomes, palette, ranked sources, quote sources, capture commands, and parts. See references/manual-json.md.
  9. Write the front matter. Title it "How to read this manual" and follow the order in "Front matter" below.
  10. Write one section at a time. Use the section shape below. Cut every listing from a capture file.
  11. Draw each figure from a capture. Follow the figure must-haves below and the sibling blueprint-figure skill.
  12. Run what you did not test. Turn each "we did not test" sentence into a run, and write a build part with demos. See "Validate before the first review".
  13. Look at every figure as a rendered image. Fix what you see, then look again. See "Review figures as images".
  14. Build and audit. Fix every finding until the audit prints TOTAL 0. See references/audit.md.
  15. Get two independent audits. One checks numbers against the recordings. One checks code-based claims against the source at the pin.
  16. 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 the object that has it.

Front matter

front.md covers these topics, in this order:

  1. Who the manual is for, and what they can do after it.
  2. How it was made, with the ranked sources table.
  3. The capture kit.
  4. The conventions: citation forms, listing cuts, and id shortening.
  5. A first run that the reader can do offline.
  6. How the parts are ordered, as an empty parts block.
  7. Colour in figures, as an empty palette block.
  8. Figure 0.1, which teaches the arrow and colour grammar of this manual.

Section shape

Every section file follows this order. Reference sections and the front matter need a thesis and a sources line, but no outcome sentence and no takeaways.

  1. # Title, with the name the specification uses.
  2. > Thesis, directly under the title: one sentence of at most 30 words, the claim the section proves.
  3. An opening paragraph that starts from a concrete situation the reader has been in.
  4. The sentence "When you finish this section, you can ..." inside the first two paragraphs.
  5. The body: ## subsections, definitions that start with **Term:**, figures, listings, rules, and tables.
  6. Exactly one takeaways block, with two or more actions.
  7. A last paragraph that starts with Sources: and names every file the section was written from.

A complete template is in references/section-template.md.

Fenced block kinds

FenceHoldsRequired keys
figureone figure, by idid, kind, title, claim, caption
listinglines cut from one capture filetitle, source, lang, optional note, then --- and the lines
ruleone quote, checked word for wordlabel, source, then --- and the quote
takeawaysthe actions for the sectiontwo or more - item lines
parts, palette, figure-index, contentsgenerated tablesno body

Every other fence needs a language tag. A json, jsonl, http, or sse fence must be a listing instead.

Markdown subset

Use only these constructs, so every edition renders the same way:

  • One # title on the first line, and the thesis quote under it.
  • ## and ### headings, each with an optional {#anchor}.
  • Paragraphs, and one-level - or 1. lists.
  • Pipe tables with a header row.
  • Bold, italic, and inline code.
  • {{key ref}} citations, [text](#s-5-3) cross-references, and repository links.

Raw HTML, horizontal rules, nested lists, #### headings, and other quote blocks fail the build. Section anchors are s- plus the id with dots as hyphens, such as s-1-4 or s-r-2.

Listings

  • Cut every listing from a file in capture/out/. Never type a request or a response from memory.
  • Each listing line must appear in its source file exactly as written.
  • Mark a cut with … on its own line or inside a line.
  • Say what you cut in the note.
  • Name the source file in source, so the reader can open the full record.

Recordings from a live system

Some subjects cannot run offline in CI, such as a cluster runtime. Record them on your own machines and keep the proof in the repository.

  • Put the raw recordings in capture/lab/<experiment>/, one folder for each experiment, with the scripts that made them.
  • Compute every chart and every quoted number from the raw files with capture/run.py. It writes one summary file for each data set to capture/lab/summary/.
  • Keep each run in the summary, not only the median. A chart needs the runs.
  • Make capture.check rebuild the summaries and compare them. For the recording itself, print one skipped line with the reason.
  • Name the machine and the count in every measured paragraph. Start that paragraph with We measured.
  • Never set numbers from two machines side by side as one comparison. Say that the machines differ.
  • State the window of a count. "103 of 103 during the outage" is a different claim from a count over the full run.
  • Remove secrets before anything reads the copy: keys, tokens, kubeconfigs, host names, public addresses, and names of people. Record each removal without the secret.
  • Keep each recording file small, and cut a long log to an excerpt file whose lines are exact.

Validate before the first review

A manual that passes the audit can still be short on proof. Do these before you ask for a review.

  • List every sentence that says you did not test something. Run each one that your lab can run, and replace the sentence with the result.
  • Give the manual a last part named "Build". Write small programs that a reader can run, record one run of each, and show the recording.
  • Build the piece that the subject leaves to the user. For a runtime with no idle timer, that is the program that suspends idle work.
  • Include a failure drill: one script that causes each documented failure and prints the symptom, the state, the fix, and the time.
  • Set the headline claims of the project site beside your results in one table. Say which ones your runs confirm.
  • When a second run disagrees with the first, keep both and say that the cause is not found. Do not pick one.
  • Correct your own early conclusion when a later run or the raw file contradicts it.

Two independent audits

Ask two reviewers who wrote none of the text. Give them the files, not your conclusions.

  • Numbers and consistency. Every measured number matches its recording and is the same in every section, figure, takeaway, and table. Every listing line is in its source file. Each measured paragraph names the right machine.
  • Code-based claims. Every flag, default, timer, limit, method, field, state, command, and error string matches the source at the pin. Each finding names a source file and line.
  • Confirm each finding against the evidence before you apply it. An audit can be wrong too.
  • Record which findings you applied, skipped, or partly applied, with the reason.

Sources, quotes, and conflicts

  • Rank sources by authority. When two sources disagree, the higher one wins and the text says so.
  • Quote a rule word for word, then cite its key: "quoted text" {{spec §3.1.5}}.
  • Declare every citation key in quoteSources. Map it to a vendored file, or to null when the source cannot be vendored.
  • Paraphrase sources with a null key, such as an SDK. Never quote them.
  • When sources disagree, quote both sides in the section, say which one the manual follows, and link the register entry.
  • Keep the register in the sources reference section. Give it five columns: id, sources, choice, sections, and upstream status.
  • Never name or cite another guide, course, or book. Cite specifications, source code, papers, and the subject's own documentation.

Prose limits

LimitValue
words in a sentenceat most 25
words in a thesisat most 30, one sentence
words in a figure claimat most 28, one sentence ending with a period
words in a takeawayat most 20, an instruction in imperative mood
sentences in a paragraphat most 6

Write in the second person, about the mechanism. Define a term once, use it the same way everywhere, and add it to the glossary. Quotes, code, and citations are exempt from the limits.

Use no semicolons, no contractions, and no em or en dashes. Never write the word may. Use "can", or state the condition. Avoid the banned words in references/prose-rules.md.

Figure must-haves

Use the sibling blueprint-figure skill to draw the figures. Every figure in a manual must also meet these rules:

  • Use one of ten kinds: sequence, structure, flow, comparison, timeline, tree, state, decision, layers, chart.
  • Draw a measured result as a chart that reads a summary file. Plot each run as a dot, add a median line, and label the lines directly.
  • Keep one chart for each data set. A second section links to it.
  • Show the real system: real ids, field names, method names, and sequence numbers from a capture.
  • Make one claim of at most 28 words. The caption says how to read the figure, then names its capture file.
  • Never draw generic boxes such as "Component A", stat cards, or progress bars.
  • Compare two behaviors of the subject. Never compare against an earlier build.
  • Give each hue one meaning per manual. rose is failure, grey is outside the subject, amber is lifecycle, teal is durable state.
  • Draw exchanges with the eight arrow styles below. Figure 0.1 teaches the ones the manual uses.
  • Use viewBox="0 0 640 H" with H at most 760, text at least 11 units, and a file of at most 40 KB.
  • Put a <title> and a <desc> of at least 40 characters on the root, which has role="img".
  • Start every id in the SVG with the figure id, because all figures share one page.
  • Write colours only as var(--m-<token>, #hex), with the light value of the token as the hex.
Arrow styleMeans
solid inka call or request
dashed inka reply
solid teala durable write
dashed ambera state change
solid pluma model call or compute
dashed olivean effect outside the system
dotted indigoa stream or an event
dashed rosea failure

Object forms and project marks

The cover plate and the architecture figures show things, not data. A row of identical cubes says nothing.

  • Give each object a form that says what it is: a terminal for a client, a unit with ports for a gateway, a tower for a server, a cylinder for a database, a bucket for an object store.
  • Show containment with surfaces: a slab for a host, a floor tile for a group, an open frame for a pod, walls for a sandbox.
  • Show the state that matters. Draw a stopped or suspended workload as a dashed ghost beside the solid running form.
  • Make the size and the position of an object reflect its role. Put the main event at the centre.
  • Put the real project mark on the object that runs that project. Take the mark from the official artwork, never from memory.
  • Draw a mark in one palette colour, projected onto the face it sits on. Leave it out when it does not read at 28 to 40 units.
  • Record the source and the license or trademark note of each mark beside its path data.
  • Say on the sources page that the marks belong to their owners and identify the projects.
  • Use forms and marks on the cover and on architecture figures. Keep charts, timelines, and decision figures flat.

Inside the AI Engineering from Scratch repo, the forms are in manuals/_shared/forms.js, the marks are in manuals/_shared/marks.js, and the figure kit draws a mark with mark. manuals/agent-substrate-101/ is the worked example.

Review figures as images

A figure that passes the lint can still be hard to read. Judge the render, not the source.

  • Render each figure at the page width and at twice that, in the light theme and the dark theme, and look at it.
  • Ask if a reader gets the one claim in five seconds, and if each object is clear without its label.
  • Fix crowding, overlap, clipped labels, and labels far from what they name. Then render and look again.
  • Do at least three rounds for an ordinary figure and four for the cover.
  • Check a figure against its section. A caption must not claim more than the recording shows.

Build and audit

Inside the AI Engineering from Scratch repo, run these from the repository root:

node --test site/test_manuals.js
node site/build-manuals.js
node manuals/_shared/figkit.js build manuals/<id>
node scripts/audit_manuals.js --manual <id>

Outside the repo, build your own audit from references/audit.md. It lists each check, so you can write it as one script. Fix the text, never the limit. A manual does not merge until the audit prints TOTAL 0.

Audit the tree that you commit, not the tree on your disk. An ignore rule can drop a file that a listing cites, and the local audit still passes.

git add manuals/<id>
STAGED=$(mktemp -d)
git checkout-index -a --prefix="$STAGED/" && (cd "$STAGED" && node scripts/audit_manuals.js --manual <id>)

Inside the repo, also do these before the first push:

  • Check that .gitignore keeps the recorded .log files of your capture folder. Add an exception when it does not.
  • Add the manual to one topic in cheatsheets/topics.yaml, then run node scripts/cheatsheets/generate.js --stamp <topic id>.
  • Preview with node site/build-manuals.js --drafts, and serve site/ with a static server.

Commit rules

  • Size commits by judgment. A section with its figures and the captures it adds is a good unit. A small fix across sections can be one commit.
  • Use the message feat(manual/<id>): <section slug>.
  • Never commit generated output. Inside the repo, that is site/manual-<id>.html, site/manuals.html, and site/manuals-data.js.
  • Keep status at draft until the manual is complete. A ready manual needs a README.md.
  • Update vendored sources only together with the pin in manual.json.

Check before you finish

  • manual.json validates, and pin has subject, version, source, commit, date, and verified.
  • Every section title names one thing that the specification defines.
  • Every section has a thesis, an outcome sentence in its first two paragraphs, one takeaways block, and a Sources: line.
  • Every json, jsonl, http, and sse block is a listing with a capture source.
  • The capture check runs offline and reports no drift.
  • Every quote of 24 or more characters is found word for word in its vendored file.
  • Every conflict has a register id, and each section that meets it links that id.
  • Every figure SVG is used by a document and matches its source script.
  • Every figure was viewed as a rendered image, and each chart plots its runs.
  • The cover and the architecture figures use forms that say what each object is, with marks from official artwork.
  • Each "we did not test" sentence that the lab can answer is replaced by a result.
  • The build part has demos with their sources and one recorded run of each.
  • Each measured paragraph names its machine and count, and no comparison mixes two machines.
  • Two independent audits ran, and each finding is applied, skipped, or partly applied with a reason.
  • The audit prints TOTAL 0 on the staged tree.
  • The manual is in a cheat sheet topic, and the recordings hold no secret, host name, or address.
  • Commits are sized by judgment, with messages such as feat(manual/<id>): <section slug>.

Files

  • references/manual-json.md: every field of manual.json, with a starter file.
  • references/section-template.md: a section skeleton with each fence kind.
  • references/research-and-sources.md: the fact brief, vendoring, quotes, and the conflict register.
  • references/capture-kit.md: how to record deterministic captures and check them for drift.
  • references/prose-rules.md: the limits and the full banned word list.
  • references/audit.md: every audit rule, and how to reproduce the audit outside the repo.
  • Inside the AI Engineering from Scratch repo, also see manuals/AUTHORING.md, manuals/manual.schema.json, and manuals/a2a-101/.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
motion-figureBuilds figures that move or respond to the reader, in three tiers: SMIL animations and slider widgets inside lessons, interactive mechanism figures that show the named parts of a real system with a computed verdict, and ordered dither bands in the course palette. Triggers: "animated figure", "add a slider widget", "interactive figure", "show how this system works", "make this diagram move", "dither masthead", "mechanism figure", "figure fence".0 installslearn-reverse-engineeringFocused interactive tutor for the Reverse Engineering path in AI Engineering from Scratch. Start or resume this route when a learner wants to read a compiled program: file formats, disassembly, control flow, lifting, evidence, proof, calling conventions, compiler idioms, linking, types, debugging, bytecode, diffing, symbolic execution, and AI-assisted analysis. Teaches one lesson per invocation and records evidence in REVERSE-ENGINEERING-LEARNING.md.0 installslearn-agent-skillsFocused interactive tutor for the Agent Skills Engineering path in AI Engineering from Scratch. Start or resume this route when a learner wants to create, discover, invoke, secure, evaluate, package, or port Agent Skills. Teaches one lesson per invocation and records evidence in AGENT-SKILLS-LEARNING.md.0 installslearn-mcpFocused interactive tutor for the Model Context Protocol (MCP) path in AI Engineering from Scratch. Start or resume this route when a learner wants to build, secure, debug, verify, or operate MCP clients, servers, transports, gateways, registries, or conformance gates. Teaches one lesson per invocation and records wire evidence in MCP-LEARNING.md.0 installsbuild-projectHands-on project tutor for the AI Engineering from Scratch Projects section. Guides a learner through one stage of a real project per session: read the stage lesson, predict, write the code, run the stage grader, reflect, and record progress in PROJECTS-LEARNING.md. Gives hints, never full solutions. Trigger phrases: "build a project", "next project stage", "continue my project", "start the research report agent".0 installsinterview-prepMock interview coach for AI engineering roles, built on the interview bank of AI Engineering from Scratch. Asks one question or one incident scenario, stops, and waits for the learner's own answer. Then it grades the answer against the bank, asks follow-ups one at a time, sends each gap to the lessons and manual sections that teach it, and keeps an append-only record in INTERVIEW-LEARNING.md. Trigger phrases: "interview prep", "mock interview", "ask me an interview question", "practise for my AI engineering interview", "run an incident scenario", "debugging round", "system design round", "inference engineer loop", "review my interview gaps", "how ready am I for the interview"0 installs

More from AI Engineering from Scratch

View source →
isometric-explainerBuilds an interactive isometric machine page. Each station of one invented machine stands for one step of a process. A pure, tested state model drives the motion, the readouts and the copy. The page has controls and a verification loop. Trigger phrases: "isometric explainer", "machine explainer", "explain this as a machine", "interactive isometric figure", "explorable explainer", "show how it works inside".8 installslearnInteractive lesson tutor for the AI Engineering from Scratch curriculum. Reads LEARNING.md, fetches the next lesson, teaches it section by section in the terminal, quizzes at the end, and records progress. Works cloned or entirely over raw.githubusercontent.com — no setup required. Trigger phrases: "next lesson", "teach me", "continue the course", "let's learn", "resume learning"1 installscourse-guideTopic router for the AI Engineering from Scratch curriculum. Give it a topic, a question, or a bug you are fighting, and it points at the exact lessons that teach it, plus the right next command. Trigger phrases: "where do I learn", "which lesson covers", "course guide", "I'm stuck on", "what should I do next", "teach me MCP", "teach me Agent Skills", "where do I prepare for a Claude certification"0 installsfind-your-levelInteractive quiz that maps your AI/ML knowledge to a starting point in the 542-lesson, 20-phase AI Engineering from Scratch curriculum. Trigger phrases: "where should I start", "find my level", "what do I know", "which phase", "assess my knowledge", "placement test", "skip ahead"0 installscourse-styleThe shared visual and writing reference for AI Engineering from Scratch pages, figures, and manuals. Use it for light and dark colour tokens, font stacks, FIG_ label formats, and card layout. Use it for the plain technical English rules and the accessibility and reduced motion defaults. Trigger phrases: "course style", "blueprint palette", "course tokens", "FIG label", "plain technical English", "check my prose", "course fonts", "dark mode tokens"0 installscheck-understandingPhase quiz for AI Engineering from Scratch. Trigger with "quiz me", "test phase", "check my understanding", "do I know phase 3", or `/check-understanding <phase>`.0 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.647 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.549 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.358 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.258 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about write-manual

What does the write-manual skill do?

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". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the write-manual skill?

Run `npx @skills-hub-ai/cli install ai-engineering-scratch-write-manual` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/ai-engineering-scratch-write-manual/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does write-manual work with?

write-manual runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the write-manual skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use write-manual after installing it?

In Claude Code, type `/ai-engineering-scratch-write-manual` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the write-manual skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.