cowboylogic/ai-dev/google-style-docs

Claude Code and agent skill by cowboylogic/ai-dev

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

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-docs

Semi-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:

  1. Clarity: Write in clear, simple, and direct language
  2. Consistency: Use uniform terminology and structure
  3. Accessibility: Make content accessible to all users, including those with disabilities
  4. Inclusivity: Use inclusive, bias-free language
  5. 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:

markdown
# Document Title (clear, specific, task-oriented)
## Overview (1-2 paragraphs)
## Prerequisites (if applicable)
## Main Content Sections
-Step-by-step instructions (for how-to guides)
-Conceptual explanation (for concept docs)
-Reference tables (for API docs)
## What's next (optional)
## Additional resources (optional)
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:

markdown
# Set up OAuth 2.0 authentication
Learn how to configure OAuth 2.0 authentication for your application.
After completing these steps, your app will be able to securely authenticate
users and access protected resources.
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:

bash
gcloud projects create PROJECT_ID --name="My Project"

File paths:

  • Use forward slashes: /path/to/file
  • Use backticks: config/settings.json
5. Write Clear Instructions

Number steps sequentially:

  1. First, do this action.
  2. Next, do this action.
  3. 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:

markdown
1.Run the following command:
```bash
npm install package-name
```
The output shows the installation progress and confirms success:
```
added 1 package in 2s
```
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:

markdown
-Use descriptive link text: "See the authentication guide" not "Click here"
  • Add alt text for images: ![Diagram showing data flow between client and server](image.png)
  • 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):

  1. Use for sequential steps or ranked items
  2. Start each item with a capital letter
  3. 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

markdown
**Note:** The API has rate limits of 1000 requests per hour.

Caution: Warns about potential issues or unexpected behavior

markdown
**Caution:** Deleting a project also deletes all associated resources.

Warning: Alerts about critical issues that could cause data loss or security problems

markdown
**Warning:** This action cannot be undone. All data will be permanently deleted.
9. Format Code Examples

Make examples self-contained and runnable:

python
# Import required libraries
import requests
# Set up authentication
api_key = "YOUR_API_KEY"
headers = {"Authorization": f"Bearer {api_key}"}
# Make the API request
response = requests.get("https://api.example.com/data", headers=headers)
# Handle the response
if response.status_code == 200:
print("Success:", response.json())
else:
print("Error:", response.status_code)

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:

  1. 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?
  1. Verify consistency:
  • Is terminology consistent throughout?
  • Are formatting conventions uniform?
  • Do code examples use the same style?
  1. Test accuracy:
  • Run all code examples and commands
  • Verify all links work
  • Check that UI instructions match current interface
  1. 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
markdown
## authenticate()
Authenticates a user with the provided credentials and returns an access token.
### Syntax

authenticate(username, password)

### Parameters
- `username` (string, required): The user's email address or username.
- `password` (string, required): The user's password.
### Returns
A Promise that resolves to an object containing:
- `token` (string): The JWT access token for authenticated requests.
- `expiresIn` (number): Token expiration time in seconds.
### Example

const auth = await authenticate("user@example.com", "securePass123"); console.log("Token:", auth.token); console.log("Expires in:", auth.expiresIn, "seconds");

### Exceptions
- Throws `AuthenticationError` if credentials are invalid.
- Throws `NetworkError` if the authentication service is unreachable.
Example 2: How-to Guide
markdown
# Deploy your application to production
Deploy your application to a production environment using the deployment CLI tool.
After completing these steps, your application will be live and accessible to users.
## Before you begin
-Install the deployment CLI (version 2.0 or later)
-Set up your production credentials
-Ensure your application passes all tests
## Deploy the application
1.Build your application for production:
```bash
npm run build
```
The build process creates optimized files in the `dist/` directory.
2.Authenticate with the deployment service:
```bash
deploy-cli login
```
A browser window opens for authentication. Complete the sign-in process.
3.Deploy your application:
```bash
deploy-cli deploy --project=PROJECT_ID --environment=production
```
Replace `PROJECT_ID` with your project identifier.
The deployment process takes 2-5 minutes. Monitor the progress in the terminal.
4.Verify the deployment:
```bash
deploy-cli status --project=PROJECT_ID
```
The status should show "Running" for all services.
## What's next
-[Monitor application performance](monitoring-guide.md)
-[Set up automated deployments](ci-cd-setup.md)
-[Configure custom domains](domain-setup.md)
Example 3: Conceptual Overview
markdown
# Authentication and authorization
Authentication verifies user identity, while authorization determines what actions an authenticated user can perform.
## How authentication works
When a user signs in to your application:
1.The application sends credentials (username and password) to the authentication service.
2.The service verifies the credentials against stored user records.
3.If valid, the service generates an access token and returns it to the application.
4.The application includes this token in subsequent API requests.
The token proves the user's identity without requiring repeated credential transmission.
## How authorization works
After authentication, the authorization system controls access:
-**Role-based access control (RBAC)**: Users are assigned roles (admin, editor, viewer), and each role has specific permissions.
-**Permission checks**: Before performing an action, the system verifies the user's role has the required permission.
-**Resource-level control**: Permissions can be scoped to specific resources (for example, edit access to only certain projects).
## Best practices

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cowboylogic/ai-dev/google-style-docs/badge)](https://verified-skill.com/skills/cowboylogic/ai-dev/google-style-docs)

Something wrong with this skill or its page? Tell us.