Design, generate, implement, test, and diagnose Swift OpenAPI and RPC-style server contracts using Swift OpenAPI Generator, OpenAPIRuntime, OpenAPIHummingbird, OpenAPIVapor, SwiftPM plugins, Dash docsets, and official documentation.
Ships in server-side-swift. 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.
None: SKILL.md is the whole skill.
Build or diagnose contract-first server-side Swift work without mixing up three different things:
APIProtocol implementation on a real Hummingbird or Vapor appFor RPC-style services, first identify whether the user really means OpenAPI-backed HTTP operations, JSON-RPC over HTTP, gRPC, MCP-style tool calls, or a framework-specific client/server contract. Keep plain HTTP routes as the default when the service does not need a stronger protocol contract.
Package.swift, openapi-generator-config.yaml, generated sources, or SwiftPM plugin commands.APIProtocol, Operations, Components, OpenAPIRuntime, OpenAPIHummingbird, or OpenAPIVapor.Prefer repo-local Swift files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Swift package DocC first, then official online docs when Dash/local coverage is missing or stale:
~/Library/Application Support/Dash/Swift DocSets/.appleswiftopenapigenerator, appleswiftopenapiruntime, hummingbirdprojectswiftopenapihummingbird, vaporswiftopenapivapor, hummingbirdprojecthummingbird, vaporvapor, and swiftlangswiftpackagemanager.Contents/Resources/docSet.dsidx with sqlite3 and search for symbols or guide titles before falling back to the web.Do not claim current generator, transport, or package-plugin behavior from memory when current official docs or local Dash docsets can be checked.
Package.swiftopenapi.yaml, openapi.yml, or openapi.jsonopenapi-generator-config.yamlAPIProtocol, Operations, Components, Client, and transport importsFor OpenAPI-backed work:
operationIdFor RPC-style work:
When adding Apple's Swift OpenAPI Generator to an existing package:
Package.swiftOpenAPIRuntime and the selected transport product to the target dependenciesopenapi-generator-config.yaml for generated client, server, types, or access modifier choicesBefore editing Package.swift, inspect the current package tools version, target names, dependency style, and whether the repo pins exact versions, branches, or ranges.
Use OpenAPIHummingbird when the service already uses Hummingbird or when Hummingbird is the chosen server framework.
For projects generated by current hb init Lambda + OpenAPI templates, keep the distinction sharp:
OpenAPIHummingbird registers generated APIProtocol handlers on the Hummingbird Router.hummingbird-lambda adapts that Hummingbird router to the selected AWS Lambda event type, such as API Gateway V2.swift-openapi-lambda is a separate valid Swift OpenAPI Lambda transport, but it is not the transport generated by the Hummingbird template.APIProtocol implementation transport-neutral and put server or Lambda differences in thin executable or adapter targets.Typical shape:
RouterAPIProtocolregisterHandlers on the Hummingbird router or documented transportApplication through the repository's existing Hummingbird lifecycleFor request-context access from generated handlers, check current OpenAPIHummingbird docs before implementing. The transport documentation has used a task-local middleware pattern so generated endpoints can reach the Hummingbird request context without turning the generated protocol implementation into a generic dependency container.
Hand off to hummingbird-server-workflow for route grouping, middleware order, request contexts, Hummingbird testing, service lifecycle, and deployment details that are not specific to OpenAPI generation.
Use OpenAPIVapor when the service already uses Vapor or when Vapor is the chosen server framework.
Typical shape:
ApplicationVaporTransport with the app or routes builderAPIProtocolregisterHandlers on the transportswift run App serve, app.execute(), or documented command pathFor request access from generated handlers, check current OpenAPIVapor docs before implementing. The transport documentation includes a request-injection pattern using swift-dependencies; only add that dependency when the service genuinely needs direct Vapor Request access inside generated handlers.
Hand off to vapor-server-workflow for controllers, middleware, Fluent migrations, environment setup, app commands, and deployment details that are not specific to OpenAPI generation.
Prefer this order:
swift build or swift test.curl only when runtime binding, headers, streaming, middleware, or end-to-end server behavior cannot be proven through tests.When validation fails, name the exact contract element, generated symbol, package target, or transport registration point that failed. Include the likely cause, such as a missing operationId, unsupported schema shape, stale generated output assumption, wrong target plugin configuration, missing transport dependency, or framework middleware order.
Return:
Contract shape: OpenAPI document path, generator config, generated Swift surface, selected transport, and handler owner.Docs used: Dash docsets, GitHub repositories, SPI docs, or official framework docs consulted.Command path: exact SwiftPM, generator, validation, test, run, or HTTP commands run or recommended.Behavior: operations, inputs, outputs, errors, transport registration, framework handoffs, and RPC-fit decision.Validation: spec checks, build, tests, server run, or HTTP check results.Handoffs: Vapor, Hummingbird, SwiftPM, gRPC, MCP, OpenAPITools CLI, client generation, deployment, or observability follow-up when the task crosses this skill's boundary.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/server-side-swift:openapi-rpc-workflowfrom server-side-swift
npx claudepluginhub gaelic-ghost/socket --plugin server-side-swift13 skills in this plugin
/app-sync-workflowPlan, implement, test, and diagnose app sync contracts in server-side Swift services, including incremental change feeds, cursor or token semantics, idempotent writes, conflict handling, optimistic concurrency, deleted-record/tombstone behavior, background job handoffs, API-shape coordination, and Vapor or Hummingbird integration./auth-authorization-workflowPlan, implement, test, and diagnose server-side Swift authentication and authorization for Vapor and Hummingbird services, including Basic and Bearer auth, JWT, sessions, OAuth or OIDC handoffs, password hashing, token lifecycle, middleware placement, request context, route protection, authorization policy, security-sensitive tests, and deployment secret handoffs./Other plugins' skills for the same job