Write technical docs

From flutter/website · View interactive version

Write technical docs is an AI agent skill from the GitHub repository flutter/website. Write or review clear, consistent, and accessible prose for Dart and Flutter developer documentation. Use for tutorials, API references, UI text, error messages, code comments, and terminology or style reviews.

How to use this skill

Skill file

Write technical documentation

Write clear, consistent developer-facing prose.

Use the format-markdown skill for markup mechanics

and the write-dart and write-flutter skills for code examples.

This style is based on the [Google developer documentation style guide][].

The guide is licensed under CC BY 4.0

and is the fallback for topics not covered here.

An explicit project convention takes precedence.

[Google developer documentation style guide]: https://developers.google.com/style

Core rules

Apply these rules to most developer-facing prose.

Voice and stance

address the reader as "you".

Use "we" only to describe something the authoring team

or project did.

Never use "we" to mean "you".

For example, don't write "we then call the function".

"Send a request to the server", not "A request is sent".

"The command returns a list", not "will return".

Use common contractions such as "you're", "it's", and "don't".

Skip filler enthusiasm and exclamation points.

code doesn't "want", "think", "see", or "decide".

A function "returns" or "produces".

It doesn't "know".

Clarity

when they help the reader interpret the action.

Write "To deploy the app, run the command"

instead of "Run the command to deploy the app".

Write "If the build fails, check the logs"

instead of "Check the logs if the build fails".

Readers need relevant framing before the action.

avoid _simply, just, easy, quick, currently, at this time, please,

in order to, note that_.

Lead each paragraph with its main point.

Formatting

capitalize only the first word and proper nouns.

For example, write "Set up your environment",

not "Set Up Your Environment".

When referring to an existing UI label,

match the interface unless its labels are all uppercase or inconsistent.

In those cases, use sentence case.

In Markdown, enclose code font in backticks.

Apply it to:

keywords, identifiers, filenames, paths,

commands, subcommands, flags, and literal values.

Save, the Settings menu, and the Name field.

use logical punctuation:

place punctuation inside the closing quotation mark

only when it's part of the quoted content.

For ordinary prose quotations,

place commas and periods inside the closing quotation mark.

For examples, consult Punctuation.

"buttons, links, and menus".

Never link bare "click here", "here", "this", or "read more".

links or cross-references.

Prefer action-oriented or descriptive phrasing such as

"refer to", "consult", or "visit"

(for example, "To learn about X, visit Y" or

"For details, consult the X documentation").

or when matching a UI label.

"January 5, 2026" or "2026-01-05", never "01/05/26".

Lists

such as fields and their meanings.

For Markdown syntax,

follow the format-markdown guidance for the target platform.

For example, start all items with a verb

or write all items as noun phrases.

Content and inclusion

Document only released behavior.

For additional guidance, consult Voice and tone.

humor that doesn't translate, and directional words that assume a layout.

prefer _allowlist_ and _blocklist_ over _whitelist_ and _blacklist_,

_primary_ and _replica_ over _master_ and _slave_,

_placeholder_ over _dummy_,

and people-first or community-preferred phrasing.

For additional guidance,

consult Inclusive and global writing

and Word choice.

References

Read only the references relevant to the text you're writing or reviewing:

Stance, tense, active voice, claims, jargon, recommendations,

and stable wording.

Abbreviations, capitalization, pronouns, sentence structure,

and API-reference verb forms.

Commas, dashes, hyphens, end punctuation, quotation marks, and slashes.

Headings, lists, tables, procedures, notices, numbers, units,

examples, images, and cross-references.

Code in text, code samples, command-line syntax, placeholders,

UI interaction, API reference comments, and filenames.

Inclusive language, writing for a global audience, and accessibility.

High-frequency terms, Dart and Flutter names, trademarks,

and safe example data.

Expanded structured guidance and rationale for individual terms.

Load it only for a strict or thorough terminology review or

to resolve and explain a specific word-choice change.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.