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

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
211Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2921Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1150Profile unavailable