本文へ移動
cccskills
無料GitHub で公開

openapi-swagger-codegen-expert

OpenAPI 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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

OpenAPI & Swagger Codegen Expert

English | Bahasa Indonesia


<a name="english"></a>

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.yaml or JSON).
  • Implementing contract testing (e.g., using Dredd or Prism).
  • Migrating from manual fetch wrappers to auto-generated typed API clients.

Best Practices & Workflow

  1. 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.
  2. Strict Type Generation:
    • Use openapi-typescript for generating raw TS definitions.
    • Use Orval for generating React Query (TanStack Query) hooks directly from the OpenAPI spec.
    • Use Microsoft Kiota for multi-language SDK generation.
  3. Automated Validation: Integrate API schema validation in the CI/CD pipeline using tools like Spectral to enforce API design standards.
  4. Mocking: Use tools like Prism to spin up mock servers from the OpenAPI spec, allowing frontend teams to start development immediately.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

Terhubung dan mengorkestrasi skill domain yang relevan seperti brainstorming, zero-to-prod-orchestrator, dan session-memory-manager 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.yaml atau JSON).
  • Mengimplementasikan contract testing (misalnya menggunakan Dredd atau Prism).
  • Migrasi dari wrapper fetch manual ke klien API yang otomatis ter-generate dan typed.

Panduan Implementasi

  1. 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.
  2. Pembuatan Tipe yang Ketat (Strict Type Generation):
    • Gunakan openapi-typescript untuk menghasilkan definisi TypeScript murni.
    • Gunakan Orval untuk men-generate React Query (TanStack Query) hooks secara otomatis dari spek OpenAPI.
    • Gunakan Microsoft Kiota untuk pembuatan SDK multi-bahasa.
  3. Validasi Otomatis: Integrasikan validasi skema API di pipeline CI/CD menggunakan tool seperti Spectral untuk memastikan standar desain API terpenuhi.
  4. Mocking: Gunakan tool seperti Prism untuk menjalankan mock server dari spesifikasi OpenAPI, memungkinkan tim frontend memulai pengembangan tanpa harus menunggu backend selesai.

Orchestration & Integration

  • Connects to api-design-expert for the core design rules.
  • Connects to ci-cd-devops-architect to implement CI/CD validation.
  • Connects to senior-frontend / tanstack-query-expert to consume the generated clients.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

日本語の概要は準備中です。原文の説明を表示しています。

roedyrustam/vibes-plug752026年10月9日 更新

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

日本語の概要は準備中です。原文の説明を表示しています。

roedyrustam/vibes-plug752026年10月9日 更新

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

日本語の概要は準備中です。原文の説明を表示しています。

roedyrustam/vibes-plug752026年10月9日 更新

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

日本語の概要は準備中です。原文の説明を表示しています。

roedyrustam/vibes-plug752026年10月9日 更新

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

日本語の概要は準備中です。原文の説明を表示しています。

roedyrustam/vibes-plug752026年10月9日 更新

Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm.

日本語の概要は準備中です。原文の説明を表示しています。

roedyrustam/vibes-plug752026年10月9日 更新

roedyrustam のスキルをすべて見る

このスキルの問題を報告する