Skip to content
Back to skills

Docs Writing

ASecurity

Plan and produce ZotLit's reader-facing docs: lessons at /learn, recipes, answer pages and reference pages at /docs, landing copy. Use when adding, rewriting, moving or retitling a docs page, writing a fact sheet or writer brief, or checking a draft's labels, anchors and search title.

  • 1,096 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 14, 2026
researchrustgo

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add aidenlx/zotlit --skill docs-writing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Writing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Writing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aidenlx-docs-writing/badge)](https://www.skillsdirectory.com/skills/aidenlx-docs-writing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docs-writing
description: >
  Plan and produce ZotLit's reader-facing docs: lessons at /learn, recipes, answer pages and reference pages at /docs, landing copy. Use when adding, rewriting, moving or retitling a docs page, writing a fact sheet or writer brief, or checking a draft's labels, anchors and search title.
---

# Docs writing

The reader is a non-technical academic who arrives tired, with a chapter due. [`references/brief/shared.md`](references/brief/shared.md) is the single source for who they are, the voice, and "Show first"; read it before you plan a page.

Gemini writes the reader-facing prose. Your work is the facts, the structure, and the check.

## Page kinds

Every page serves one of eight research jobs: bring your library, find a paper, read and annotate, take notes, cite, see connections, export, make it yours.

| Kind | Reader | Where | Shape |
| --- | --- | --- | --- |
| **Lesson** | first run, guided | `/learn`, outside the docs layout | 5–7 steps, each about 40 words of caption, one action, one check line, a recording of the real app |
| **Recipe** | mid-task | `/docs` | the answer in the first screen, numbered steps, fixes by what the reader sees; near 300 words before the first fold-out |
| **Answer page** | comparing or stuck | `/docs` | 600–900 words, one table, a short list of questions and answers |
| **Reference** | looking something up | `/docs` | the complete list of settings, commands or template fields, compiled from its source |

A lesson or recipe names the one control it needs and links to the reference page for the rest.

An explanation lives in one of three places: one or two sentences beside the action it affects; a trust page, which is an answer page whose question is a worry ("Does ZotLit change my Zotero library?"); or the opening of a reference page. When a task moves pages, map the existing `tutorial/`, `how-to/` and `concepts/` folders onto these kinds; use `fumadocs-page-tree` for the tree mechanics.

## Search

- One page owns one search intent, in the searcher's words. Before you plan a page, search the titles and descriptions under `apps/docs/content/` for a page that owns the intent already. That page is the one you write: rewrite it into its kind; its lookup material belongs on a reference page.
- `searchTitle` (docs pages): one plain statement of the task, at most 60 characters, naming Zotero or Obsidian where the task involves them. It is the page's H1 and `<title>`. `title` is the sidebar label: two to four words. On a branch whose `apps/docs/content.config.ts` lacks `searchTitle`, the search title goes in `title`. A lesson's title follows the same rule through its brief.
- `description`: at most 160 characters, with the answer in the first 120.

## Procedure

Keep every working file under `apps/docs/.scratch/<page-slug>/`.

1. **Place the page.** Name its job, its kind, and its search intent.
2. **Collect the facts from the product.** Every fact comes from the product, an existing docs page on `next`, or a source you opened.
   - A lesson's steps are its **docs walk**, `packages/e2e/src/docs-walks/<slug>.walk.ts` (on branch `docs/learn-walks` until it merges): one `it` per step, run through the real apps. The walk also takes the step stills and recordings; read "Docs walks" in `packages/e2e/AGENTS.md`. A step the walk does not assert is a step to add to the walk first.
   - A recipe or answer page takes its facts from the running apps (`obsidian-debug`, `zotero-rdp-debug`), the source, and the existing page. Its screenshots come from `docs-screenshot`.
   - A ZotLit label is the exact string in `messages/en.json`; note its message key beside it. A label of Obsidian or Zotero is the string you read in the running app.
3. **Write the fact sheet** (`facts.md`). Model: [`references/fact-sheet-model.md`](references/fact-sheet-model.md), a lesson's; the same shape serves every kind. It holds, in order:
   - where the facts were checked (app versions, branch, walk), with each fact you read only in source marked so;
   - the page: its job and kind, what the reader ends with, the search words, what the reader needs, what is true and worth saying once, the next or related pages; for a recipe or answer page, also the answer in one or two sentences;
   - each step or section: the action with the exact labels in bold, the result the reader sees, the picture file, and the fixes as "what the reader sees: what to do". An answer page lists its table rows and columns and its questions with their answers in place of steps.
4. **Assemble the writer brief** (`brief.md`) for the page kind (`lesson`, `recipe` or `answer`) from [`references/brief/`](references/brief/), with `R` set to that folder:

   ```sh
   awk 'FNR==1 && NR>1 {print ""} 1' "$R/<kind>.opening.md" "$R/shared.md" "$R/<kind>.shape.md" > brief.md
   ```

5. **Run the writer** (the page's scratch folder serves), from a folder with no `AGENTS.md` above it that you want read (the flags below already turn context files off):

   ```sh
   pi -p --provider google --model gemini-3.8-flash --no-tools --no-skills \
     --no-prompt-templates --no-extensions --no-context-files --no-session \
     --system-prompt "$(cat <brief>.md)" \
     "Write this page from this fact sheet.

   $(cat <facts>.md)" > <draft>.md 2> <draft>.err < /dev/null
   ```

   Run one at a time; parallel runs have stalled. `< /dev/null` is required.

6. **Check the draft against the fact sheet:** every label exact, every step present once, nothing added that the fact sheet does not hold, lengths within the brief. Then run `slop-check` on it. Fix a wrong fact by correcting the fact sheet and running again, or by the smallest edit to the wrong words; fix a slop flag by the smallest edit. Leave Gemini's wording alone otherwise.
7. **Build the page** from the checked draft (this step covers `/docs` pages; a lesson follows "Learn" in `apps/docs/DESIGN.md`):
   - The draft's `Title` is the frontmatter `searchTitle`, its `Sidebar label` is `title`, and its `Description` is `description`.
   - Render every ZotLit label through the typed label components, as [`apps/docs/policies/ui-labels.md`](../../../apps/docs/policies/ui-labels.md) says.
   - Give every heading that is a deep-link target a stable `[#slug]` anchor, and place images, as "Content and writing docs" in `apps/docs/AGENTS.md` says.
   - Turn each figure request into the view it asks for (see "Show first").
   - Use the components the neighbouring pages import: `Steps`/`Step`, `Callout`, `Cards`/`Card`, `UiLabel`, `Command`, `SettingsPath`.
8. **Report** the paths of the fact sheet, the brief and the draft.

## Show first

A view explains before a paragraph does: a recording, a replica, a map, a before/after pair or a small table. The rules for each surface are "Illustration" in [`apps/docs/DESIGN.md`](../../../apps/docs/DESIGN.md): a lesson step shows the walk's recording with the still as its poster; the landing shows web replicas built from the real app's assets. Captions, check lines and table text stay HTML beside the picture.

Files in this skill

  • SKILL.md6.9 KB
  • references/brief/answer.opening.md358 B
  • references/brief/answer.shape.md1.8 KB
  • references/brief/lesson.opening.md348 B
  • references/brief/lesson.shape.md1.4 KB
  • references/brief/recipe.opening.md344 B
  • references/brief/recipe.shape.md2 KB
  • references/brief/shared.md3.2 KB
  • references/fact-sheet-model.md4.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.