api-reference-documentation · aj-geddes — скилл для Claude Code: документация API
Скилл помогает агенту собрать справочник по API: эндпоинты, аутентификация, примеры запросов и ответов, спецификация OpenAPI.
npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a claude-codeЧто делает api-reference-documentation
Скилл задаёт агенту структуру работы над документацией API. Он ведёт от спецификации OpenAPI 3.0+ к описанию эндпоинтов, аутентификации, примеров запросов и ответов, лимитов и пагинации. Внутри есть стартовый пример спецификации и каталог references/ с подробными разборами — например, спецификация OpenAPI и описание эндпоинта списка товаров.
Помимо REST, скилл покрывает GraphQL, вебхуки, версионирование API и документацию SDK. Отдельный блок best practices перечисляет, что стоит включать: примеры ответов с ошибками, единые имена полей, примеры на нескольких языках, интерактивный Swagger UI. Там же список того, чего делать не надо — оставлять эндпоинты без описания, забывать про аутентификацию, игнорировать пометки об устаревании.
Скилл рассчитан на несколько платформ: Claude, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode. Для Claude файл скилла лежит по пути ~/.claude/skills/api-reference-documentation/SKILL.md. Если у вас уже есть рабочая спецификация, скилл пригодится для её приведения к единому виду — но сначала проверьте, что версия OpenAPI в проекте не ниже 3.0, иначе часть примеров придётся переписывать.
Какие задачи решает
- описать эндпоинты REST API так, чтобы по ним можно было интегрироваться
- собрать спецификацию OpenAPI 3.0+ из разрозненных заметок
- добавить примеры запросов и ответов к каждому эндпоинту
- задокументировать аутентификацию, лимиты запросов и пагинацию
- описать вебхуки и версионирование API вместе с гайдом по миграции
Примеры запросов агенту
- Собери справочник по API для нашего сервиса заказов: эндпоинты, аутентификация, примеры запросов и ответов.
- Оформи спецификацию OpenAPI для этих эндпоинтов и добавь примеры ответов с ошибками.
- Задокументируй вебхуки и распиши, как менять версию API без ломающих изменений.
Как установить api-reference-documentation
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a claude-code2Вручную: положить файлы
~/.claude/skills/api-reference-documentation/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/api-reference-documentation/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a codex2Вручную: положить файлы
.agents/skills/api-reference-documentation/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a cursor2Вручную: положить файлы
.cursor/skills/api-reference-documentation/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts api-reference-documentation2Вручную: положить файлы
.github/skills/api-reference-documentation/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/api-reference-documentationВручную: положить файлы
.devin/skills/api-reference-documentation/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о api-reference-documentation
Как установить api-reference-documentation в Claude?
Выполните npx skills add aj-geddes/useful-ai-prompts --skill api-reference-documentation -a claude-code. После этого файл скилла появится по пути ~/.claude/skills/api-reference-documentation/SKILL.md.
Что делает api-reference-documentation?
Помогает агенту писать справочную документацию по API: спецификацию OpenAPI, описание эндпоинтов, аутентификации, примеров запросов и ответов, лимитов и пагинации.
С какими видами API работает скилл?
С REST и GraphQL, а ещё с вебхуками, версионированием и документацией SDK.
Исходный текст
SKILL.md · MIT
---
name: api-reference-documentation
description: >
Create comprehensive API reference documentation with OpenAPI/Swagger specs,
REST endpoints, authentication, examples, and SDKs. Use when documenting REST
APIs, GraphQL APIs, endpoint documentation, or OpenAPI specifications.
---
# API Reference Documentation
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Generate professional API documentation that developers can use to integrate with your API, including endpoint specifications, authentication, request/response examples, and interactive documentation.
## When to Use
- Documenting REST APIs
- Creating OpenAPI/Swagger specifications
- GraphQL API documentation
- SDK and client library docs
- API authentication guides
- Rate limiting documentation
- Webhook documentation
- API versioning guides
## Quick Start
Minimal working example:
```yaml
openapi: 3.0.3
info:
title: E-Commerce API
description: |
Complete API for managing e-commerce operations including products,
orders, customers, and payments.
## Authentication
All endpoints require Bearer token authentication. Include your API key
in the Authorization header: `Authorization: Bearer YOUR_API_KEY`
## Rate Limiting
- 1000 requests per hour for authenticated users
- 100 requests per hour for unauthenticated requests
## Pagination
List endpoints return paginated results with `page` and `limit` parameters.
version: 2.0.0
contact:
name: API Support
email: [email protected]
url: https://example.com/support
license:
name: MIT
url: https://opensource.org/licenses/MIT
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [OpenAPI Specification Example](references/openapi-specification-example.md) | openapi: 3.0.3 |
| [List Products](references/list-products.md) | List Products |
## Best Practices
### ✅ DO
- Use OpenAPI 3.0+ specification
- Include request/response examples for every endpoint
- Document all query parameters and headers
- Provide authentication examples
- Include error response formats
- Document rate limits and pagination
- Use consistent naming conventions
- Include SDK examples in multiple languages
- Document webhook payloads
- Provide interactive API explorer (Swagger UI)
- Version your API documentation
- Include migration guides for breaking changes
### ❌ DON'T
- Skip error response documentation
- Forget to document authentication
- Use inconsistent terminology
- Leave endpoints undocumented
- Ignore deprecation notices
- Skip versioning information
© aj-geddes · MIT · aj-geddes/useful-ai-prompts
Похожие скиллы
Всё по теме «Тексты и документация» →Сначала — api-reference-documentation от других авторов.