Awesome Reviewers

Reviewer · Documentation

Actionable documentation text

Documentation—whether Go doc comments, CLI help/usage strings, or user-facing output—must be precise, convention-compliant, and immediately actionable.

Instruction

Documentation—whether Go doc comments, CLI help/usage strings, or user-facing output—must be precise, convention-compliant, and immediately actionable.

  • Godoc comments must follow Go conventions by starting with the name of the declared identifier, so tools (and linters) can parse them correctly. For example, prefer // EncodeJSON encodes/marshals the given object into JSON over a comment that omits the function name.
  • When CLI usage text or help output references another flag or option, spell it out exactly as the user would type it (e.g., -sha256 rather than just sha256) so there’s no ambiguity about how to invoke it.
  • When writing informational/help output (banners, success messages, etc.) that references a resource or action, include the concrete command or path the user needs, rather than just a URL or abstract description, e.g., show vault kv get -mount=secret sample-secret instead of only listing a REST path. If adding every concrete example would make the output too verbose, keep the most critical ones inline and move exhaustive details to external docs, but avoid leaving users guessing about the next actionable step.

In short: every piece of documentation should tell the reader/user exactly what to do, using the exact syntax they need, and should follow the language/tool’s standard conventions for discoverability.