1---2name: "api-style-guide"3description: "Style and formatting rules for API/SDK documentation, samples, and tutorials. Use when working with api style guide."4source: "community_canonical"5risk: "unknown"6license: "not_declared_upstream"7metadata:8 source: https://skillmd.com/skills/revrebel/api-style-guide9---1011# API Style Guide Skill1213## When to Use14- Authoring or updating API references, tutorials, and SDK docs.15- Reviewing contributions from engineers, DevRel, or partners.16- Auditing docs for consistency before releases.1718## Framework191. **Language & Tone** – audience-specific tone, terminology list, and banned phrases.202. **Structure** – endpoint/order conventions, table layouts, code block formatting, error doc patterns.213. **Code Samples** – naming standards, authentication handling, pagination patterns, inline comments.224. **Metadata & Tags** – version labels, availability notes, beta flags, locale indicators.235. **Accessibility & Localization** – heading hierarchy, alt-text, snippet annotations, translation guidance.2425## Templates26- Reference entry template (description, parameters, responses, examples, notes).27- Tutorial skeleton with prerequisites, steps, troubleshooting, next steps.28- Code sample checklist ensuring env vars, comments, and error handling are included.2930## Tips31- Keep examples runnable; provide curl equivalents even when primary sample is in another language.32- Link to glossary for shared terminology across teams.33- Pair with `update-api-reference` command to enforce consistent output.3435---