Token导航 LogoToken导航

Agent Skill · 研究检索

api-documenter(API 文档生成)

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

api-documenter 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 71,838。

总安装 192周安装 8GitHub Stars 公开资料未说明下载 64核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 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"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助 API 设计、接口文档和错误码整理。api-documenter 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合梳理 endpoint、生成 OpenAPI 草稿或检查字段命名。使用时需确认业务语义、鉴权方式和分页规则,避免虚构字段。涉及接口变更时应从现有代码或样例中提取事实,确保准确性。

安装前请确认权限范围和维护状态,避免触发未授权操作。

来源仓库内路径:skills/api-documenter

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add victorsmaniotto/degestao --skill "api-documenter";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-documenter 怎么安装?

在终端执行 npx skills add victorsmaniotto/degestao --skill "api-documenter"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

api-documenter 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

api-documenter 需要什么权限?

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

api-documenter 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

api-documenter 用的人多吗?

公开数据是累计安装 192 次,近一周安装 8 次,下载 64 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

api-documenter 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
api-documenter

API 文档生成 · 本页

192—调用外部服务MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

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

安全审计

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

权限和风险

调用外部服务

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

安装前确认

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

继续浏览同类 Skills