← Back to Skills Marketplace
opoojkk

Swagger V2 Retrofit Generator

by opoojkk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
244
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install swagger-v2-retrofit-generator
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install swagger-v2-retrofit-generator
  3. After installation, invoke the skill by name or use /swagger-v2-retrofit-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug swagger-v2-retrofit-generator
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 244 downloads so far.

How do I install Swagger V2 Retrofit Generator?

Run "/install swagger-v2-retrofit-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Swagger V2 Retrofit Generator free?

Yes, Swagger V2 Retrofit Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Swagger V2 Retrofit Generator support?

Swagger V2 Retrofit Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Swagger V2 Retrofit Generator?

It is built and maintained by opoojkk (@opoojkk); the current version is v0.1.0.

💬 Comments