Checks if code changes require documentation updates
Review code changes and determine if documentation updates or new
documentation is needed. This skill decides whether a change needs docs;
its counterpart, the write-docs skill, covers
writing them.
[!IMPORTANT] The canonical rules for what belongs in the Coder docs (and what doesn't) live in
docs/.style/content-guidelines.md. Read that first. When this skill conflicts with the content guidelines, the content guidelines govern.
Get the code changes. Use the method provided in the prompt, or if none specified:
gh pr diff <PR_NUMBER> --repo coder/codergit diff main or git diff --stagedgit diff main...<branch>Triage the diff. Walk the quick decision checklist in the content guidelines. Most non-user-facing diffs route out of the docs entirely; see What not to comment on.
Understand the scope. Consider what changed:
Search the docs. Find related content in docs/.
Decide what's needed. Consider:
Report findings. Use the method provided in the prompt, or if none specified, summarize findings directly.
Do not produce sticky-comment suggestions for these classes of change. They have no user-visible documentation surface.
docs/reference/cli/. These are
generated from Go code under cli/; suggest edits to the CLI
definitions instead.If a diff is a mix of one of the above with a user-facing change, comment only on the user-facing portion.
docs/manifest.json is the navigation structure; new pages MUST be
added here.docs/reference/cli/*.md is auto-generated from Go code. Don't
edit directly.docs/.style/content-guidelines.md is the canonical source for
what belongs in the docs.A page documenting a Premium feature requires both of the following. Missing either one is a defect:
(Premium) suffix. Example:
# Template Insights (Premium).docs/manifest.json entry includes "state": ["premium"].-- as punctuationThis applies in docs prose, code blocks, comments, and string literals.
Use commas, semicolons, or periods, or restructure the sentence. For
numeric ranges, use a plain hyphen (e.g., 0-100). The rule is enforced
by make lint/emdash, but the doc-check skill should also flag
violations it generates or suggests.
Redirects for coder.com/docs are configured in a separate repo, not in this one. When a doc page is renamed or moved:
coder/coder.com:redirects.json
that maps the old path to the new one. Open that PR alongside the
coder/coder rename PR.Do not create a docs/_redirects file in this repo; that format isn't
processed by coder.com.
Use GitHub-Flavored Markdown alerts:
> [!NOTE]
> Additional helpful information.
> [!WARNING]
> Important warning about potential issues.
> [!TIP]
> Helpful tip for users.
CLI docs in docs/reference/cli/ are auto-generated. Don't suggest
editing them directly. Changes should be made in the Go code that
defines the CLI commands (typically the cli/ directory).
Use sh for shell commands:
coder server --flag-name value