SKILLEX

Ender-g / api-tree

skill.md

iyang--- name: api-tree description: 使用 api-tree CLI 工具查看和搜索 OpenAPI/Swagger 接口的终端树状图。当用户需要查看 API 接口结构、路由树、搜索特定 API 路径/端点,或提到 "api-tree"、"接口树"、"API 树"、"路由列表"、"swagger 接口"、"openapi 接口"、"查看接口"、"API 端点"、"接口结构"、"show api routes" 时使用。

iyang--- name: api-tree description: 使用 api-tree CLI 工具查看和搜索 OpenAPI/Swagger 接口的终端树状图。当用户需要查看 API 接口结构、路由树、搜索特定 API 路径/端点,或提到 "api-tree"、"接口树"、"API 树"、"路由列表"、"swagger 接口"、"openapi 接口"、"查看接口"、"API 端点"、"接口结构"、"show api routes" 时使用。 ---

api-tree

在终端中以彩色树状图展示 OpenAPI 接口结构,支持搜索和过滤。支持多种输出格式,包括为 LLM Agent 优化的输出和 RAG 知识库输出。

命令

命令说明
api-tree默认连接 http://localhost:8080,自动追加 /v3/api-docs
api-tree <url>连接指定 OpenAPI 文档地址
api-tree <file.json>读取本地 OpenAPI JSON 文件
api-tree <url> -s <keyword>搜索含关键词的路径/方法/摘要
api-tree <url> --html同时导出带主题切换的 HTML 文件
api-tree <url> --agent-output <format>为 LLM Agent 优化的输出(markdown/json/curl)
api-tree <url> --rag-output <format>为 RAG 知识库优化的输出(jsonl/json)
api-tree <url> --rag-chunk-size <n>设置 RAG 切片大小(默认 10 个端点)
api-tree --init-config生成默认配置文件
api-tree --show-config显示当前配置
api-tree -h查看帮助

参数

skill.md