Generates, integrates, tests, and diagnoses Swift OpenAPI clients for Apple-platform apps and Swift packages using Swift OpenAPI Generator and URLSession transport.
Ships in apple-dev-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add or diagnose generated Swift OpenAPI clients in Apple-platform code without confusing app-side networking with server-side transport work.
The practical decision is where the OpenAPI document lives, which app or package target runs Swift OpenAPI Generator, how the generated Client is configured with OpenAPIURLSession, how calls are isolated from UI state, and which tests prove request, response, auth, cancellation, and error behavior.
swift-openapi-generator, swift-openapi-runtime, or swift-openapi-urlsession dependencies for client generation.openapi.yaml, openapi.json, or openapi-generator-config.yaml into an app-supporting package or target.Client, APIProtocol, Operations, Components, response enums, content-type cases, undocumented responses, or transport errors.server-side-swift:openapi-rpc-workflow when available.URLSession networking with no OpenAPI contract.Start with the Apple and Swift docs gate:
explore-apple-swift-docs for Apple framework behavior, URLSession, Foundation networking, Xcode package integration, Swift concurrency, Observation, SwiftUI, UIKit, AppKit, or platform lifecycle behavior.appleswiftopenapigenerator, appleswiftopenapiruntime, appleswiftopenapiurlsession, swiftlangswiftpackagemanager, and Apple Foundation or platform docs when available.Client, APIProtocol, ClientTransport, and URLSessionTransport shape.OpenAPIURLSession transport and platform support.Do not claim current generator, URLSession transport, package-plugin, or Apple framework behavior from memory when current docs can be checked.
Package.swift.xcodeproj, .xcworkspace, package dependencies, and target membership when presentopenapi-generator-config.yamlopenapi-generator-config.yamlWhen adding Swift OpenAPI client generation:
swift-openapi-generator, swift-openapi-runtime, and swift-openapi-urlsessionOpenAPIGenerator plugin to the target that owns the OpenAPI documentOpenAPIRuntime and OpenAPIURLSession products to the generated-client targetopenapi-generator-config.yaml to generate types and clientClient with a documented server URL and URLSessionTransportFor Xcode app projects, preserve project ownership. If package dependency or target membership changes require Xcode-aware mutation, hand off to xcode-build-run-workflow rather than editing .pbxproj casually.
For Swift package clients, keep Package.swift readable and intentional. Prefer SwiftPM commands or focused manifest edits that match the existing package style.
When connecting generated clients to app code:
.undocumented responses with a readable error pathCancellationError behind generic networking failuresWhen an API contract change is needed, stop and surface that as server or contract work. Do not quietly patch the generated client around a mismatched server contract.
Choose the smallest useful check:
swift build to force package-plugin generation and type checkingswift test for package-level client wrappers, request mapping, response handling, and fake transport behaviorPrefer fake ClientTransport or app-service seams for tests when the behavior does not require a real network. Use real URLSessionTransport checks only when Foundation networking behavior is the thing being verified.
When validation fails, name the exact OpenAPI operation, generated symbol, target, package plugin, transport, response case, or Apple framework surface involved. Include the likely cause, such as a missing config file, wrong target plugin placement, stale operation ID, unsupported schema shape, missing OpenAPIURLSession dependency, target membership drift, or an app lifecycle call running from the wrong task boundary.
Return:
Client shape: OpenAPI document, generator config, target ownership, generated symbols, transport, and app-facing owner.Docs used: Apple, Swift, Dash, GitHub, or SwiftPM docs consulted.Command path: exact SwiftPM, Xcode, generator, validation, test, run, or HTTP commands run or recommended.Behavior: operations, inputs, outputs, auth, cancellation, errors, UI handoff, and contract-change decisions.Validation: build, test, app run, fake transport, real HTTP, or skipped checks.Handoffs: server-side OpenAPI/RPC, Xcode build/run, Xcode testing, Swift package, docs exploration, persistence, or observability follow-up when the task crosses this skill's boundary.Package.resolved.What SKILL.md sets; muted values are Claude Code's defaults
/apple-dev-skills:swift-openapi-client-workflowfrom apple-dev-skills
npx claudepluginhub gaelic-ghost/socket --plugin apple-dev-skills65 skills in this plugin
/app-extension-architecture-workflowRoute Apple app-extension work across extension points, targets, isolation, entitlements, shared containers, lifecycle, privacy, testing, signing, distribution, and handoffs. Use when the extension point is not settled./app-intents-workflowDesign, implement, validate, and troubleshoot App Intents, App Entities, App Shortcuts, and system-surface integrations. Use when exposing a focused app action or content to Siri, Spotlight, Shortcuts, widgets, controls, Live Activities, or hardware interactions./appkit-app-architecture-workflowOther plugins' skills for the same job