api-generation
CommunityAutomate API client generation, keep frontend in sync.
Authoratilladeniz
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates the tedious and error-prone manual process of writing and maintaining frontend API clients. It automates the generation of type-safe TypeScript React Query hooks directly from your Go backend's Swagger comments, ensuring your frontend is always perfectly in sync with your backend API, saving countless hours of debugging and manual updates.
Core Features & Use Cases
- One-Command Generation: Use
make apito automatically generateswagger.jsonfrom Go comments and then TypeScript hooks via Orval. - Type-Safe Frontend Client: Provides strongly typed API requests and responses, reducing runtime errors and improving developer experience.
- Clear Workflow for New Endpoints: Guides you through adding Swagger comments to Go handlers and regenerating the client.
- Use Case: After adding a new
/productsendpoint to your Go backend, usemake apito automatically generate the correspondinguseGetProductsandusePostProductsReact Query hooks for the frontend, ensuring immediate and type-safe consumption.
Quick Start
Explain the steps to add a new API endpoint in the Go backend, including Swagger comments, and then generate the updated TypeScript client for the frontend using the make api command.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: api-generation Download link: https://github.com/atilladeniz/next-go-pg/archive/main.zip#api-generation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.