openapi-integration

Generate OpenAPI specs from Zod schemas and sync them to a Swift iOS client.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/rxtech-lab/agent-skills --skill openapi-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openapi-integration
Source: https://github.com/rxtech-lab/agent-skills/tree/main/skills/openapi-integration
Command: npx skills add https://github.com/rxtech-lab/agent-skills --skill openapi-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bun, next-openapi-gen, and includes scripts (resource) and references (resource) components.

What problem does it solve?

OpenAPI integration between a Next.js backend and a Swift iOS client enables type-safe API communication, automated spec generation, and synchronized contracts across platforms.

Core Features & Use Cases

  • OpenAPI spec generation from Zod schemas using next-openapi-gen
  • Swift OpenAPI generator configuration for an iOS package
  • Create or update API routes with JSDoc annotations (e.g., @openapi tags) to generate comprehensive docs
  • Create Zod schemas for API contracts
  • Sync the OpenAPI spec between backend and iOS during development and release cycles
  • Build Swift service layers wrapping generated API clients for clean app architecture
  • Troubleshoot OpenAPI generation or Swift type issues during integration

Quick Start

Install required tooling, generate the OpenAPI spec from Zod schemas, and start integrating the Swift client.

Frequently Asked Questions about openapi-integration

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

FAQPage Schema
How do I generate OpenAPI specs from Zod schemas in Next.js?

To sync an OpenAPI spec between Next.js and Swift, you generate the spec from Zod schemas and configure the Swift OpenAPI generator to build a type-safe client package for iOS.

What is the best way to set up a Swift OpenAPI generator for an iOS package?

The best way to set up a Swift OpenAPI generator involves configuring an iOS package to consume your OpenAPI spec, producing native Swift types and an API client for direct integration.

Do I need JSDoc annotations to generate OpenAPI documentation with next-openapi-gen?

Yes, annotating API routes with JSDoc @openapi tags is required to generate comprehensive OpenAPI documentation and accurate specs using next-openapi-gen.

Can I build Swift service layers wrapping generated OpenAPI clients?

Yes, you can build Swift service layers wrapping generated API clients, creating a clean app architecture that isolates network logic from your iOS views.

How do I troubleshoot OpenAPI generation or Swift type issues during integration?

Troubleshooting OpenAPI generation or Swift type issues involves validating Zod schema definitions, checking JSDoc annotations, and verifying Swift OpenAPI generator package configuration.

Does Bun work with next-openapi-gen for OpenAPI integration?

Yes, Bun works with next-openapi-gen as a dependency manager and runtime to install tooling, generate the OpenAPI spec from Zod schemas, and integrate the Swift client.