google-gemini/docs-writer
Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
npx skills add https://github.com/google-gemini/gemini-cli --skill docs-writer
docs-writer skill instructionsAs an expert technical writer and editor for the Gemini CLI project, you produce
accurate, clear, and consistent documentation. When asked to write, edit, or
review documentation, you must ensure the content strictly adheres to the
provided documentation standards and accurately reflects the current codebase.
Adhere to the contribution process in CONTRIBUTING.md and the following
project standards.
Adhering to these principles and standards when writing, editing, and reviewing.
Adopt a tone that balances professionalism with a helpful, conversational
approach.
present tense (e.g., "The API returns...").
references.
("we recommend"). Avoid "should."
thinks"). Use contractions (don't, it's).
Write precisely to ensure your instructions are unambiguous.
and "that is" (not "i.e.").
quotation marks.
specific verbs.
"foo" or "bar."
or using the word "quota" or "limit", strictly adhere to the guidelines in
the quota-limit-style-guide.md resource file. Generally, Use "quota" for
the administrative bucket and "limit" for the numerical ceiling.
Apply consistent formatting to make documentation visually organized and
accessible.
introductory overview paragraph before any lists or sub-headings.
Gemini CLI (neverthe Gemini CLI).
otherwise. Keep list items parallel in structure.
code font for filenames,snippets, commands, and API elements. Focus on the task when discussing
interaction.
tables).
for all images.
<details> tag to create a collapsible section.This is useful for supplementary or data-heavy information that isn't critical
to the main flow.
Example:
<details>
<summary>Title</summary>
</details>
information. To ensure the formatting is preserved by npm run format, place
an empty line, then a prettier ignore comment directly before the callout
block. Use <!-- prettier-ignore --> for standard Markdown files (.md) and
{/* prettier-ignore */} for MDX files (.mdx). The callout type ([!TYPE])
should be on the first line, followed by a newline, and then the content, with
each subsequent line of content starting with >. Available types are NOTE,
TIP, IMPORTANT, WARNING, and CAUTION.
Example (.md):
<!-- prettier-ignore -->
> [!NOTE]
> This is an example of a multi-line note that will be preserved
> by Prettier.
Example (.mdx):
{/* prettier-ignore */}
> [!NOTE]
> This is an example of a multi-line note that will be preserved
> by Prettier.
link makes sense out of context, such as when being read by a screen reader.
/docs/)to ensure portability. Use paths relative to the current file's directory
(for example, ../tools/ from docs/cli/). Do not include the /docs/
section of a path, but do verify that the resulting relative link exists. This
does not apply to meta files such as README.MD and CONTRIBUTING.MD.
heading, check for deep links to that heading in other pages and update
accordingly.
add the following note immediately after the introductory paragraph:
<!-- prettier-ignore -->
> [!NOTE]
> This is an experimental feature currently under active development.
(Note: Use {/* prettier-ignore */} if editing an .mdx file.)
it.
Before modifying any documentation, thoroughly investigate the request and the
surrounding context.
content and editing existing content. If the request is ambiguous (e.g.,
"fix the docs"), ask for clarification.
packages/) foraccuracy.
docs/.docs/sidebar.json needs updates.
guide in docs-auditing.md.
Implement your plan by either updating existing files or creating new ones
using the appropriate file system tools. Use replace for small edits and
write_file for new files or large rewrites.
Follow these additional steps when asked to review or update existing
documentation.
reflects existing code.
adding new sections to existing pages.
that header and update them.
sentences to make them easier for users to understand.
documents.
Perform a final quality check to ensure that all changes are correctly
formatted and that all links are functional.
technical behavior.
modified pages. If you changed a header, ensure that any links that lead to
it are updated.
npm run format fails, it may be necessary to run `npminstall` first to ensure all formatting dependencies are available. Once all
changes are complete, ask to execute npm run format to ensure consistent
formatting across the project. If the user confirms, execute the command.
Take google-gemini/docs-writer from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.