Skip to content
Back to skills

Openapi Generator

ASecurity

Generate OpenAPI specifications from code or legacy APIs with schema inference and documentation

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentstypescriptpythonjavabashfastapispringrefactoringapidatabasebackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill openapi-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openapi Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openapi Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-openapi-generator-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-openapi-generator-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openapi-generator
description: Generate OpenAPI specifications from code or legacy APIs with schema inference and documentation
allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob", "Edit"]
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:code-migration-modernization]
  skillAreas: [skill-area:api-doc-generation, skill-area:api-design]
  roles: [role:backend-engineer, role:technical-writer]
  workflows: [workflow:technical-debt-reduction]
  topics: [topic:refactoring]
---

# OpenAPI Generator Skill

Generates OpenAPI specifications from code annotations, legacy APIs, or runtime analysis, with schema inference and documentation generation.

## Purpose

Enable API documentation for:
- Spec generation from code
- Schema inference
- Example generation
- Validation rule extraction
- Documentation generation

## Capabilities

### 1. Spec Generation from Code Annotations
- Parse JSDoc/Swagger annotations
- Extract from decorators
- Process code comments
- Support multiple languages

### 2. Schema Inference
- Infer from TypeScript types
- Extract from runtime samples
- Build from database models
- Derive from existing payloads

### 3. Example Generation
- Generate realistic examples
- Create edge case samples
- Produce validation examples
- Build test fixtures

### 4. Validation Rule Extraction
- Extract validation constraints
- Document required fields
- Map format rules
- Export enum values

### 5. Versioning Support
- Track API versions
- Generate diff between versions
- Document breaking changes
- Support multiple versions

### 6. Documentation Generation
- Generate Swagger UI
- Create ReDoc pages
- Export to Postman
- Build developer portals

## Tool Integrations

| Tool | Language | Integration Method |
|------|----------|-------------------|
| Swagger Codegen | Multi | CLI |
| OpenAPI Generator | Multi | CLI |
| springdoc | Java/Spring | Library |
| NSwag | .NET | CLI |
| tsoa | TypeScript | CLI |
| FastAPI | Python | Auto |

## Output Schema

```json
{
  "generationId": "string",
  "timestamp": "ISO8601",
  "specification": {
    "openapi": "string",
    "info": {},
    "paths": {},
    "components": {}
  },
  "artifacts": {
    "specFile": "string",
    "docsUrl": "string",
    "postmanCollection": "string"
  },
  "coverage": {
    "endpoints": "number",
    "documented": "number",
    "schemasGenerated": "number"
  }
}
```

## Integration with Migration Processes

- **api-modernization**: Spec generation
- **documentation-migration**: API docs

## Related Skills

- `api-inventory-scanner`: Endpoint discovery
- `api-compatibility-analyzer`: Version comparison

## Related Agents

- `api-modernization-architect`: API design
- `documentation-migration-agent`: Doc generation

Files in this skill

  • README.md1.4 KB
  • SKILL.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…