Designs and implements app sync contracts for server-side Swift services using Vapor or Hummingbird, covering change feeds, cursors, idempotent writes, conflict handling, and tombstones.
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.
Design, implement, test, or diagnose server-side sync behavior without mixing the sync contract into unrelated routing, persistence, OpenAPI, RPC, auth, or background-job work.
The practical decision is how clients and the server agree on state over time: what changed, what the client has already seen, how writes avoid duplication, how conflicts are detected, how deletions are represented, and how both sides recover after retries, offline edits, or partial failure.
Use repo-local Swift files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Swift package DocC, and then official docs or source when Dash/local coverage is missing or stale. Check one of those source-specific paths before claiming framework, protocol, or HTTP behavior:
Use OpenAPI, RPC, persistence, auth, observability, deployment, or Apple-platform docs when the sync design depends on generated contracts, transport semantics, schema, identity, logging, background jobs, deployment guarantees, or client behavior.
Package.swiftKeep sync contracts boring and explicit.
Name:
Do not expose database row order as the sync order unless it is intentionally stable, indexed, and documented.
Opaque cursors are usually safer than client-parsed cursors because the server can evolve internal ordering. If cursors expire, define the exact restart behavior.
Assume clients, proxies, and background tasks may retry after timeouts or network loss.
For write APIs:
Do not rely on clients "not retrying" as a correctness rule.
A conflict exists when a client writes based on state the server no longer accepts.
Use a clear mechanism:
Return conflict information that lets the client decide what to do next without leaking data from resources the actor cannot access.
Use 409 Conflict for domain conflicts and 412 Precondition Failed for failed HTTP preconditions when the API uses conditional request semantics. Keep the repository's existing status-code style when it already documents one.
Deleted state must be syncable.
Decide:
Do not hard-delete records from sync history before all active clients can learn about the deletion unless the app has a full-resync fallback.
Use background jobs when sync writes trigger expensive side effects that should not block the request.
Use streaming, WebSockets, or server-sent events only when polling or ordinary incremental sync is not enough. Streaming transports still need replay or catch-up behavior after disconnects.
Hand transport-specific decisions to openapi-rpc-workflow when the main question is API style, generated contracts, JSON-RPC, gRPC, MCP-style tools, WebSockets, or plain HTTP.
Use persistence-workflow when the main risk is schema, indexes, migrations, query performance, or transaction boundaries.
Every sync query and write must be scoped to the authenticated actor and tenant.
Test:
Use auth-authorization-workflow for identity and policy design.
Use observability-tracing-workflow for safe sync diagnostics, including cursor names, page counts, operation IDs, conflict counts, retry counts, and latency. Do not log raw cursors if they contain sensitive state.
Choose tests that prove sync correctness:
Prefer deterministic fixtures with explicit clocks, IDs, and revision values when the repository's test setup allows it.
Use vapor-server-workflow or hummingbird-server-workflow for framework route, middleware, request context, and handler structure.
Use openapi-rpc-workflow when the sync API contract, generated types, or transport style is the primary work.
Use persistence-workflow for models, migrations, query design, transactions, indexes, and data-retention behavior.
Use auth-authorization-workflow for identity, tenant scoping, permissions, tokens, and session behavior.
Use observability-tracing-workflow for logs, metrics, traces, conflict counters, and privacy-safe diagnostics.
Use deployment skills when background workers, queue processes, or hosted runtime config must be deployed.
Return:
Sync shape: resources, routes or transport, cursor, ordering, idempotency, conflict model, delete model, jobs, auth scope, and tests.Docs used: HTTP, Vapor, Hummingbird, OpenAPI/RPC, persistence, auth, observability, jobs, deployment, or Apple-platform docs consulted.Behavior: fetch, write, retry, conflict, delete, pagination, retention, authorization, and background work.Command path: exact build, test, migrate, run, job, or HTTP commands run or recommended.Validation: tests, migration checks, manual HTTP checks, job checks, or diagnostic evidence.Handoffs: framework, OpenAPI/RPC, persistence, auth, observability, background jobs, deployment, or client 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
13 skills in this plugin
/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./docker-workflowAuthor and diagnose Dockerfile and OCI runtime definitions for server-side Swift while GitHub Actions exclusively builds, tests, publishes, and deploys Linux images./fly-io-deployment-workflowConfigure a GitHub Actions-only Fly.io deployment adapter for an exact prebuilt Swift service image, with protected environments, scoped credentials, health verification, and rollback./hummingbird-server-workflowPlan, build, run, test, and diagnose Hummingbird components under Services/ in the canonical product workspace. Hand fresh component creation and guidance alignment to the workspace service adapter./leaf-rendered-web-workflowPlan, implement, test, and diagnose Leaf-rendered Vapor sites and HTML email with typed contexts, layouts, partials, custom tags, escaping, accessibility, assets, caching, and rendering tests./observability-tracing-workflowPlan, implement, test, and diagnose observability for server-side Swift services, including Swift Logging, Swift Metrics, Swift Distributed Tracing, OpenTelemetry handoffs, request correlation, trace propagation, structured log fields, metric naming, health signals, privacy-safe diagnostics, and Vapor or Hummingbird integration./server-side-swift:app-sync-workflowfrom server-side-swift
npx claudepluginhub gaelic-ghost/socket --plugin server-side-swiftOther plugins' skills for the same job