sundial-org/awesome-openclaw-skills

swagger-gen

Generate OpenAPI specs from Express routes. Use when documenting APIs.

First seen Mar 17, 2026

Installation

$ npx skills add sundial-org/awesome-openclaw-skills --skill swagger-gen

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from sundial-org/awesome-openclaw-skills · top by installs.

npx skills add sundial-org/awesome-openclaw-skills

Browse all from sundial-org/awesome-openclaw-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 660
License LICENSE
Default branch main
Open issues 12
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,708 B
  • docs README.md 520 B
  • docs SUMMARY.md 89 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

Swagger Generator

Your API has no documentation. This reads your Express routes and generates a complete OpenAPI 3.0 spec.

One command. Zero config. Just works.

Quick Start

npx ai-swagger ./src/routes/

What It Does

  • Reads your Express route files
  • Generates OpenAPI 3.0 specification
  • Documents request/response shapes
  • Ready for Swagger UI

Usage Examples

# Generate from routes
npx ai-swagger ./src/routes/

# Single file
npx ai-swagger ./src/routes/users.ts -o docs/api.yaml

Best Practices

  • Keep it updated - regenerate when routes change
  • Add descriptions - explain what endpoints do
  • Include examples - show sample requests
  • Document errors - not just happy paths

When to Use This

  • Creating API documentation
  • Setting up Swagger UI
  • Onboarding API consumers
  • API-first design

Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

Find more:

Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAIAPIKEY environment variable.

npx ai-swagger --help

How It Works

Parses your Express route definitions to extract endpoints, methods, and handler code. Then generates OpenAPI spec with proper types and descriptions.

License

MIT. Free forever. Use it however you want.