← 返回 Skills 市场
opoojkk

Swagger V2 Retrofit Generator

作者 opoojkk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
244
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install swagger-v2-retrofit-generator
功能描述
Generate Android Retrofit/Kotlin client code from Swagger v2 (OpenAPI 2.0) API documentation. Supports fetching Swagger docs via HTTP with no auth, Basic Aut...
安全使用建议
This skill appears internally consistent and implements exactly what it says: fetching a Swagger v2 JSON (from the URL you provide) and generating Retrofit/Kotlin code. Before running, consider: (1) only supply URLs and credentials for services you trust — the fetch script will make HTTP requests to whatever URL you pass; (2) avoid passing sensitive credentials on the command line on multi-user systems (they can be visible in process listings); prefer piping from a secure local file if possible; (3) review generated code for naming/sanitization edge cases (the generator maps Chinese terms and replaces characters, which can produce unexpected class names); and (4) restrict write destinations (output file paths) to locations you control. Other than these normal operational cautions, there are no unexplained or disproportionate behaviors in the skill.
功能分析
Type: OpenClaw Skill Name: swagger-v2-retrofit-generator Version: 0.1.0 The skill bundle is a developer tool designed to generate Kotlin Retrofit client code from Swagger v2 (OpenAPI 2.0) documentation. It consists of two main Python scripts: `fetch_swagger.py`, which retrieves API documentation via HTTP (supporting various authentication methods), and `generate_retrofit.py`, which parses the JSON and generates code. The code uses standard Python libraries (urllib, json, re) and contains no evidence of malicious intent, data exfiltration, or prompt injection. The network and file system access are strictly aligned with the stated purpose of fetching documentation and saving generated code.
能力评估
Purpose & Capability
Name/description align with included scripts and reference docs. The two Python scripts implement fetching a Swagger v2 JSON (with optional auth) and generating Kotlin Retrofit code, which is exactly what the skill claims to do.
Instruction Scope
SKILL.md instructs running fetch_swagger.py and generate_retrofit.py (or piping them). The runtime instructions only reference the supplied URL, credentials passed as CLI args, input/output files or stdin/stdout and generation options — no unrelated files, system paths, or external endpoints are accessed beyond the user-provided Swagger URL.
Install Mechanism
There is no install spec; this is instruction + bundled scripts. No external downloads or package installs are performed by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths and the code uses only CLI arguments for auth. No unrelated secrets or environment access is requested.
Persistence & Privilege
always:false (default) and the skill does not attempt to modify other skills or system-wide agent settings. It does not request permanent presence or elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install swagger-v2-retrofit-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /swagger-v2-retrofit-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of swagger-v2-retrofit-generator. - Generate Android Retrofit/Kotlin client code from Swagger v2 (OpenAPI 2.0) API docs. - Supports fetching Swagger documentation via HTTP with no auth, Basic Auth, Bearer Token, and API Key. - Outputs Kotlin Retrofit Service interfaces and data classes. - Enables filtering and selective generation by path, method, tag, or keyword search. - Provides command-line tools for fetching Swagger docs and generating code. - Includes automatic class name conversion for Chinese and special-character names.
元数据
Slug swagger-v2-retrofit-generator
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Swagger V2 Retrofit Generator 是什么?

Generate Android Retrofit/Kotlin client code from Swagger v2 (OpenAPI 2.0) API documentation. Supports fetching Swagger docs via HTTP with no auth, Basic Aut... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 244 次。

如何安装 Swagger V2 Retrofit Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install swagger-v2-retrofit-generator」即可一键安装,无需额外配置。

Swagger V2 Retrofit Generator 是免费的吗?

是的,Swagger V2 Retrofit Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Swagger V2 Retrofit Generator 支持哪些平台?

Swagger V2 Retrofit Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Swagger V2 Retrofit Generator?

由 opoojkk(@opoojkk)开发并维护,当前版本 v0.1.0。

💬 留言讨论