api-generator

Generate TypeScript API clients from OpenAPI specifications.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/QING-YU123/vue-naiveui-ts-template --skill api-generator-qing-yu123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-generator
Source: https://github.com/QING-YU123/vue-naiveui-ts-template/tree/main/.claude/skills/api-generator
Command: npx skills add https://github.com/QING-YU123/vue-naiveui-ts-template --skill api-generator-qing-yu123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of front-end API calls from OpenAPI specifications, reducing manual boilerplate and ensuring consistency across services.

Core Features & Use Cases

  • OpenAPI driven codegen: Generates TypeScript API clients from OpenAPI paths and schemas.
  • Type-safe interfaces: Produces interfaces for schemas and strong-typed request/response models.
  • Seamless integration: Outputs to a reusable module under src/apis, compatible with existing request utilities.

Quick Start

Scan the OpenAPI definitions under OpenAPI/ and generate a TypeScript API client in src/apis.

Frequently Asked Questions about api-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate TypeScript API clients from OpenAPI specifications?

Generating type-safe API calls from OpenAPI specs involves scanning OpenAPI paths and schemas to map them into TypeScript interfaces. The process outputs typed API helper functions and a reusable module under src/apis, enforcing type safety and proper parameter handling.

What is OpenAPI driven codegen for frontend development?

OpenAPI driven codegen automates generating frontend API calls from OpenAPI paths and schemas. It reduces manual boilerplate by producing type-safe TypeScript interfaces and strongly typed request and response models for HTTP requests, ensuring consistency across services.

Can I generate typed API helper functions for existing frontend projects?

Yes, you can generate typed API helper functions for existing frontend projects. The generated API client outputs to a reusable module under src/apis, designed to be compatible with existing request utilities and TypeScript interfaces.

Does the generated TypeScript API client enforce type safety for path and body parameters?

Yes, the generated TypeScript API client enforces type safety for path and body parameters. It maps OpenAPI schemas to TypeScript interfaces and creates strongly typed request and response models, ensuring proper parameter handling throughout your HTTP requests.

What is the best way to reduce manual boilerplate when creating frontend API calls?

The best way to reduce manual boilerplate for frontend API calls is using OpenAPI driven codegen. Automating TypeScript API client generation from OpenAPI specifications ensures consistency across services while producing type-safe interfaces and reusable modules under src/apis.