cowboylogic/ai-dev/google-style-docs
Claude Code and agent skill by cowboylogic/ai-dev
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Guide for writing documentation following Google's Developer Documentation Style Guide. Use this when creating or reviewing technical documentation, API docs, tutorials, or any product documentation that should follow Google's standards for clarity, consistency, and accessibility.
Install
npx vskill@latest install cowboylogic/ai-dev/google-style-docsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cowboylogic/ai-dev/google-style-docs.
Google Style Documentation Writer
This skill helps you write clear, consistent technical documentation following Google's Developer Documentation Style Guide principles and best practices.
When to Use This Skill
Use this skill when:
- Writing new technical documentation, tutorials, or guides
- Reviewing or editing existing documentation for style consistency
- Creating API documentation or reference material
- Writing user-facing product documentation
- Ensuring documentation is accessible and inclusive
- Converting documentation from other styles to Google's standards
Prerequisites
- Access to files being documented (code, APIs, features)
- Understanding of the target audience and their technical level
- Familiarity with the product or feature being documented
Core Principles
Google's style guide is built on these foundations:
- Clarity: Write in clear, simple, and direct language
- Consistency: Use uniform terminology and structure
- Accessibility: Make content accessible to all users, including those with disabilities
- Inclusivity: Use inclusive, bias-free language
- Global audience: Write for international readers (avoid idioms, region-specific terms)
Instructions
1. Plan Your Document Structure
Before writing, determine:
- Purpose: What problem does this document solve?
- Audience: Who will read this? What's their technical level?
- Scope: What topics will you cover and what's out of scope?
- Document type: Tutorial, concept, reference, how-to guide?
Create an outline with:
2. Write the Title and Introduction
Titles:
- Use sentence case (capitalize only first word and proper nouns)
- Be specific and task-oriented: "Set up authentication" not "Authentication setup"
- Avoid gerunds when possible: "Configure" not "Configuring"
- Keep titles concise (under 80 characters)
Introduction:
- Write 1-2 paragraphs explaining what the document covers
- State the goal or outcome clearly in the first sentence
- Include what the reader will learn or accomplish
- Don't use phrases like "This document..." or "In this guide..."
Example:
3. Apply Voice and Tone Guidelines
Use second person ("you") to address the reader:
- ✅ "You can configure the settings..."
- ❌ "One can configure..." or "The user can configure..."
Use active voice:
- ✅ "The system sends a confirmation email"
- ❌ "A confirmation email is sent by the system"
Write in present tense:
- ✅ "The function returns a string"
- ❌ "The function will return a string"
Be direct and conversational:
- ✅ "To delete a file, click Delete"
- ❌ "In order to accomplish the deletion of a file, one must click on the Delete button"
Use contractions when natural:
- ✅ "don't", "you're", "it's"
- But avoid in formal reference docs or when clarity might suffer
4. Format Text Elements
Code elements:
- Use backticks for inline code:
variable_name,function(),--flag - Use code blocks with language specification:
``python def example_function(): return "Hello, world!" ``
UI elements:
- Bold for clickable UI elements: Click Save
- Use exact text from the interface
- Don't use italics for UI elements
Placeholders:
- Use ALL_CAPS with underscores:
PROJECT_ID,YOUR_API_KEY - Or use angle brackets:
<project-id>,<api-key> - Be consistent within a document
- Always explain what the placeholder represents
Command-line examples:
File paths:
- Use forward slashes:
/path/to/file - Use backticks:
config/settings.json
5. Write Clear Instructions
Number steps sequentially:
- First, do this action.
- Next, do this action.
- Finally, verify the result.
One action per step:
- ✅ "1. Click File > New > Project."
- ❌ "1. Click File, then click New, and then create a new project."
Use imperative mood (commands):
- ✅ "Open the configuration file"
- ❌ "You should open the configuration file"
Include expected results:
6. Apply Inclusive and Accessible Writing
Use inclusive language:
- ✅ "They", "their" for singular gender-neutral pronouns
- ❌ "He/she", "his or her"
- ✅ "Allowlist", "blocklist"
- ❌ "Whitelist", "blacklist"
- ✅ "Primary/secondary" or "main/subordinate"
- ❌ "Master/slave"
Write accessible content:
- Add alt text for images:
 - Don't rely solely on color to convey information
- Use proper heading hierarchy (H1 → H2 → H3, don't skip levels)
Avoid ableist language:
- ✅ "Run the script"
- ❌ "Sanity check the script"
- ✅ "Simple", "straightforward"
- ❌ "Crazy simple", "insanely easy"
7. Use Lists Effectively
Bulleted lists (unordered):
- Use for items without sequence
- Start each item with a capital letter
- Use parallel structure (all sentences or all fragments)
- Use periods if items are complete sentences
Numbered lists (ordered):
- Use for sequential steps or ranked items
- Start each item with a capital letter
- Use periods for all items in a numbered list
Example of parallel structure: ✅ Good:
- Configure authentication
- Set up permissions
- Enable API access
❌ Bad:
- Configure authentication
- Setting up permissions
- The API access should be enabled
8. Write Effective Notes and Warnings
Use callouts sparingly and appropriately:
Note: Provides additional helpful information
Caution: Warns about potential issues or unexpected behavior
Warning: Alerts about critical issues that could cause data loss or security problems
9. Format Code Examples
Make examples self-contained and runnable:
Add explanatory comments:
- Explain non-obvious code
- Don't state the obvious: ❌
# Loop through items - Do explain intent: ✅
# Retry up to 3 times for transient failures
Show error handling: Include realistic error handling in examples, not just the happy path.
10. Review and Edit
Before finalizing documentation:
- Check for clarity:
- Can a reader follow the instructions without external help?
- Are all terms defined or linked to definitions?
- Is the purpose clear from the first paragraph?
- Verify consistency:
- Is terminology consistent throughout?
- Are formatting conventions uniform?
- Do code examples use the same style?
- Test accuracy:
- Run all code examples and commands
- Verify all links work
- Check that UI instructions match current interface
- Review for style compliance:
- Use the checklist in the "Quality Checklist" section below
- Search for common anti-patterns (passive voice, "please", future tense)
- Ensure accessibility (heading hierarchy, link text, alt text)
Examples
Example 1: API Reference Entry
authenticate(username, password)
const auth = await authenticate("user@example.com", "securePass123"); console.log("Token:", auth.token); console.log("Expires in:", auth.expiresIn, "seconds");
Example 2: How-to Guide
Example 3: Conceptual Overview
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/google-style-docs/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cowboylogic/ai-dev/google-style-docs)