Write a complete, client-ready end-user guide for a web app with an agent team. Research what the app really does, define reader personas, plan a table of contents and a screenshot list, write ONE pilot page that the personas must accept, then parallel technical writers produce every page in that pattern with real screenshots carrying numbered markers (1, 2, 3) and a key under each image, checked by personas, a fact-checking verifier and a script gate; optionally publish to a Frappe Wiki spac...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of User Guide?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/venkateshvenki404224-user-guide)
---
name: user-guide
description: Write a complete, client-ready end-user guide for a web app with an agent team. Research what the app really does, define reader personas, plan a table of contents and a screenshot list, write ONE pilot page that the personas must accept, then parallel technical writers produce every page in that pattern with real screenshots carrying numbered markers (1, 2, 3) and a key under each image, checked by personas, a fact-checking verifier and a script gate; optionally publish to a Frappe Wiki space. Use it whenever someone asks for a user guide, user manual, help centre, product documentation, how-to docs or training docs "with screenshots", "annotated", "step by step", "for non-technical users" or "for the client", wants to document a feature they just built in the same style, wants to update or extend an existing guide made this way, or says /user-guide. Also use it to publish such a guide to a Frappe Wiki. Not for developer/API docs, READMEs or architecture docs.
---
# User guide: an agent team writes it, real readers accept it
You are the orchestrator. You do not write the pages yourself. You:
1. set the project up (config, tools, run file, control room);
2. run the **plan** workflow: research, table of contents, scope, screenshot tool, **one pilot page**, persona review loop, plan + tickets;
3. stop at the **owner gate** (show the pilot page and the persona verdicts);
4. run the **build** workflow: parallel writers, QA (personas per role, fact-check, design review, script gate), fixes, report, sign-off;
5. optionally **publish** to a Frappe Wiki.
It came from writing the client guide for a hospital web app built on Frappe: 73 pages for seven staff roles, 130+ pictures with numbered markers, published to a Frappe Wiki. A finished project has `docs/user-guide/` (the pages), `docs/images/<topic>/` (the marked pictures) and `docs/guide-project/` (planning, reviews, gate).
`S` = this skill's base directory. Use absolute paths in commands. Load the `workflow-authoring` skill before editing a workflow script; normally you only edit the run file.
## 0. Read the invocation
| Request | Do |
|---|---|
| `/user-guide <product/app>` or "write a user guide for X" | New guide: §1 to §3, then stop at the gate |
| "document feature X the same way" (a guide exists) | Feature mode: §1 with `mode: "feature"`; research = what changed; the plan adds pages to the existing guide and reuses its style guide; the pilot step is skipped when `pilot: false` (the accepted pattern already exists) |
| `/user-guide approve` | Gate passed: §4 |
| `/user-guide publish` | §5 |
| `/user-guide status` / `resume` | Report from the run journal / relaunch a stopped run (see §6) |
## 1. Set up (inline, no agents)
1. **The app must be running** and reachable, with demo users and invented demo data, and a way to reset the demo (a script). Check it (`curl -s -o /dev/null -w '%{http_code}' <baseUrl>/login` → 200). Screenshots of a test session at midnight get rejected later, so know when a reset works (see `references/lessons.md`).
2. **Tools into the project:** copy `$S/tools/shot.mjs` and `$S/tools/check-guide.mjs` to a folder that has Playwright installed (or set `playwrightModule`), e.g. `<root>/qa/e2e/docshots/`. Create `specs/` beside them.
3. **Config:** write `<root>/guide.config.json` from `$S/assets/guide.config.example.json` (keys in `references/config.md`): product, baseUrl, home path, login type (`frappe` = API login; `form` = selectors), password env var and file, guide/images/plan folders, banned words, fixed headings, phone prefix for invented numbers, wiki settings. Never put a password in it: name the env var.
4. **Run file:** `<root>/tools/<slug>.run.json` from `$S/assets/run.example.json` (keys in `references/config.md`): brief verbatim, context (what the app is, who reads, what exists, what is unfinished), environment commands, rules, research items, **personas** (`[{key, who}]`), `reader_setting`, `primary_reader`, `example_task`, `pilot_default`, roles and models. The default is lean: the strongest models only judge (PM, CEO, verifier); a mid model writes, reviews as a persona and researches.
5. **Workflow scripts:** copy `$S/workflows/plan.js` → `<root>/tools/<slug>-plan.workflow.js` and `build.js` → `<slug>-build.workflow.js`; change only `meta.name` to `<slug>-plan` / `<slug>-build`.
6. **Control room** (the `control-room` skill in this plugin): write a control-room config with the stages in `$S/assets/control-room-stages.json` and start `python3 $S/../control-room/scripts/control_room.py --config <file> --watch 10` in the background. Give the owner the HTML path.
## 2. Plan workflow
Run Workflow with `scriptPath: <root>/tools/<slug>-plan.workflow.js` and `args`: the run file JSON (a value, not a string). It produces, in the run's docs folder (`docs/guide-project/` by default):
| File | Who | What |
|---|---|---|
| `research/01-feature-inventory.md` | researcher + verifier | Every screen, button, dialog, print, setting, per role: WORKS / PARTIAL / NOT BUILT, with evidence from the running app |
| `research/02-doc-patterns.md` | researcher | How good help centres write (page anatomy, step grammar, numbered callouts). `references/doc-patterns-research.md` is a finished example |
| `research/03-reader-personas.md` | researcher | One card per persona key: background, computer and language comfort, device, needs, confusions, **a comprehension test** |
| `10-scope.md` | PM | Features, **the table of contents as a table**, **the screenshot list** (shot id, page, user, state, what each marker points at, file) |
| `20-ceo-decision.md` | CEO | What v1 covers (IN / COMING SOON / OUT), **the pilot page**, the done gate, claims, the demo state for pictures |
| `qa/e2e/docshots/` + sample | screenshots role | The tool set up for this app, one sample spec and image |
| pilot page in the guide | writer | Written in the running app, real annotated pictures |
| `25-persona-review.md` | personas + writer | Up to 3 rounds: every persona must accept; the writer revises between rounds |
| `_style-guide.md`, `_template.md`, guide `README.md` | PM | Rules and skeleton taken from the accepted pilot; the client's home page with "find your role" |
| `40-plan.md`, `tickets.json`, `41-plan-review.md` | PM, verifier | Contents, screenshot list, demo-state rules, file ownership (each writer owns whole parts + their image folders), done gate, tickets |
## 3. Owner gate (stop here)
Read the pilot page and open two of its images yourself. Give the owner: the table of contents (part and page counts), the pilot page path, the persona verdicts per round, the CEO's IN/COMING SOON/OUT calls, the ticket schedule, and open questions. Ask: approve, approve with changes, or stop. If the owner said beforehand to run unattended, approve yourself and write `42-owner-gate.md` with what you checked.
## 4. Build workflow
`python3 $S/../product-build/scripts/check_tickets.py <run file> --emit-args <args file>` if available (else build the args yourself: run file + `tickets` from tickets.json; slim tickets to id/title/owner/depends_on/hours/stretch/gate if the args get large — writers read the full ticket from tickets.json). Run Workflow with `scriptPath: <root>/tools/<slug>-build.workflow.js`. It runs:
- **Build:** a dependency scheduler, one agent per role at a time (writers never share a file). The screenshots role does resets and staging; writers take their own pictures with `shot.mjs` and open every image before reporting.
- **QA:** close-out, then in parallel: a persona per role reads their own pages from the guide home page; two fact-checkers follow every page in the running app; a design reviewer checks consistency; the screenshots role runs the checker (`check-guide.mjs`, 0 errors required) and the done gate.
- **Fix**, **final gate**, PM report (`60-build-report.md`), CEO sign-off (`61-ceo-signoff.md`).
Then report to the owner: verdict, pages and pictures, what failed, next actions. Run `node check-guide.mjs` yourself and open a few pictures before you claim done.
## 5. Publish to a Frappe Wiki (optional)
`references/publish-frappe-wiki.md`. In short: credentials in env only (`WIKI_URL`, `WIKI_TOKEN=key:secret`); create the space (`roles: [All: Read]` = signed-in only); `python3 $S/tools/publish_wiki.py plan` (dry run, 0 problems) → `push <space>` → submit/approve/merge the change request → crawl every page, link and image as a signed-in user. After later edits: `fix <space> go` updates only the changed pages and uploads new pictures.
## 6. When things go wrong
`references/lessons.md` has the incidents from the first guide made this way and the guard for each. The big ones: never resume a build run past its scheduler with `resumeFromRunId` (write a short continuation run instead); demo resets fail after midnight, so start runs that take pictures in the morning and size them to finish the same day; an agent must never wait for a date change; when a usage limit stops QA, run the checker yourself and schedule a review-only run (tickets = the gate ticket only); do not message running workflow agents (it can spawn duplicates).
## References
- `references/method.md`: the method in full: why one pilot page, the persona loop, the page anatomy, the done gate.
- `references/writing-rules.md`: the writing and picture rules every page follows (generic version of the first guide's style guide).
- `references/config.md`: every key of `guide.config.json` and the run file.
- `references/shots.md`: the screenshot spec format, targets, markers, crops, prints, phone pictures, data-changing chains.
- `references/publish-frappe-wiki.md`: the wiki API recipe and its gotchas.
- `references/lessons.md`: what went wrong and the guard for each.
- `references/doc-patterns-research.md`: the help-centre research behind the rules (Google, Microsoft, Diataxis, Shopify, Notion, Zoho...).
- `assets/`: config and run-file examples, control-room stages, and a style guide, page template and persona cards from a hospital app as worked examples.