Logo Api Documentation

Api Documentation

Cộng đồng
Omar-Obando
api-documentation

Use when creating API documentation, implementing OpenAPI specifications, writing Swagger documentation, creating GraphQL schemas, and generating SDKs. Includes documentation best practices, API versioning, and API documentation automation. Based on CPTD and OpenAPI Specification certifications.

Add to TypingMind

Tổng quan

Nhà phát hànhOmar-Obando
Kho mãqwen-orchestrator
Tên kỹ năngapi-documentation
Sao
53
Bản fork
13
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Omar-Obando công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Api Documentation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/api-documentation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Omar-Obando/qwen-orchestrator.git /tmp/qwen-orchestrator
mkdir -p .claude/skills
cp -r /tmp/qwen-orchestrator/skills/api-documentation .claude/skills/api-documentation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Api Documentation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Api Documentation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Api Documentation với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

API Documentation Skill — API Specialist

Overview

This skill provides comprehensive guidance for creating comprehensive API documentation. It covers OpenAPI specifications, Swagger documentation, GraphQL schemas, SDK generation, and API documentation best practices following CPTD and OpenAPI Specification certifications.

When to Use

Use this skill when:

  • Creating API documentation
  • Implementing OpenAPI specifications
  • Writing Swagger documentation
  • Creating GraphQL schemas
  • Generating SDKs from API specs
  • Documenting RESTful APIs
  • Documenting GraphQL APIs
  • Creating API documentation sites
  • Implementing API versioning documentation
  • Creating API examples
  • Writing API tutorials
  • Documenting API authentication
  • Documenting API error handling
  • Creating API changelogs
  • Implementing API documentation automation
  • Creating API documentation templates
  • Documenting API best practices
  • Creating API documentation style guides
  • Implementing API documentation testing
  • Creating API documentation metrics
  • Documenting API security requirements
  • Creating API documentation for developers
  • Implementing API documentation updates

Do NOT use this skill when:

  • Writing application business logic (use domain-driven skill)
  • Designing database schemas (use database-design skill)
  • Writing API endpoint specifications (use api-design skill)
  • Performing security audits (use security-auditor skill)
  • Writing SQL queries (use sql-best-practices skill)
  • Designing multi-page website layouts (use design-system skill)
  • Analyzing deployment configurations (use deployment skill)
  • Writing documentation (use documentation-best-practices skill)

OpenAPI Specification

OpenAPI Structure

yaml
openapi: 3.1.0
info:
  title: API Title
  description: API description
  version: 1.0.0
  contact:
    name: API Support
    email: support@example.com
    url: https://example.com/support
servers:
  - url: https://api.example.com/v1
    description: Production server
  - url: https://staging-api.example.com/v1
    description: Staging server
paths:
  /users:
    get:
      summary: List all users
      operationId: listUsers
      tags:
        - users
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserList'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      summary: Create a new user
      operationId: createUser
      tags:
        - users
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/User'
      responses:
        '201':
          description: User created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '400':
          description: Bad request
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        email:
          type: string
          format: email
    UserList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/User'
        pagination:
          $ref: '#/components/schemas/Pagination'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
security:
  - BearerAuth: []

OpenAPI Best Practices

┌─────────────────────────────────────────────────────────────┐
│              OpenAPI Best Practices                         │
├─────────────────────────────────────────────────────────────┤
│  Naming:                                                    │
│  - Use nouns for resource names                             │
│  - Use plural for collections                               │
│  - Use camelCase for properties                             │
│  - Use PascalCase for schemas                               │
│                                                              │
│  Versioning:                                                │
│  - Include version in URL path                              │
│  - Use Accept header for version                            │
│  - Document version changes                                 │
│                                                              │
│  Authentication:                                            │
│  - Document all authentication methods                      │
│  - Provide authentication examples                          │
│  - Document token lifecycle                                 │
│                                                              │
│  Error Handling:                                            │
│  - Document all error responses                             │
│  - Provide error codes and messages                         │
│  - Include error examples                                   │
│                                                              │
│  Pagination:                                                │
│  - Document pagination parameters                           │
│  - Include pagination metadata                              │
│  - Provide pagination examples                              │
│                                                              │
│  Filtering and Sorting:                                     │
│  - Document filtering parameters                            │
│  - Document sorting parameters                              │
│  - Provide filtering examples                               │
└─────────────────────────────────────────────────────────────┘

GraphQL Schema Documentation

GraphQL Schema Structure

graphql
# Schema
type Query {
  user(id: ID!): User
  users(limit: Int, offset: Int): UserConnection
  me: User
}

type Mutation {
  createUser(input: CreateUserInput!): User!
  updateUser(id: ID!, input: UpdateUserInput!): User
  deleteUser(id: ID!): Boolean!
}

type User {
  id: ID!
  name: String!
  email: String!
  createdAt: DateTime!
  updatedAt: DateTime!
}

input CreateUserInput {
  name: String!
  email: String!
  password: String!
}

input UpdateUserInput {
  name: String
  email: String
  password: String
}

type UserConnection {
  nodes: [User!]!
  pageInfo: PageInfo!
  totalCount: Int!
}

type PageInfo {
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
  endCursor: String
}

scalar DateTime

GraphQL Best Practices

┌─────────────────────────────────────────────────────────────┐
│              GraphQL Best Practices                         │
├─────────────────────────────────────────────────────────────┤
│  Naming:                                                    │
│  - Use camelCase for field names                            │
│  - Use PascalCase for types                                 │
│  - Use verbs for mutations                                  │
│                                                              │
│  Pagination:                                                │
│  - Use cursor-based pagination                              │
│  - Implement Relay connection pattern                       │
│  - Document pagination fields                               │
│                                                              │
│  Authentication:                                            │
│  - Document authentication requirements                     │
│  - Document authorization requirements                      │
│  - Document token requirements                              │
│                                                              │
│  Error Handling:                                            │
│  - Document error types                                     │
│  - Document error codes                                     │
│  - Document error examples                                  │
│                                                              │
│  Input Validation:                                          │
│  - Document input validation rules                          │
│  - Document required fields                                 │
│  - Document field constraints                               │
└─────────────────────────────────────────────────────────────┘

API Documentation Tools

Popular Tools

┌─────────────────────────────────────────────────────────────┐
│              API Documentation Tools                        │
├─────────────────────────────────────────────────────────────┤
│  Swagger UI:                                                │
│  - Interactive API documentation                            │
│  - OpenAPI support                                          │
│  - Customizable                                             │
│  - Self-hosted                                              │
│                                                              │
│  Redoc:                                                     │
│  - Beautiful documentation                                  │
│  - OpenAPI support                                          │
│  - Custom themes                                            │
│  - CLI integration                                          │
│                                                              │
│  Postman Documentation:                                     │
│  - Collection documentation                                 │
│  - Interactive examples                                     │
│  - Team collaboration                                       │
│  - API monitoring                                           │
│                                                              │
│  Slate:                                                     │
│  - Markdown-based                                           │
│  - Easy to customize                                        │
│  - Static site generation                                   │
│  - Multiple languages                                       │
│                                                              │
│  Stoplight:                                                 │
│  - OpenAPI editor                                           │
│  - Documentation generation                                 │
│  - Mock servers                                             │
│  - Testing tools                                            │
└─────────────────────────────────────────────────────────────┘

API Documentation Checklist

Documentation Checklist

┌─────────────────────────────────────────────────────────────┐
│              API Documentation Checklist                    │
├─────────────────────────────────────────────────────────────┤
│  General:                                                   │
│  [ ] API overview and purpose                               │
│  [ ] Authentication requirements                            │
│  [ ] API versioning information                             │
│  [ ] Base URL information                                   │
│                                                              │
│  Endpoints:                                                 │
│  [ ] All endpoints documented                               │
│  [ ] HTTP methods documented                                │
│  [ ] Request parameters documented                          │
│  [ ] Request body documented                                │
│  [ ] Response examples provided                             │
│  [ ] Error responses documented                             │
│                                                              │
│  Examples:                                                  │
│  [ ] Request examples                                       │
│  [ ] Response examples                                      │
│  [ ] Error examples                                         │
│  [ ] Code examples                                          │
│                                                              │
│  Security:                                                  │
│  [ ] Authentication documented                              │
│  [ ] Authorization documented                               │
│  [ ] Rate limiting documented                               │
│  [ ] Security headers documented                            │
│                                                              │
│  Advanced Features:                                         │
│  [ ] Pagination documented                                  │
│  [ ] Filtering documented                                   │
│  [ ] Sorting documented                                     │
│  [ ] Including related resources documented                 │
└─────────────────────────────────────────────────────────────┘

Real-World Impact

Before this skill:

  • Incomplete API documentation
  • Missing examples
  • Poor API discoverability
  • Developer frustration
  • Support overhead

After this skill:

  • Comprehensive API documentation
  • Clear examples
  • Easy API discoverability
  • Developer satisfaction
  • Reduced support overhead

Cross-References

  • api-design - For API design and specifications
  • documentation-best-practices - For documentation standards
  • context7-docs - For up-to-date documentation

References

Câu hỏi thường gặp

Kỹ năng AI Api Documentation làm được gì?

Use when creating API documentation, implementing OpenAPI specifications, writing Swagger documentation, creating GraphQL schemas, and generating SDKs. Includes documentation best practices, API versioning, and API documentation automation. Based on CPTD and OpenAPI Specification certifications.

Vì sao nên dùng Api Documentation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Api Documentation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Api Documentation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/api-documentation. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Api Documentation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Api Documentation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Api Documentation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Api Documentation có miễn phí không?

Có. Kỹ năng này được Omar-Obando phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇