Skip to content
Back to skills

Docs Standard

ASecurity

Create, restructure, review, audit, or fact-check Markdown documentation and module READMEs using audience-first hierarchy, one home per fact, tutorial/reference separation, progressive user-to-developer detail, executed-operation fact-checking, and the slop checklist. Use for new or revised docs, docs-tree organization, documentation-quality audits, and bilingual documentation structure.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 13, 2026
ai-agentsgogitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned November 13, 2026

npx -y skills add zehuichan/vibe-harness --skill docs-standard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Standard?

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

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

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-standard
description: Create, restructure, review, audit, or fact-check Markdown documentation and module READMEs using audience-first hierarchy, one home per fact, tutorial/reference separation, progressive user-to-developer detail, executed-operation fact-checking, and the slop checklist. Use for new or revised docs, docs-tree organization, documentation-quality audits, and bilingual documentation structure.
---

# Documentation standard

Make every page searchable, newcomer-readable, and exact enough for agents and maintainers. The tiers, writing rules, budgets, and slop checklist live in `docs/AGENTS.md`; this skill owns the workflow for applying them. Preserve one owner per fact: source, tests, generated catalogs, READMEs, guides, and Agent Notes each keep their own kind of truth. Follow the workflow for every requested scope; the quality criteria are the definitions a review applies, and the fact-check procedure is mandatory for every operation claim.

## Workflow

Follow this sequence for each requested scope. Keep the common reader path brief, but do not delete failures, ownership, limitations, or other required contracts to reduce words.

1. Read the root and subtree `AGENTS.md` files, `docs/AGENTS.md`, the target page, its source and tests, and its navigation owner.
2. Classify the page by one primary job and reader: quick start, user task guide, contributor tutorial, architecture overview, module reference, generated reference, agent instruction, decision record, or scratch.
3. Place the page at its nearest owner. Keep module contracts beside the module's code; use `docs/` for cross-module learning, user, developer, and architecture material.
4. Define the reader's starting state, observable outcome, likely failure, recovery path, and next useful depth before writing details.
5. Write in the order given by [page structure](references/page-structure.md): title, Summary, contents, user-facing content, developer-facing content, optional Further Exploration.
6. When the profile enables `surfaces.bilingual-docs`, update the counterpart in the same pass and keep headings, lists, tables, code, and links aligned line for line.
7. Verify every claim against code, tests, generators, package metadata, or a current decision owner, and run the operations the page instructs (see the fact-check procedure below). Update the owner before any derivative artifact.
8. Run focused checks, then the profile's `commands.docs-check`, `commands.lint`, and `git diff --check`; re-read the complete diff once for correctness and once for brevity and fit.

## Fact-check procedure: test, do not assume

Documentation states how the product behaves today, and the only admissible evidence for an operation claim is having run it. This applies to every new page and every new paragraph that claims a command, default, error, output, or platform difference.

1. **Classify the subject before writing install or usage guidance.** Read the facts (manifests, entry points, exports), not the folder name. A library, a plugin, a CLI, and a service each have a different usage path; never copy guidance written for another kind.
2. **Run every claimed operation against the current checkout.** Execute each command, configuration snippet, and example exactly as the page will show it; write down only what you observed, including warnings and failure modes. If a claim depends on credentials or a network you do not have, say so and name the verification owner instead of asserting the behavior.
3. **Delete what you could not reproduce.** Never carry a command, field, default, or behavior from memory, analogy, or a neighboring README. When a claim fails to reproduce, fix the claim, not the test.
4. **Check old docs against the latest default branch.** Before revising an existing page, fetch and compare against the default branch; a stale statement on the default branch is still wrong, so correct it against the code, not against the old prose.
5. **Re-record a translated pair after every edit** when the project tracks pairs with a recorded check.

## Voice rules

- **Summary says what the subject does.** The Summary and user-facing sections describe what a reader can do with the subject (outcomes, when to choose it, main cost), never its internal identity or registrations. Omit source identifiers unless the reader uses them directly in configuration, a command, or a public API.
- **Developer sections explain, never enumerate.** Developer detail covers the design concept, architecture, and approximate data flow, enough to understand how it works, and links code for exact detail. No full API catalogs, column lists, or API-doc restatement.
- **Current state only.** Ordinary documentation describes the current codebase. Historical narrative belongs in commits, pull requests, Agent Notes, and postmortems. An upgrade guide states only the old and new behavior of one break and the reader's migration, from its version directory's release to the next.
- **Controlled technical English.** Give each sentence an explicit actor and one main action when ambiguity can change behavior; reuse one term per concept; split stacked instructions; preserve modality and exceptions. Do not force a shorter sentence when precision would fall. See [page structure](references/page-structure.md#controlled-technical-english).

## Quality criteria

Use these definitions in review. Each section opens with a short orienting paragraph before subsections or exhaustive detail.

- **Brief:** the common path contains only facts needed for its outcome; exhaustive truth is one link or detail layer away.
- **Intuitive:** prerequisites precede dependent concepts, one next action is obvious, and headings use terms readers search for.
- **Friendly:** readers can recognize success, understand risk before acting, recover from likely failure, and choose whether to go deeper.
- **Accurate:** each durable claim has one owner and a verification path proportionate to its risk.
- **Agent-readable:** stable headings, anchors, terminology, and ownership support targeted retrieval without loading the whole corpus.
- **Newcomer-complete:** an engineer with no repository context can reconstruct the relevant architecture or feature through three to five linked pages.

Do not apply a universal word limit to exhaustive references; measure entry-path length, unrelated material scanned per lookup, largest section, heading count, and page size, and split by an existing domain owner when retrieval cost is high.

## Audit the corpus

Read, do not re-summarize, the owning contracts: `docs/AGENTS.md`, `.agents/notes/README.md`, any translation rules, and the root `AGENTS.md`. Exclude `.agents/notes/archived/` from audits and edits; archived notes are frozen history.

Apply the authoring order from `docs/AGENTS.md` to every human-facing document in scope (not to Agent Notes): locate the document and state its subject; set its permitted detail and move deeper explanations to owning descendants with links; classify tutorial or reference from intended use, not path; for a tutorial, order concepts by prerequisite and difficulty; split substantial mixed forms. Translated pairs cost a counterpart update on every edit. A target structure is not permission for an opportunistic mass move: move one coherent topic at a time, atomically with every inbound link repaired in the same change, and preserve published routes or add redirects for them. Generated catalogs are never hand-edited.

Then hunt the slop checklist in `docs/AGENTS.md`, cheapest probes first: use [trim-cot-leakage](../trim-cot-leakage/SKILL.md) for reasoning-transcript leakage, search distinctive phrases for duplicated rules, replace hand-written catalogs with their authoritative owners, and remove migration plans and future-tense spec language from implemented Agent Notes. Measure outliers against the project's word budgets and with a word-count scan. If removing prose would change promised behavior rather than its explanation, propose the behavior change first (see [find-simplifications](../find-simplifications/SKILL.md)). Keep every load-bearing rule, preferably as one to three lines plus a link to its rationale; do not create a new explanation merely to relocate disposable reasoning.

## Validation

Validate the affected format, not merely Markdown syntax. A strong promise needs a focused valid fixture and an invalid fixture that proves the executed check can fail.

- Tutorials: exercise the documented entry path or name an explicit manual verification owner.
- Generated references: run the deterministic freshness check and report retrieval-size measures.
- Module READMEs: run the project's README checks, then focused tests when behavior claims changed; re-run every command the README instructs before merging a claim about it.
- Translated pages: verify structure, line count, terminology, and link parity.

## Detailed references

- [Page structure and style](references/page-structure.md): page order, section progression, the module README skeleton, folding, controlled technical English, and emphasis.
- [Review criteria](references/review.md): the newcomer test, evidence review, and README review.

Use [prose-standard](../prose-standard/SKILL.md) for sentence-level contract coverage and editorial judgment.

Files in this skill

  • SKILL.md9.1 KB
  • references/page-structure.md6 KB
  • references/review.md3.8 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 ai-agents →

Comments

Loading comments…

Newsletter

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