api-docs
API documentation standards and practices. Use when documenting APIs, endpoints, or integrations.
от saolalab★ 38 звёзд на GitHub
Установить api-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
API Documentation
Endpoint Documentation Template
## [Method] /path/to/endpoint
[Brief description of what this endpoint does]
### Authentication
Requires Bearer token in Authorization header.
### Request
#### Headers
| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token |
#### Path Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | Resource ID |
#### Query Parameters
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| limit | integer | 20 | Max results |
#### Request Body
```json
{
"name": "string",
"email": "string"
}
Response
Success (200)
{
"id": "123",
"name": "Example",
"created_at": "2024-01-01T00:00:00Z"
}
Error (400)
{
"error": "validation_error",
"message": "Email is required"
}
Example
curl -X POST https://api.example.com/users \
-H "Authorization: Bearer token" \
-H "Content-Type: application/json" \
-d '{"name": "John", "email": "[email protected]"}'
## OpenAPI Best Practices
### Operation IDs
Use consistent, descriptive operation IDs:
- `createUser`, `getUser`, `updateUser`, `deleteUser`
- `listOrders`, `getOrderById`
### Descriptions
- Endpoint description: What it does
- Parameter descriptions: What each param controls
- Response descriptions: What each status means
### Examples
Include realistic examples for:
- Request bodies
- Responses
- Error cases
## Error Documentation
| Status | Meaning | When Used |
|--------|---------|-----------|
| 400 | Bad Request | Invalid input |
| 401 | Unauthorized | Missing/invalid auth |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource doesn't exist |
| 429 | Too Many Requests | Rate limited |
| 500 | Server Error | Internal error |
## SDK Documentation
### Quick Start
```markdown
## Installation
npm install @company/sdk
## Usage
import { Client } from '@company/sdk';
const client = new Client({ apiKey: 'your-key' });
const result = await client.resources.list();
Method Documentation
- Purpose
- Parameters (with types)
- Return value
- Exceptions
- Example
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл api-docs?
API documentation standards and practices. Use when documenting APIs, endpoints, or integrations.
Как установить скилл api-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…