About api-style-guide
A skill for writing and reviewing API documentation, intended for engineers, DevRel teams, and partners. It sets conventions for structure, terminology, code samples, metadata, accessibility, and localization to support consistency.
Key features
- 01Language, tone, and terminology rules
- 02Endpoint structure and formatting conventions
- 03Code sample and authentication checks
- 04Version and availability metadata
- 05Accessibility and localization guidance
Use cases
- 01Write or update API references and tutorials
- 02Review documentation contributions from engineers or partners
- 03Check documentation consistency before releases
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gtmagents/ gtm-agents --skill api-style-guideAfter installing, type/api-style-guidein Claude Code to confirm it loaded.
Details
From the project READMEAPI Style Guide Skill
When to Use
- Authoring or updating API references, tutorials, and SDK docs.
- Reviewing contributions from engineers, DevRel, or partners.
- Auditing docs for consistency before releases.
Framework
- Language & Tone – audience-specific tone, terminology list, and banned phrases.
- Structure – endpoint/order conventions, table layouts, code block formatting, error doc patterns.
- Code Samples – naming standards, authentication handling, pagination patterns, inline comments.
- Metadata & Tags – version labels, availability notes, beta flags, locale indicators.
- Accessibility & Localization – heading hierarchy, alt-text, snippet annotations, translation guidance.
Templates
- Reference entry template (description, parameters, responses, examples, notes).
- Tutorial skeleton with prerequisites, steps, troubleshooting, next steps.
- Code sample checklist ensuring env vars, comments, and error handling are included.
Tips
- Keep examples runnable; provide curl equivalents even when primary sample is in another language.
- Link to glossary for shared terminology across teams.
- Pair with
update-api-referencecommand to enforce consistent output.
Comments
Markdown supported