OpenAPI & Swagger Codegen Expert
SkillDev toolsOpenAPI 3.1 spec authoring, Swagger UI, automatic client/server code generation (openapi-typescript, Orval, Kiota), contract testing / Penulisan spesifikasi OpenAPI 3.1, Swagger UI, pembuatan kode klien/server otomatis, dan pengujian kontrak.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the OpenAPI & Swagger Codegen Expert skill
What this skill tells your AI
The instructions your AI receives, as published by roedyrustam/vibes-plug in skills/openapi-swagger-codegen-expert/SKILL.md and read by ahel’s review.
English | Bahasa Indonesia
English
Description
Dedicated expert guide for API contract-first development using OpenAPI 3.1, Swagger UI, and automated code generation. Covers generating strictly typed API clients (using openapi-typescript, Orval, or Microsoft Kiota), scaffolding server stubs, and implementing contract testing to ensure backend APIs always match their documentation.
Trigger Conditions
- Setting up API documentation (Swagger UI, Redoc, Scalar).
- Generating API client code for frontend/mobile apps.
- Authoring OpenAPI 3.x specifications (
openapi.yamlor JSON). - Implementing contract testing (e.g., using Dredd or Prism).
- Migrating from manual fetch wrappers to auto-generated typed API clients.
Best Practices & Workflow
- Contract-First Approach: Always write or define the OpenAPI specification before writing any backend code. This serves as the single source of truth for both frontend and backend teams.
- Strict Type Generation:
- Use
openapi-typescriptfor generating raw TS definitions. - Use
Orvalfor generating React Query (TanStack Query) hooks directly from the OpenAPI spec. - Use Microsoft
Kiotafor multi-language SDK generation.
- Use
- Automated Validation: Integrate API schema validation in the CI/CD pipeline using tools like
Spectralto enforce API design standards. - Mocking: Use tools like
Prismto spin up mock servers from the OpenAPI spec, allowing frontend teams to start development immediately.
Bahasa Indonesia
Integrasi Orkestrasi
Terhubung dan mengorkestrasi skill domain yang relevan seperti brainstorming, zero-to-prod-orchestrator, dan project-context-mapper untuk memastikan eksekusi yang kohesif.
Deskripsi
Panduan ahli khusus untuk pengembangan API dengan pendekatan contract-first menggunakan OpenAPI 3.1, Swagger UI, dan otomatisasi pembuatan kode (codegen). Mencakup pembuatan klien API yang strictly typed (menggunakan openapi-typescript, Orval, atau Microsoft Kiota), scaffolding untuk server, dan implementasi contract testing untuk memastikan backend selalu sesuai dengan dokumentasinya.
Kondisi Pemicu
- Mengatur dokumentasi API (Swagger UI, Redoc, Scalar).
- Men-generate kode klien API untuk aplikasi frontend/mobile.
- Menulis spesifikasi OpenAPI 3.x (
openapi.yamlatau JSON). - Mengimplementasikan contract testing (misalnya menggunakan Dredd atau Prism).
- Migrasi dari wrapper
fetchmanual ke klien API yang otomatis ter-generate dan typed.
Panduan Implementasi
- Pendekatan Contract-First: Selalu tulis/definisikan spesifikasi OpenAPI sebelum menulis kode backend. Ini menjadi sumber kebenaran tunggal (single source of truth) untuk tim frontend dan backend.
- Pembuatan Tipe yang Ketat (Strict Type Generation):
- Gunakan
openapi-typescriptuntuk menghasilkan definisi TypeScript murni. - Gunakan
Orvaluntuk men-generate React Query (TanStack Query) hooks secara otomatis dari spek OpenAPI. - Gunakan Microsoft
Kiotauntuk pembuatan SDK multi-bahasa.
- Gunakan
- Validasi Otomatis: Integrasikan validasi skema API di pipeline CI/CD menggunakan tool seperti
Spectraluntuk memastikan standar desain API terpenuhi. - Mocking: Gunakan tool seperti
Prismuntuk menjalankan mock server dari spesifikasi OpenAPI, memungkinkan tim frontend memulai pengembangan tanpa harus menunggu backend selesai.
Orchestration & Integration
- Connects to
api-design-expertfor the core design rules. - Connects to
ci-cd-devops-architectto implement CI/CD validation. - Connects to
senior-frontend/tanstack-query-expertto consume the generated clients.
Signals
- GitHub stars
- 50
- Forks
- 10
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
openapi-swagger-codegen-expert- Source
- github.com/roedyrustam/vibes-plug