user-manual
Skill0 starsChanged 4 months agoMITView on GitHub
Builds a print-quality PDF user manual for an application — learns the product by reading the codebase, drives the real UI with Playwright to capture screenshots, writes the prose against what was actually captured, and renders a paginated PDF with cover, table of contents, figures and callouts. Use when asked for a user manual, operator guide, onboarding handbook, client handover documentation, or training material. Trigger: "make a user manual", "write documentation for this app", "operator guide", "client handover doc", "PDF manual", "training guide".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wangqiqi/cursor-aitheir own version, first seen Sep 23, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- wangqiqi/cursor-ai★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- clickup-connectSkill
- decision-logSkill
- driverSkill
- executorSkill
- frontend-verifySkill
- handoffSkill
- investigateSkill
- resume-workSkill
- reviewerSkill
- server-connectSkill
- workspace-initSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Capture: every screen by driving the real app
- Distinctive: line 37
Read the codebase, don't ask the user to explain their own app:
- Distinctive: line 96
Write to the figure in front of you.
- Distinctive: line 117
No figure split across a page break
- Distinctive: line 129
Regenerate, don't patch: When the UI changes, re-capture and rebuild.
- Very specific: line 131
Commit manual.html and the config.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
User Manual — Read the Code, Drive the UI, Ship a PDF
Three passes, in this order, and the order is the point:
- Learn the product from the codebase — routes, roles, what each screen is for
- Capture every screen by driving the real app
- Write the prose against the captured screenshots, then render
Never write the manual first. Prose written before capture describes the UI you imagine, and every mismatch survives into a document a customer reads. Screens get renamed, buttons move, fields you were sure existed don't.
Step 0: Scaffold
~/.claude/skills/user-manual/scripts/init.mjs docs/user-manualCreates the working directory, package.json, manual.config.json, and an HTML skeleton
wired to assets/manual.css. Then npm install.
Step 1: Learn the product
Read the codebase, don't ask the user to explain their own app:
- Routes — the router config or file-based route tree. This is the chapter list.
- Navigation — the sidebar or nav component gives you the user's mental model and the order chapters should follow. Follow the app's order, not the filesystem's.
- Roles and permissions — who sees what. A manual that documents admin-only screens for an operator audience is worse than no manual.
- Forms — field names, validation rules, required vs optional. This is where manuals earn their keep; it is what people actually look things up for.
- Empty and error states — what users hit when something goes wrong.
- Existing
README,docs/, ADRs — for vocabulary. Use the product's words, not synonyms you prefer. If the UI says "counterparty", the manual says counterparty.
Produce a chapter outline and confirm it before capturing. Capturing the wrong 30 screens is the expensive mistake here.
Step 2: Plan the captures
Edit manual.config.json. One entry per figure, named to match its chapter — 01-login,
02-dashboard, 03b-export-dialog.
{
"baseUrl": "http://localhost:3000",
"viewport": { "width": 1440, "height": 900 },
"auth": { "path": "/login", "email": "input[type=email]", "password": "input[type=password]", "submit": "button[type=submit]" },
"shots": [
{ "name": "01-login", "path": "/login", "fullPage": false, "noAuth": true },
{ "name": "02-dashboard", "path": "/dashboard", "delay": 1500 },
{ "name": "03b-export", "path": "/orders", "fullPage": false,
"actions": [{ "clickRole": ["button", "Export"] }, { "wait": 800 }] }
]
}Credentials come from the environment — MANUAL_EMAIL, MANUAL_PASSWORD. Never put them
in the config, the scripts, or the transcript. The capture script refuses to run if auth
is configured and they're unset.
Seed data matters as much as the code. Screenshots of empty tables teach nothing; screenshots of real customer records are a data-protection incident. Use a demo tenant with realistic fake data.
Step 3: Capture
MANUAL_EMAIL=... MANUAL_PASSWORD=... npm run captureRetina (deviceScaleFactor: 2), animations disabled, full-page by default. Dialogs and
focused states use fullPage: false — a full-page shot of a modal is mostly backdrop.
Missing shots are reported, never invented. Review the screenshots before writing a word.
Step 4: Write against what you captured
Per chapter: what the screen is for → the figure → numbered steps → field reference table → callouts for anything that loses data or money.
- Write to the figure in front of you. If the screenshot contradicts your sentence, the screenshot is right.
- Steps are numbered and imperative: "Click Export", not "the user may click export".
- Field tables are the most-used part of any manual. Include validation rules and what happens when they fail.
- Callouts:
.calloutfor context,.warningfor surprising behaviour,.dangerfor irreversible actions.
Layout rules and the component classes are in references/layout.md.
Step 5: Build and verify
npm run buildThen check the PDF — a build that exits 0 and produces a broken document is the normal failure here:
- Page count is plausible
- No blank figures. The classic bug: images not decoded before print
- No figure split across a page break
- Backgrounds and brand colour present (needs
printBackground+print-color-adjust) - TOC page numbers match reality
- File size sane — 25 retina screenshots run 5–15 MB
Rules
- Never fabricate a screenshot or describe a screen you did not capture. If a screen couldn't be reached, list it as not covered.
- No real customer data in any figure. Demo tenant, fake records.
- No credentials in config, scripts, HTML, or the PDF. Check the login screenshot for a filled-in email before shipping.
- Regenerate, don't patch. When the UI changes, re-capture and rebuild. A manual with screenshots from two releases ago is actively misleading.
- Commit
manual.htmland the config; gitignorescreenshots/and the PDF unless the client needs them in-repo.
Related
references/capture.md— auth, flaky states, dialogs, charts, troubleshootingreferences/layout.md— print CSS, page breaks, figures, callouts, tables, TOCassets/manual.css— the stylesheet the skeleton uses; restyle per brand
<sub>Script paths above assume a user-level install (~/.claude/skills/). Installed as a
plugin or per-project, the scripts still sit beside this file — swap the prefix for
${CLAUDE_PLUGIN_ROOT}/skills/user-manual or .claude/skills/user-manual respectively.</sub>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

