Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
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.
Write precisely to ensure your instructions are unambiguous.
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.
Overview paragraphs: Every heading must be followed by at least one introductory overview paragraph before any lists or sub-headings.
Text wrap: Wrap text at 80 characters (except long links or tables).
Casing: Use sentence case for headings, titles, and bolded text.
Naming: Always refer to the project as Gemini CLI (never
the Gemini CLI).
Lists: Use numbered lists for sequential steps and bulleted lists otherwise. Keep list items parallel in structure.
UI and code: Use bold for UI elements and code font for filenames,
snippets, commands, and API elements. Focus on the task when discussing
interaction.
Accessibility: Use semantic HTML elements correctly (headings, lists, tables).
Media: Use lowercase hyphenated filenames. Provide descriptive alt text for all images.
Details section: Use the <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>Callouts: Use GitHub-flavored markdown alerts to highlight important
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):
[!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.
/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.[!NOTE] This is an experimental feature currently under active development. (Note: Use
{/* prettier-ignore */}if editing an.mdxfile.)
Before modifying any documentation, thoroughly investigate the request and the surrounding context.
packages/) for
accuracy.docs/.docs/sidebar.json needs updates.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.
Perform a final quality check to ensure that all changes are correctly formatted and that all links are functional.
npm run format fails, it may be necessary to run npm install 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.