.gemini/skills/docs-writer/references/docs-auditing.md
This guide outlines the process for auditing the Gemini CLI documentation for correctness and adherence to style guidelines. This process involves both an "Editor" and "Technical Writer" phase.
To ensure all public-facing documentation is accurate, up-to-date, adheres to the Gemini CLI documentation style guide, and reflects the current state of the codebase.
Role: The editor is responsible for identifying potential issues based on style guide violations and technical inaccuracies.
Identify Documentation Scope:
docs/sidebar.json to get a list of all viewable documentation
pages.slug, convert it into a file path (e.g., docs ->
docs/index.md, docs/get-started -> docs/get-started.md). Ignore
entries with link properties.Prepare Audit Results File:
audit-results-[YYYY-MM-DD].md (e.g.,
audit-results-2026-03-13.md). This file will contain all identified
violations and recommendations.Retrieve Style Guidelines:
docs-writer skill instructions and the
included style guidelines.Audit Each Document:
Gemini CLI).## to ####).grep_search and read_file
within the packages/ directory (or other relevant parts of the
codebase) to ensure the code is still accurate and up-to-date. Pay close
attention to version numbers, package names, and command syntax.audit-results-[YYYY-MM-DD].md.Role: The software engineer is responsible for finding undocumented features by auditing the codebase and recent changelogs, and passing these findings to the technical writer.
Proactive Codebase Audit:
packages/cli/src/commands/packages/core/src/tools/packages/cli/src/config/settings.tsReview Recent Updates:
Evaluate and Record Findings:
audit-results-[YYYY-MM-DD].md file,
providing a brief description of the feature and where it should be
documented.Role: The technical writer handles input from both the editor and the software engineer, makes appropriate decisions about what to change, and implements the approved changes.
Review Audit Results:
audit-results-[YYYY-MM-DD].md to understand all identified issues,
undocumented features, and recommendations from both the Editor and
Software Engineer phases.Make Decisions and Log Reasoning:
audit-implementation-log-[YYYY-MM-DD].md).Implement Changes:
replace tool. Pay close
attention to old_string for exact matches, including whitespace and
newlines. For multiple occurrences of the same simple string (e.g.,
"e.g."), use allow_multiple: true.Error: Please contact your administrator).replace or write_file as appropriate.docs/get-started.md to fix a broken
link, or a new feature article), use write_file.Execute Auto-Generation Scripts:
npm run docs:settings to generate/update the configuration reference.npm run docs:keybindings to generate/update the keybindings reference.Format Code:
npm run format fails, it may be necessary to run
npm install first to ensure all formatting dependencies are available.npm run format to ensure
consistent formatting across the project.