api-docs

Create comprehensive API documentation and OpenAPI specs.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-docs" with this command: npx skills add htlin222/dotfiles/htlin222-dotfiles-api-docs

API Documentation

Create comprehensive API documentation and OpenAPI specs.

When to Use

  • Documenting new APIs

  • Creating OpenAPI/Swagger specs

  • Generating SDK documentation

  • Writing API guides

  • Creating Postman collections

OpenAPI Template

openapi: 3.0.3 info: title: API Name version: 1.0.0 description: API description

servers:

paths: /users: get: summary: List users operationId: listUsers parameters: - name: limit in: query schema: type: integer default: 20 responses: "200": description: Success content: application/json: schema: type: array items: $ref: "#/components/schemas/User"

post:
  summary: Create user
  operationId: createUser
  requestBody:
    required: true
    content:
      application/json:
        schema:
          $ref: "#/components/schemas/CreateUser"
  responses:
    "201":
      description: Created
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/User"

components: schemas: User: type: object properties: id: type: string format: uuid name: type: string email: type: string format: email required: - id - name - email

CreateUser:
  type: object
  properties:
    name:
      type: string
    email:
      type: string
      format: email
  required:
    - name
    - email

securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT

security:

  • bearerAuth: []

Documentation Structure

API Reference

Authentication

All requests require a Bearer token in the Authorization header.

Endpoints

Users

List Users

GET /users

Parameters:

NameTypeRequiredDescription
limitintegerNoResults per page

Response:

```json
[{ "id": "...", "name": "...", "email": "..." }]
```

Create User

POST /users

Request Body:

```json
{ "name": "John", "email": "john@example.com" }
```

Error Codes

CodeDescription
400Bad Request
401Unauthorized
404Not Found
500Internal Server Error

Examples

Input: "Document the user API" Action: Create OpenAPI spec with all endpoints, schemas, examples, error codes

Input: "Generate API docs from code" Action: Extract endpoints, infer types, create structured documentation

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

data-science

No summary provided by upstream source.

Repository SourceNeeds Review
General

c-lang

No summary provided by upstream source.

Repository SourceNeeds Review
General

cpp

No summary provided by upstream source.

Repository SourceNeeds Review