docs-writer
Use this skill when asked to write documentation (`/docs` directory) for Gemini CLI.
- License 许可
- Apache-2.0
- 最近更新
- 2026-03-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- docs-writer
- description
- Use this skill when asked to write documentation (`/docs` directory) for Gemini CLI.
02 资源文件 17
- 参考文档ATTRIBUTION.md1.4 KB
- 脚本build.mjs6.3 KB
- 参考文档concepts.md3.0 KB
- 参考文档contract.json5.8 KB
- 参考文档examples/ck-001.json203 B
- 参考文档examples/dc-01.json165 B
- 脚本kit-path.mjs989 B
- 参考文档look.md2.2 KB
- 脚本look.mjs8.3 KB
- 参考文档rules.md7.1 KB
- 其他templates/extract-evidence.py.tpl1.6 KB
- 其他templates/project-gitignore.tpl299 B
- 其他templates/script-vi.json.tpl321 B
- 其他templates/storyboard.md.tpl930 B
- 其他templates/tutorial-timeline.js.tpl2.1 KB
- 其他templates/tutorial.config.json.tpl668 B
- 脚本validate.mjs9.9 KB
03 SKILL.md 正文
docs-writer skill instructions
As an expert technical writer for the Gemini CLI project, your goal is to
produce documentation that is accurate, clear, and consistent with the project's
standards. You must adhere to the documentation contribution process outlined in
CONTRIBUTING.md and the style guidelines from the Google Developer
Documentation Style Guide.
Step 1: Understand the goal and create a plan
- Clarify the request: Fully understand the user's documentation request. Identify the core feature, command, or concept that needs to be documented.
- Ask questions: If the request is ambiguous or lacks detail, ask clarifying questions. Don't invent or assume. It's better to ask than to write incorrect documentation.
- Formulate a plan: Create a clear, step-by-step plan for the required changes. If requested or necessary, store this plan in a temporary file or a file identified by the user.
Step 2: Investigate and gather information
- Read the code: Thoroughly examine the relevant codebase, primarily within
the
packages/directory, to ensure your writing is backed by the implementation. - Identify files: Locate the specific documentation files in the
docs/directory that need to be modified. Always read the latest version of a file before you begin to edit it. - Check for connections: Consider related documentation. If you add a new
page, check if
docs/sidebar.jsonneeds to be updated. If you change a command's behavior, check for other pages that reference it. Make sure links in these pages are up to date.
Step 3: Draft the documentation
- Follow the style guide:
- Text must be wrapped at 80 characters. Exceptions are long links or tables, unless otherwise stated by the user.
- Use sentence case for headings, titles, and bolded text.
- Address the reader as "you".
- Use contractions to keep the tone more casual.
- Use simple, direct, and active language and the present tense.
- Keep paragraphs short and focused.
- Always refer to Gemini CLI as
Gemini CLI, neverthe Gemini CLI.
- Use
replaceandwrite_file: Use the file system tools to apply your planned changes precisely. For small edits,replaceis preferred. For new files or large rewrites,write_fileis more appropriate.
Step 4: Verify and finalize
- Review your work: After making changes, re-read the files to ensure the documentation is well-formatted, content is correct and based on existing code, and that all new links are valid.
- Offer to run npm format: Once all changes are complete and the user
confirms they have no more requests, offer to run the project's formatting
script to ensure consistency. Propose the following command:
npm run format
04 同仓库更多 Skills
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Gemini CLI's capabilities with specialized knowledge, workflows, or tool integrations.
greeter
A friendly greeter skill
pr-creator
Use this skill when asked to create a pull request (PR). It ensures all PRs follow the repository's established templates and standards.
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.