跳到主要内容

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.

在 GitHub 打开

安装方式

cp -r .gemini/skills/docs-writer ~/.claude/skills/docs-writer

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/google-gemini/gemini-cli.git

依赖与权限

  • 无需 API Key
  • 无需联网
  • 依赖外部命令:npm make
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
触发场景
reviewingany `

SKILL.md 正文

来源 google-gemini/gemini-cli@9b6e026 · 许可 Apache-2.0 · 内容未修改

docs-writer skill instructions

As 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.

Phase 1: Documentation standards

Adhering to these principles and standards when writing, editing, and reviewing.

Voice and tone

Adopt a tone that balances professionalism with a helpful, conversational

approach.

  • Perspective and tense: Address the reader as "you." Use active voice and

present tense (e.g., "The API returns...").

  • Tone: Professional, friendly, and direct.
  • Clarity: Use simple vocabulary. Avoid jargon, slang, and marketing hype.
  • Global Audience: Write in standard US English. Avoid idioms and cultural

references.

  • Requirements: Be clear about requirements ("must") vs. recommendations

("we recommend"). Avoid "should."

  • Word Choice: Avoid "please" and anthropomorphism (e.g., "the server

thinks"). Use contractions (don't, it's).

Language and grammar

Write precisely to ensure your instructions are unambiguous.

  • Abbreviations: Avoid Latin abbreviations; use "for example" (not "e.g.")

and "that is" (not "i.e.").

  • Punctuation: Use the serial comma. Place periods and commas inside

quotation marks.

  • Dates: Use unambiguous formats (e.g., "January 22, 2026").
  • Conciseness: Use "lets you" instead of "allows you to." Use precise,

specific verbs.

  • Examples: Use meaningful names in examples; avoid placeholders like

"foo" or "bar."

  • Quota and limit terminology: For any content involving resource capacity

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.

Formatting and syntax

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>

  • First entry
  • Second entry

</details>

  • 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):

<!-- 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.

Links

  • Accessibility: Use descriptive anchor text; avoid "click here." Ensure the

link makes sense out of context, such as when being read by a screen reader.

  • Use relative links in docs: Use relative links in documentation (/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.

  • When changing headings, check for deep links: If a user is changing a

heading, check for deep links to that heading in other pages and update

accordingly.

Structure

  • BLUF: Start with an introduction explaining what to expect.
  • Experimental features: If a feature is clearly noted as experimental,

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.)

  • Headings: Use hierarchical headings to support the user journey.
  • Procedures:
  • Introduce lists of steps with a complete sentence.
  • Start each step with an imperative verb.
  • Number sequential steps; use bullets for non-sequential lists.
  • Put conditions before instructions (e.g., "On the Settings page, click...").
  • Provide clear context for where the action takes place.
  • Indicate optional steps clearly (e.g., "Optional: ...").
  • Elements: Use bullet lists, tables, details, and callouts.
  • Avoid using a table of contents: If a table of contents is present, remove

it.

  • Next steps: Conclude with a "Next steps" section if applicable.

Phase 2: Preparation

Before modifying any documentation, thoroughly investigate the request and the

surrounding context.

  1. Clarify: Understand the core request. Differentiate between writing new

content and editing existing content. If the request is ambiguous (e.g.,

"fix the docs"), ask for clarification.

  1. Investigate: Examine relevant code (primarily in packages/) for

accuracy.

  1. Audit: Read the latest versions of relevant files in docs/.
  2. Connect: Identify all referencing pages if changing behavior. Check if

docs/sidebar.json needs updates.

  1. Plan: Create a step-by-step plan before making changes.
  2. Audit Docset: If asked to audit the documentation, follow the procedural

guide in [docs-auditing.md](./references/docs-auditing.md).

Phase 3: Execution

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.

Editing existing documentation

Follow these additional steps when asked to review or update existing

documentation.

  • Gaps: Identify areas where the documentation is incomplete or no longer

reflects existing code.

  • Structure: Apply "Structure (New Docs)" rules (BLUF, headings, etc.) when

adding new sections to existing pages.

  • Headers: If you change a header, you must check for links that lead to

that header and update them.

  • Tone: Ensure the tone is active and engaging. Use "you" and contractions.
  • Clarity: Correct awkward wording, spelling, and grammar. Rephrase

sentences to make them easier for users to understand.

  • Consistency: Check for consistent terminology and style across all edited

documents.

Phase 4: Verification and finalization

Perform a final quality check to ensure that all changes are correctly

formatted and that all links are functional.

  1. Accuracy: Ensure content accurately reflects the implementation and

technical behavior.

  1. Self-review: Re-read changes for formatting, correctness, and flow.
  2. Link check: Verify all new and existing links leading to or from

modified pages. If you changed a header, ensure that any links that lead to

it are updated.

  1. Format: If 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.

质量与来源

所属仓库
google-gemini/gemini-cli
仓库星标
11 万
最近更新
今天
采集时间
今天
commit
9b6e0265d16b
内容指纹
sha256:a7e5c1e5ed154e6
文件路径
.gemini/skills/docs-writer/SKILL.md

同仓库其它 Skill

查看全部 25 个
agent-tui
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications programmatically for testing, automation, and inspection. Use when: automating CLI/TUI interactions, regression testing terminal apps, or verifying interactive behavior. Also use when: user asks "what is agent-tui", "what does agent-tui do", "demo agent-tui", "show me agent-tui", "how does agent-tui work", or wants to see it in action.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
async-pr-review
Trigger this skill when the user wants to start an asynchronous PR review, run background checks on a PR, or check the status of a previously started async PR review.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
behavioral-evals
Guidance for creating, running, fixing, and promoting behavioral evaluations. Use when verifying agent decision logic, debugging failures, debugging prompt steering, or adding workspace regression tests.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
ci
A specialized skill for Gemini CLI that provides high-performance, fail-fast monitoring of GitHub Actions workflows and automated local verification of CI failures. It handles run discovery automatically—simply provide the branch name.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
code-reviewer
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端
docs-changelog
Generates and formats changelog files for a new release based on provided version and raw changelog data.
精选 google-gemini/gemini-cli 11 万 原文
Codex CLIGemini CLIMCP 客户端

相似 Skill

更多「编码」
access
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端