api-gen

Analyzes Spring MVC RestControllers to automatically generate OpenAPI specs and HTML documentation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-gen" with this command: npx skills add g1cloud/skills/g1cloud-skills-api-gen

API Documentation Generator

Trigger

Invoked with the following keywords:

  • "api doc", "api 문서", "문서 생성", "generate api doc"

Environment Variables (Required)

Important: This skill requires the following environment variables to be set before execution. Running without them may produce incorrect or incomplete results.

  • API_GEN_SOURCE_DIR: Source directory. Default: "./"
  • API_GEN_API_SOURCE_DIR: Source code directory containing RestControllers. Default: "./"
  • API_GEN_FILE: YAML file path. Default: "./doc/api/api.yaml"
  • API_GEN_TITLE: API document title. Uses the project name by default.
  • API_GEN_VERSION: API document version. Uses the project's version info by default.

If any required environment variable is not set, the skill must not proceed with execution.

Commands

# 1. Generate OpenAPI YAML
npx @g1cloud/api-gen \
    --source ${API_GEN_SOURCE_DIR:-./} \
    --api-source ${API_GEN_API_SOURCE_DIR:-./} \
    --output ${API_GEN_FILE:-./doc/api/api.yaml} \
    --title "${API_GEN_TITLE}" \
    --api-version "${API_GEN_VERSION}"

Usage

Run this skill when a RestController or any DTO used by a RestController has been modified, and the documentation will be automatically updated.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

semantic-commit

No summary provided by upstream source.

Repository SourceNeeds Review
General

nano-banana-2

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Repository Source
General

qwen-image-2

Qwen-Image - Alibaba Image Generation

Repository Source
15340.8K
inferen-sh