/john-skills:google-doc-style-guidefrom john-skills
Writes and edits technical documentation in Google developer documentation style — second person, active voice, present tense, sentence-case headings, procedures, lists, tables, notices, accessible language, and a word list of preferred terms.
Ships in john-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
House style for technical documentation and application help. Derived from the Google developer documentation style guide (CC BY 4.0). The goal is documentation that reads as if one careful person wrote all of it: clear, direct, scannable, accessible, and translatable.
When guidance conflicts, follow this order:
CLAUDE.md, STYLE.md, contributing guide, or an
established convention visible in the docs you're editing wins. Check for one before
you start.Break the rules when doing so serves the reader. These are guidelines, not laws. When you depart from them, be consistent about it throughout the document.
references/readme.md before you start.references/checklist.md. Deliver the
document, not the checklist output — unless the user asked for a style review, in
which case report findings with file and line.When reviewing rather than writing: report what to change and why, quoting the offending text. Don't rewrite wholesale unless asked. Rank findings by reader impact — ambiguity and inaccessible constructions first, spelling and hyphenation last.
Aim for conversational, friendly, and respectful without being frivolous. Sound like a knowledgeable friend who understands what the reader is trying to do. Don't write the way you speak — speech is more verbose than documentation should be.
Avoid:
mechanics.md for the
narrow exceptions.| Too informal | About right | Too formal |
|---|---|---|
| Dude! This API is totally awesome! | This API lets you collect data about what your users like. | The API documented by this page may enable the acquisition of information pertaining to user preferences. |
| Then—BOOM—just garbage-collect, and you're golden. | To clean up, call the collectGarbage method. | Please note that completion of the task requires the following prerequisite: executing an automated memory management function. |
Use second person. Assume the reader is the person doing the tasks.
Use the imperative for instructions — the you is implied: "Click Submit."
Reserve the word user for the user of the software your reader is building. Use third person for what the software or an end user does, second person for what the reader does.
We, our, and us are acceptable only for the organization authoring the document, and only when the antecedent is clear: "Example Organization provides A and B, but we don't provide C." Also acceptable in FAQ questions and in signed first-person commentary.
Make clear who performs the action.
Passive is fine when you want to emphasize the object ("The file is saved"), de-emphasize the actor ("Over 50 conflicts were found in the file"), or when the actor is irrelevant ("The database was purged in January").
Describe general behavior in the present tense. "The server sends an acknowledgment," not "will send." Use future tense only for something that genuinely happens later: "The file will be archived the next time the backup process runs." Avoid the hypothetical would.
Write prescriptive documentation — recommend a path instead of listing every option. Generally avoid should: it leaves the reader unsure whether an action is required.
| Intent | Use |
|---|---|
| Action is required | must, or an imperative: "Do the following before you continue." |
| Action is recommended | "We recommend…" (should is OK for widely recognized advice: "You should use a strong password") |
| Action is optional | can: "You can also use approach B." |
| Outcome is expected | State it: "The process returns 10 items." |
| Outcome is possible | might or can: "The process can take about 30 minutes." |
| State of something | Be explicit: "You must set the value to true" — not "The value should be true." |
Avoid could, would, and shall. Reserve may for permission in a legal or policy sense.
Document how the product works now. Don't anchor text to a moment.
Avoid: as of this writing, currently, does not yet, eventually, existing, future, in the future, latest, new, newer, now, old, older, presently, at present, soon.
Time-anchored words are fine in release notes, changelogs, and blog posts. If you must say new, give a reference point: "The January 14, 2021 release includes a new resource panel."
Don't document future features. Don't pre-announce anything.
Avoid superlatives — best, simplest, fastest, never, always. Be careful with ensure and guarantee. Cite a source for performance claims. Say a feature "helps with security" or "is designed for security" rather than that it is secure — the weaker claim stays true after an incident.
Software doesn't see, tell, want, or think.
Delimiter object specifies where to split a string."Delimiter object tells the splitter where a string should be broken."Jargon hurts clarity, translation, and readers new to the domain. Before using a term like blast radius, shift left, or out-of-the-box, ask:
Much of what follows exists because documentation gets translated and read by people whose first language isn't English.
-ing forms as the first word of any heading; they
translate inconsistently. (Billing, Pricing are acceptable exceptions.)Optional: prefix: "Optional: Customize your alias" —
not "Customize your alias (optional)."h1 per page, unique across the doc set. Don't repeat the page title verbatim in
a section heading.config.yaml file."| Item shape | Use |
|---|---|
| Single units, sequence matters | Numbered list |
| Single units, no sequence | Bulleted list |
| Term + definition, want emphasis | Description list |
| Term + short explanation, save space | Bulleted run-in headings ("Emu: the best kind of bird") |
| Three or more related fields per item | Table |
Optional: as the first word — not (Optional).scope attribute where the format supports it.| Type | Meaning |
|---|---|
| Note | Useful but not critical. The reader still succeeds if they skip it. |
| Caution | Proceed carefully. |
| Warning | Don't do this, or this may be irreversible — data loss, cost, security. |
| Success | An error-free result. Interactive content only. |
Readers skip notices, so don't overuse them, and never stack two in a row. Write the content as ordinary text first, then decide whether it needs offsetting.
Don't use a note for: cross-references, prerequisites, a full procedural step, anything the reader needs in order to succeed, or a continuation of the preceding text.
gcloud instances create command."Never use real domains, emails, names, phone numbers, IPs, or addresses.
| Kind | Use |
|---|---|
| Domains | example.com, example.org, example.net |
A reserved domain plus an example name: [email protected], [email protected] | |
| Person names | Alex, Amal, Ariel, Bola, Charlie, Cruz, Dana, Dani, Hao, Ira, Izumi, Jie, Kai, Kalani, Kim, Kiran, Lee, Lucian, Luka, Mahan, Noam, Nur, Quinn, Raha, Rosario, Sasha, Tal, Taylor, Tristan, Yuri — with an initial for a surname ("Dana A.") |
| Company | Example Organization |
| Phone (US) | 800-555-0100 through 800-555-0199 |
| IPv4 | 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 |
| IPv6 | 2001:db8::/32 |
| Street address | 1800 Amphibious Blvd., Mountain View, CA 94045 |
| Project names | Something meaningful: staging, frontend-development, production-1. Never foo, bar, baz. |
Use diverse names, and use singular they. Watch for stereotypes in which personas get which job roles.
| Element | Use |
|---|---|
Bold (<b> / **) | UI element names; run-in headings; the label at the start of a notice. Nothing else. |
Italic (<i> / _) | A term you're defining on first mention; words as words; titles of full-length works; mathematical and version variables; emphasis. Use sparingly. |
| Underline | Links only. |
Code font | Code and code-adjacent text, inline. |
| Code block | Code samples and commands. |
Prefer _underscores_ for italic and **asterisks** for bold in Markdown — the two are
easier to tell apart that way. Don't use ampersands as shorthand for and. Don't
override font family, size, or color inline.
Put in code font: attribute names and values, class names, command output, command-line utility names, data types, database rows and columns, constants, DNS record types, element names (without angle brackets), enum names, environment variables, filenames and paths, folders, HTTP content types, HTTP status codes and verbs, IAM role names, IP addresses, language keywords, method and function names, namespaces, package names, placeholders, port numbers, query parameters, strings used in code, text the reader types, and UI values derived from earlier input.
Don't put in code font: domain names, product and organization names, and URLs the reader is meant to open in a browser.
Grammatical treatment of code: don't inflect a code element. Add a noun and inflect that instead.
ADDRESS constant's value is defined in the settings.h file."ADDRESS's value is defined in settings.h."POST request." — Not: "POST the data."Placeholders: UPPERCASE_WITH_UNDERSCORES. No possessives (MY_, YOUR_). Explain
every placeholder the first time it appears. One placeholder: "Replace BUILD_ID with
the ID of the build." Two or more: introduce with "Replace the following:" and list them
in the order they appear, each as `NAME`: lowercase description.
Commands: put a click-to-copy command in a code block, wrap lines at 80 characters
with the shell's continuation character, and follow it with the placeholder list. Keep
optional-argument syntax ([], {}, |, ...) out of copyable commands — those
characters break the command if the reader doesn't strip them. Introduce output with
"The output is similar to the following:".
For the full detail — code samples, command-line syntax notation, math notation,
figures and alt text, filenames — see references/formatting.md.
40%, no space. Ranges use a
hyphen: 2012-2016. Commas in numbers of four or more digits: 1,532,784.YYYY-MM-DD. Avoid seasons.64 GB. No space for currency,
percent, or degrees of angle. Repeat the unit in a range and use to: "-40 °C to
85 °C". Don't write MB when you mean MiB.3/4, no date slashes.preprocessing, metadata) — hyphenate after
self-, cross-, before a capital or number, and to avoid a misreading. Close
compound nouns (webpage, hostname, tradeoff). Hyphenate compound modifiers
before a noun (well-designed app) but not after a verb ("The app is well designed"),
and never after an -ly adverb.'s for singular nouns including those ending in s; apostrophe
only for plurals ending in s. Never form a possessive or plural from a code item,
product name, feature name, or trademark.'s for plurals: APIs, not API's. Don't pluralize a unit
abbreviation: 64 GB, not 64 GBs. Never (s) — use "one or more.".png file."Full detail in references/mechanics.md.
These are not optional polish — they change what you write.
alt="" if the image is decorative or duplicates
adjacent text. Under 155 characters, no "Image of." Don't put new information only in
an image, and never use images of text, code, or terminal output.button elements, labeled form
fields.Full detail in references/audience.md.
An extension to the source guide, which doesn't cover READMEs. Everything above still applies — this section is about what goes in a README, in what order, and how short it should be.
A README is a front door, not a manual. Its job is to get a stranger from "what is
this?" to a working install in the fewest steps, then point them at the real docs. If
a section grows past roughly one screen, move it to docs/ and link to it.
Put the actionable material first. A reader who has to scroll past your motivation,
your badge wall, and your architecture diagram to find npm install will leave.
docs/.Badges, if any, go on one line under the title, and only ones a reader acts on — build
status, version, license. Give each an alt attribute.
The quick start is a procedure (see the Procedures rules above), held to the shortest path that produces a verifiable result.
[optional] or {a|b} notation, no
values the reader must edit before pasting, no shell prompts to strip. If a value can't
be avoided, make it a documented placeholder and explain it immediately.The quick start shows one way in; this section shows the rest. For each supported path — package manager, container image, prebuilt binary, from source — give the exact command, and say what the path is for when it isn't obvious ("from source, if you're contributing"). State the supported platforms and versions in a table rather than in prose, so the facts stay current without a rewrite. Say how to verify the install and how to uninstall.
Two parts, in this order:
Never put a real secret, token, key, or hostname in an example. Use a placeholder, say where the value comes from, and don't imply that a committed config file is a safe place for it.
Cut from the README and link instead: philosophy and origin stories, roadmaps and planned features (see the future-features rule), exhaustive feature lists, comparison tables against other projects (see excessive claims), full API references, and screenshots of text or terminal output.
Full detail, an annotated skeleton, and the common failure modes are in
references/readme.md.
This guidance was written for HTML and Markdown documentation sites. Adapt it, don't break it:
, <var>, aria-label, srcset — and keep everything
about wording, structure, and terminology.references/readme.md.Open these when you need detail beyond the core rules.
| File | Covers |
|---|---|
references/word-list.md | Alphabetical usage, spelling, and capitalization decisions; terms to avoid and their replacements. Check it whenever a term choice feels uncertain. |
references/structure.md | Headings, lists, procedures, tables, notices, cross-references, example data, sentence and paragraph structure. |
references/formatting.md | Text formatting, code in text, code samples, command-line syntax, placeholders, math notation, figures and alt text, filenames, HTML vs. Markdown. |
references/mechanics.md | Capitalization, abbreviations, numbers, dates and times, units, phone numbers, plurals, possessives, all punctuation, footnotes. |
references/audience.md | Accessible documentation, inclusive documentation, writing for a global audience. |
references/names-and-claims.md | Product and feature names, trademarks, excessive claims, future features, timeless documentation, third-party content. |
references/api-reference.md | API reference code comments: classes, methods, parameters, return values, exceptions, deprecations. |
references/readme.md | Open source READMEs: section order, the quick start, installation, configuration, what to cut, common failure modes. Open it whenever you're writing or reviewing a README. |
references/checklist.md | The review pass to run before delivering. |
Source: Google developer documentation style guide, licensed under CC BY 4.0. Condensed, reorganized, and adapted for use by coding agents.
references/api-reference.md (opens in a new tab)references/audience.md (opens in a new tab)references/checklist.md (opens in a new tab)references/formatting.md (opens in a new tab)references/mechanics.md (opens in a new tab)references/names-and-claims.md (opens in a new tab)references/readme.md (opens in a new tab)references/structure.md (opens in a new tab)references/word-list.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jbdamask/john-claude-skills --plugin john-skills32 skills in this plugin
/architecture-decision-recordsWrite and maintain Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions. Use when documenting an architectural or technology choice, recording a design trade-off, superseding a past decision, or setting up an ADR process. Also use proactively to offer an ADR when a significant decision is made during a coding session (database, framework, auth scheme, API style, integration pattern). Triggers on "write an ADR", "document this decision", "record this architecture choice", "add a decision record", "supersede ADR"./aws-learningsProactively catch common AWS infrastructure mistakes before they happen. Use when creating or modifying AWS components — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, or SSM — to find and apply hard-won deployment lessons and avoid known pitfalls. Read-only: fetches lessons, does not add them./aws-learnings-addContribute a new lesson to the AWS Learnings library (the llms.txt-format library at github.com/jbdamask/aws-learnings-library). Use this whenever you've just debugged, fixed, or discovered a non-obvious AWS gotcha — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, SSM — and want to capture it for next time. Triggers on phrases like 'add an AWS learning', 'save this AWS lesson', 'capture this gotcha', 'add this to the learnings library', or after solving a tricky AWS deployment problem worth remembering. This skill WRITES files (a new lesson file + an updated index) and prepares a pull request; it is the write companion to the read-only 'aws-learnings' skill./aws-quick-endpointCreate a token-secured REST API endpoint backed by AWS Lambda and DynamoDB with full CRUD and paginated list support. Deploys via CloudFormation. Use when user wants to quickly spin up an API endpoint, create a simple REST API on AWS, build a quick data store with an API, set up a Lambda+DynamoDB endpoint, or needs a fast way to log and retrieve structured data. Triggers on "create an endpoint", "quick API", "Lambda endpoint", "DynamoDB API", "CRUD endpoint", "log data to AWS"./build-my-voiceAnalyzes samples of the user's writing and creates or updates a structured `voice-profile.yaml` describing their writing voice as weighted, evidence-backed features, then asks the author a short round of questions to confirm the inferences the samples cannot settle on their own. Use when the user wants to capture, build, learn, profile, or update their writing voice or style from writing samples — "build my voice profile", "analyze my writing style", "learn how I write", "create a voice profile from these posts", "update my voice profile with this new sample". This skill only ANALYZES writing and produces the profile; it never drafts new content in the user's voice — use the my-voice skill for that./bullshit-testsAudit a codebase's test suite for tests that pass for no good reason — no assertions, tautologies, assertions on mocks only, swallowed exceptions, unawaited async assertions, permanently skipped tests, and other patterns that stay green no matter how broken the code is. Produces a red/yellow/green report. Use when the user says "bullshit tests", "find fake tests", "audit my test suite", "which tests are useless", "are these tests actually testing anything", "check test quality", "find tests that always pass", or asks whether green CI means anything.Other plugins' skills for the same job