·extract-openapi-from-code
</>

extract-openapi-from-code

speakeasy-api/agent-skills

从现有 API 代码提取或生成 OpenAPI 规范时使用。在“提取 OpenAPI”、“代码优先”、“从代码生成规范”、“FastAPI OpenAPI”、“Spring Boot OpenAPI”、“NestJS swagger”、“Django OpenAPI”、“Flask OpenAPI”、“Rails swagger”、“Laravel OpenAPI”、“现有 API 代码”上触发

3安装·0热度·@speakeasy-api

安装

$npx skills add https://github.com/speakeasy-api/agent-skills --skill extract-openapi-from-code

SKILL.md

Extract an OpenAPI specification from an existing API codebase. Covers eight major frameworks across Python, Java, JavaScript/TypeScript, Ruby, and PHP.

| Framework | Yes | The API framework in use (see Decision Framework) | | Project path | Yes | Root directory of the API project | | Output path | No | Where to write the spec (default: openapi.json or openapi.yaml) | | Target language | No | SDK target language, if generating an SDK after extraction |

| OpenAPI spec | A JSON or YAML file describing the API | | Validation report | Lint results from speakeasy lint |

从现有 API 代码提取或生成 OpenAPI 规范时使用。在“提取 OpenAPI”、“代码优先”、“从代码生成规范”、“FastAPI OpenAPI”、“Spring Boot OpenAPI”、“NestJS swagger”、“Django OpenAPI”、“Flask OpenAPI”、“Rails swagger”、“Laravel OpenAPI”、“现有 API 代码”上触发 来源:speakeasy-api/agent-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/speakeasy-api/agent-skills --skill extract-openapi-from-code
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 extract-openapi-from-code?

从现有 API 代码提取或生成 OpenAPI 规范时使用。在“提取 OpenAPI”、“代码优先”、“从代码生成规范”、“FastAPI OpenAPI”、“Spring Boot OpenAPI”、“NestJS swagger”、“Django OpenAPI”、“Flask OpenAPI”、“Rails swagger”、“Laravel OpenAPI”、“现有 API 代码”上触发 来源:speakeasy-api/agent-skills。

如何安装 extract-openapi-from-code?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/speakeasy-api/agent-skills --skill extract-openapi-from-code 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/speakeasy-api/agent-skills