docs-writer▌
google-gemini/gemini-cli · updated May 26, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Technical writing and editing for Gemini CLI documentation with strict style adherence.
- ›Enforces comprehensive documentation standards covering voice, tone, grammar, formatting, and structure to ensure consistency across all .md files and /docs directory content
- ›Requires investigation of relevant code and existing documentation before making changes, with checks for impacted pages and sidebar navigation updates
- ›Applies specific rules for headings, lists, procedures, links, and access
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.mdresource 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(neverthe 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 fontfor 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:
- First entry
- Second entry
-
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 the<!-- prettier-ignore -->comment directly before the callout block. 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 areNOTE,TIP,IMPORTANT,WARNING, andCAUTION.Example:
[!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/fromdocs/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:
[!NOTE] This is an experimental feature currently under active development.
- 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.
- 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.
- Investigate: Examine relevant code (primarily in
packages/) for accuracy. - Audit: Read the latest versions of relevant files in
docs/. - Connect: Identify all referencing pages if changing behavior. Check if
docs/sidebar.jsonneeds updates. - Plan: Create a step-by-step plan before making changes.
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.
- Accuracy: Ensure content accurately reflects the implementation and technical behavior.
- Self-review: Re-read changes for formatting, correctness, and flow.
- 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.
- Format: Once all changes are complete, ask to execute
npm run formatto ensure consistent formatting across the project. If the user confirms, execute the command.
How to use docs-writer on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add docs-writer
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches docs-writer from GitHub repository google-gemini/gemini-cli and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate docs-writer. Access the skill through slash commands (e.g., /docs-writer) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.8★★★★★42 reviews- ★★★★★Shikha Mishra· Dec 12, 2024
Useful defaults in docs-writer — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Michael Nasser· Dec 12, 2024
Registry listing for docs-writer matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Arya Robinson· Dec 4, 2024
docs-writer has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Sophia Haddad· Nov 23, 2024
Useful defaults in docs-writer — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Yash Thakker· Nov 3, 2024
docs-writer has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Dhruvi Jain· Oct 22, 2024
Solid pick for teams standardizing on skills: docs-writer is focused, and the summary matches what you get after install.
- ★★★★★Evelyn Desai· Oct 14, 2024
I recommend docs-writer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Min Anderson· Sep 25, 2024
docs-writer fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Hiroshi Nasser· Sep 25, 2024
I recommend docs-writer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Oshnikdeep· Sep 13, 2024
We added docs-writer from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 42