Back to Skills

api-style-guide

verified

Style and formatting rules for API/SDK documentation, samples, and tutorials.

View on GitHub

Marketplace

gtm-agents

gtmagents/gtm-agents

Plugin

technical-writing

content

Repository

gtmagents/gtm-agents
60stars

plugins/technical-writing/skills/api-style-guide/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/gtmagents/gtm-agents/blob/main/plugins/technical-writing/skills/api-style-guide/SKILL.md -a claude-code --skill api-style-guide

Installation paths:

Claude
.claude/skills/api-style-guide/
Powered by add-skill CLI

Instructions

# API 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
1. **Language & Tone** – audience-specific tone, terminology list, and banned phrases.
2. **Structure** – endpoint/order conventions, table layouts, code block formatting, error doc patterns.
3. **Code Samples** – naming standards, authentication handling, pagination patterns, inline comments.
4. **Metadata & Tags** – version labels, availability notes, beta flags, locale indicators.
5. **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-reference` command to enforce consistent output.

---

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1223 chars