Catalogue / flow-docs
flow-docs
Apache-2.0SignedUse when writing or auditing technical documentation, READMEs, user guides, design docs, agent instructions, pull requests, commit messages, or changelogs. Don't use for planning implementation specs (use flow-planning) or syncing task state against Git (use flow-learn).--- name: flow-docs description: "Use when writing or auditing technical documentation, READMEs, user guides, design docs, agent instructions, pull requests, commit messages, or changelogs. Don't use for planning implementation specs (use flow-planning) or syncing task state against Git (use flow-learn)." ---
Documentation, Agent Instructions, & Pull Requests
<!-- lifecycle-ownership: owner=flow-docs; operations=docs,pr -->
Write clear, accurate technical documentation, user guides, agent instruction files (AGENTS.md, SKILL.md, OKF knowledge chapters), commit messages, changelogs, and pull requests.
Operational Modes (/flow:docs [mode])
write— Author or update READMEs, user guides, module docs, or agent skills using file-checklist source coverage ([k/N files documented]).validate— Audit documentation and.agents/bundles/for first-time reader clarity, primary-sourcepath/to/file::Symbolaccuracy, broken links, and stale history.capture— Distill validated architectural and operational patterns from code and completed flows into.agents/bundles/knowledge/and user-facingdocs/.sync— Sync documentation claims and examples against live repository signatures and configuration.pr— Draft or update pull request titles,## Summary+## Key Changesbodies, signed commits, and release changelogs.
Core Writing Rules
- Pass the First-Time Reader Test. Every document must be understandable on the first read by an engineer or isolated agent with no prior chat history. Lead with purpose, public interface, concrete examples, and invariants.
- Read source before writing (`[k/N files documented]`). List the in-scope files first, read every file completely, and anchor claims to
path/to/file::Symbol. Never guess behavior from filenames or function names. - State rules plainly with a one-line `Reason:`. Write direct, present-tense sentences. When documenting a constraint or design choice, state the rule followed by
Reason: <why>. - Eliminate AI slop, buzzwords, and stale history.
- Never use promotional adjectives (
seamless,robust,comprehensive,pivotal,delve,leverage,blazingly fast), decorative adverbs (seamlessly,effortlessly,obviously), negative parallelisms ("not just X, but Y"), or formulaic transitions ("Moreover","Furthermore"). - Never use artificial numbered buzzword labels or inflated metaphors (
"engineering lawbooks","causal waterfall","zero-tolerance"). Name components and headings semantically so counts never break when items change. - Never leave stale history (
"Added in v2","Previously we used X") inside current-state documentation or specs. History belongs inCHANGELOG.mdand.agents/bundles/log.md. - Never leak internal workflow ceremony or private paths. Keep PRs, commits, changelogs, tests, and docs free of finding counts, task IDs (
PROJ-123,test_task_1_2_*), workflow internals,## Verificationcommand logs,## Merge Dangerblocks, ASCII trees, or local paths. - Keep reader-facing design docs prospective and concise. Omit commit SHAs, UUIDs, hash codes, source line numbers, private helper names, and mechanical inventory counts from PRDs and design docs. Keep documentation tables at 5 columns or fewer, one value per cell, without horizontal rules (
---) inside bundle bodies. Move traceability matrices into.agents/bundles/knowledge/or a companion index.
Reference Guides
| Area | Reference File | Key Topics | | --- | --- | --- | | Technical Prose & Documentation | `references/prose-and-documentation.md` | First-time reader standard, file-checklist coverage ([k/N files documented]), component scaling templates, guide structure, diagram rules, validation report | | Agent Context, .agents/, & Harness Config | `references/agent-context.md` | Cross-harness .agents/ discovery (skills, subagents, rules, hooks, MCP configs), context load vs. cognitive load, information hierarchy, context pointers, progressive disclosure, completion criteria, positive framing, pruning discipline | | Pull Requests, Commits, & Changelogs | `references/prs-commits-and-changelogs.md` | <type>(<scope>): <summary> titles, ## Summary + ## Key Changes PR bodies, signed commits, changelog conventions, inline PR reviews, GitHub issues |
Workflow
- Select Target & Reference:
- For READMEs, user guides, module/API docs, or doc audits, load `references/prose-and-documentation.md`.
- For `AGENTS.md`, `SKILL.md`, subagents, or `.agents/bundles/knowledge/` chapters, load `references/agent-context.md`.
- For PRs, commits, changelogs, or code review comments, load `references/prs-commits-and-changelogs.md`.
- Build Checklist & Parallelize Authoring:
- List every file in scope (
[0/N files documented]) and read each implementation file before drafting prose. - When documenting or syncing
>= 2domains, subsystems, or chapters (/flow:docs write | capture | sync), fan out isolated per-domain documentation subagents so each file gets runnable, code-verified examples rather than a compressed summary.
- Draft in Present Tense:
- Keep user guides focused on a single concept (
<= 200lines), leading with a runnable example and expected output. - Keep living specs (
specs/<flow_id>/spec.md,chapters/index.md,chapters/<ch_id>/spec.md),.agents/bundles/knowledge/**chapters, and userdocs/in present tense. State current verified reality, remaining chapters, and the full plan with zeroRevision Historysections. - Keep
SKILL.mdfiles<= 200lines (< 24,000bytes),<!-- truth: start -->blocks<= 40lines, and bundle bodies free of standalone---horizontal rules, disclosing deep reference material intoreferences/*.md.
- Verify & Prune:
- Strip puffery, stale history, duplicate cache lines, and workflow ceremony, then verify all links and examples (
make lint).
Guardrails
- Conceptual Diagrams Only in `docs/`: Keep Mermaid diagrams in user-facing
docs/andREADME.mdconceptual (4-6nodes focused on the user mental model). Place detailed module/implementation diagrams in.agents/bundles/knowledge/architecture/. - Single Source of Truth: Link to canonical rules rather than duplicating them across files.
- Calm, Matter-of-Fact Tone: Never use exclamation marks (
!) or dismissive language in documentation, PR bodies, or code reviews.
Validation
- Confirm every checklist item is covered (
[N/N files documented]) and every technical claim cites a verified source (path/to/file::Symbol). - Confirm PR bodies contain only
## Summaryand## Key Changesand every PR#or Issue#in chat is a clickable Markdown link. - Confirm all relative Markdown links resolve on disk and
make lintexits0.
Example
Invoke /flow:docs write to document a module with [4/4 files documented] coverage tracking, /flow:docs validate to audit .agents/bundles/ and docs/ for stale symbols or prose bloat, or /flow:docs pr when preparing a pull request in /flow:finish.
flow git validate-pr-body --title "feat(auth): add PKCE exchange" --from pr.md
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 7.5 kB | 39609e105a2f |
| SKILVAULT_SOURCE.json | 1.4 kB | fd5d5af00bc7 |
| THIRD_PARTY_NOTICES.md | 11.4 kB | fc69eca59406 |
| references/agent-context.md | 9.0 kB | a9a43e4a4b38 |
| references/prose-and-documentation.md | 7.3 kB | ef0ba3183f7f |
| references/prs-commits-and-changelogs.md | 4.4 kB | 619ede4430c9 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | ccd8a21437e8 | 29 Nov 2026 |
Locking a skill to one version needs Pro.