Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

api-documenterAPI 文档生成

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

192

周安装

8

GitHub Stars

公开资料未说明

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:api-documenter(API 文档生成)
来源仓库:https://github.com/victorsmaniotto/degestao
仓库路径:skills/api-documenter
安装命令:
npx skills add victorsmaniotto/degestao --skill "api-documenter"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add victorsmaniotto/degestao --skill "api-documenter"

简介

用于辅助 API 设计、接口文档和错误码整理。api-documenter 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合梳理 endpoint、生成 OpenAPI 草稿或检查字段命名。
  • 使用时需确认业务语义、鉴权方式和分页规则,避免虚构字段。
  • 涉及接口变更时应从现有代码或样例中提取事实,确保准确性。
  • 安装前请确认权限范围和维护状态,避免触发未授权操作。

SKILL.md

name
api-documenter
description
Geração de documentação de APIs no padrão OpenAPI/Swagger a partir de código PHP/Laravel. Usar para documentar endpoints, gerar specs OpenAPI 3.0, criar documentação interativa, documentar autenticação, schemas de request/response, e integrar com ferramentas como Swagger UI, Redoc, ou Stoplight.

API Documenter

Skill para documentação de APIs RESTful no padrão OpenAPI 3.0.

Estrutura OpenAPI

openapi: 3.0.3
info:
  title: Nome da API
  description: Descrição detalhada
  version: 1.0.0
  contact:
    name: Equipe de Desenvolvimento
    email:  [email protected] 

servers:
  - url: https://api.empresa.com/v1
    description: Produção
  - url: https://staging-api.empresa.com/v1
    description: Staging
  - url: http://localhost:8000/api/v1
    description: Local

tags:
  - name: Contratos
    description: Gerenciamento de contratos
  - name: Clientes
    description: Gerenciamento de clientes

paths:
  # Endpoints aqui

components:
  # Schemas, Security, etc.

Documentando Endpoints

CRUD Completo

paths:
  /contracts:
    get:
      tags:
        - Contratos
      summary: Listar contratos
      description: Retorna lista paginada de contratos com filtros opcionais
      operationId: listContracts
      parameters:
        - $ref: '#/components/parameters/PageParam'
        - $ref: '#/components/parameters/PerPageParam'
        - name: status
          in: query
          description: Filtrar por status
          schema:
            type: string
            enum: [pending, active, completed, cancelled]
        - name: client_id
          in: query
          description: Filtrar por cliente
          schema:
            type: integer
        - name: date_from
          in: query
          description: Data inicial (YYYY-MM-DD)
          schema:
            type: string
            format: date
        - name: date_to
          in: query
          description: Data final (YYYY-MM-DD)
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Lista de contratos
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractPaginatedResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'

    post:
      tags:
        - Contratos
      summary: Criar contrato
      description: Cria um novo contrato no sistema
      operationId: createContract
      security:
        - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContractRequest'
            example:
              client_id: 1
              event_date: "2024-06-15"
              value: 5000.00
              notes: "Evento corporativo"
      responses:
        '201':
          description: Contrato criado com sucesso
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractResponse'
        '422':
          $ref: '#/components/responses/ValidationError'

  /contracts/{id}:
    get:
      tags:
        - Contratos
      summary: Obter contrato
      operationId: getContract
      parameters:
        - $ref: '#/components/parameters/ContractId'
      responses:
        '200':
          description: Detalhes do contrato
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractResponse'
        '404':
          $ref: '#/components/responses/NotFound'

    put:
      tags:
        - Contratos
      summary: Atualizar contrato
      operationId: updateContract
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/ContractId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContractRequest'
      responses:
        '200':
          description: Contrato atualizado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractResponse'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'

    delete:
      tags:
        - Contratos
      summary: Excluir contrato
      operationId: deleteContract
      security:
        - bearerAuth: []
      parameters:
        - $ref: '#/components/parameters/ContractId'
      responses:
        '204':
          description: Contrato excluído com sucesso
        '404':
          $ref: '#/components/responses/NotFound'

Components (Schemas)

components:
  schemas:
    # Request Schemas
    CreateContractRequest:
      type: object
      required:
        - client_id
        - event_date
        - value
      properties:
        client_id:
          type: integer
          description: ID do cliente
          example: 1
        event_date:
          type: string
          format: date
          description: Data do evento
          example: "2024-06-15"
        value:
          type: number
          format: float
          minimum: 0.01
          description: Valor do contrato
          example: 5000.00
        status:
          type: string
          enum: [pending, active]
          default: pending
        notes:
          type: string
          maxLength: 1000
          description: Observações
          nullable: true

    UpdateContractRequest:
      type: object
      properties:
        event_date:
          type: string
          format: date
        value:
          type: number
          format: float
          minimum: 0.01
        status:
          type: string
          enum: [pending, active, completed, cancelled]
        notes:
          type: string
          nullable: true

    # Response Schemas
    Contract:
      type: object
      properties:
        id:
          type: integer
          example: 1
        client_id:
          type: integer
          example: 1
        event_date:
          type: string
          format: date
          example: "2024-06-15"
        event_date_formatted:
          type: string
          example: "15/06/2024"
        value:
          type: number
          format: float
          example: 5000.00
        value_formatted:
          type: string
          example: "R$ 5.000,00"
        status:
          type: string
          enum: [pending, active, completed, cancelled]
        status_label:
          type: string
          example: "Pendente"
        notes:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        client:
          $ref: '#/components/schemas/Client'

    ContractResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Contract'

    ContractPaginatedResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Contract'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
        links:
          $ref: '#/components/schemas/PaginationLinks'

    # Pagination
    PaginationMeta:
      type: object
      properties:
        current_page:
          type: integer
        from:
          type: integer
        last_page:
          type: integer
        per_page:
          type: integer
        to:
          type: integer
        total:
          type: integer

    PaginationLinks:
      type: object
      properties:
        first:
          type: string
          format: uri
        last:
          type: string
          format: uri
        prev:
          type: string
          format: uri
          nullable: true
        next:
          type: string
          format: uri
          nullable: true

    # Error Schemas
    ValidationError:
      type: object
      properties:
        message:
          type: string
          example: "The given data was invalid."
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          example:
            client_id: ["O campo cliente é obrigatório."]
            value: ["O valor deve ser maior que zero."]

  # Parameters
  parameters:
    ContractId:
      name: id
      in: path
      required: true
      description: ID do contrato
      schema:
        type: integer

    PageParam:
      name: page
      in: query
      description: Número da página
      schema:
        type: integer
        default: 1
        minimum: 1

    PerPageParam:
      name: per_page
      in: query
      description: Itens por página
      schema:
        type: integer
        default: 15
        minimum: 1
        maximum: 100

  # Responses
  responses:
    Unauthorized:
      description: Não autenticado
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: "Unauthenticated."

    NotFound:
      description: Recurso não encontrado
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: "Contrato não encontrado."

    ValidationError:
      description: Erro de validação
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'

  # Security
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token JWT obtido via login

    apiKey:
      type: apiKey
      in: header
      name: X-API-Key

Integração Laravel com Annotations

/**
 * @OA\Get(
 *     path="/api/contracts",
 *     tags={"Contratos"},
 *     summary="Listar contratos",
 *     @OA\Parameter(ref="#/components/parameters/PageParam"),
 *     @OA\Response(
 *         response=200,
 *         description="Lista de contratos",
 *         @OA\JsonContent(ref="#/components/schemas/ContractPaginatedResponse")
 *     )
 * )
 */
public function index()
{
    // ...
}

Exportação

# Gerar spec com l5-swagger
php artisan l5-swagger:generate

# Validar spec
npx @stoplight/spectral-cli lint openapi.yaml

# Gerar cliente
npx @openapitools/openapi-generator-cli generate \
  -i openapi.yaml \
  -g typescript-axios \
  -o ./sdk

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

mcpjam

27.64%
按下载量换算18

Claude Code

23.66%
按下载量换算15

windsurf

16.77%
按下载量换算11

zencoder

11.4%
按下载量换算7

crush

6.69%
按下载量换算4

cline

3.06%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills