/sota-skills:sota-swiftfrom SOTA Engineering Skills
Applies Swift 6 engineering rules when writing or auditing Swift code: data-race safety, ARC, error handling, security, and SwiftPM supply chain.
Ships in SOTA Engineering 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.
Expert-level rules for producing and auditing production Swift, on any target. Swift is a
language first and an Apple-platform toolkit second: a Vapor service on Linux, a CLI and an
iOS app share every rule here. Platform concerns route elsewhere: app lifecycle, store
review, Keychain, push and offline sync → sota-mobile; containers → sota-sandboxing; a command-line tool's flags, output and exit codes → sota-cli-ux;
telemetry → sota-observability.
Version floor. swift.org publishes no end-of-life or support-window policy for older Swift releases (searched the swift.org site source, 2026-10-07); the nearest written bar is the Swift Server Workgroup's graduation criteria — "Support new GA versions of Swift within 30d" and a "documented support strategy for at least one previous major version". So pin the toolchain you build with, verify the latest release at swift.org, and treat the language mode as the load-bearing line: Swift 6 mode makes data-race safety a compile error. Feature notes below name the release that introduced each feature.
Package.swift (swift-tools-version: 6.x,
swiftLanguageModes: — swiftLanguageVersions is deprecated since 6.1, SE-0441) and pin the
toolchain for CI (rules/08).async, actors or shared state; security (rules/05) to anything touching
input, files, processes, SQL or the network; server code also reads rules/06.Coverage: every rules/ file's Audit checklist applies in AUDIT mode. Mark one not applicable only with its reason in the report — never skip a file because the thing it checks for is absent, since that absence may be the finding.
Package.swift (tools version, language modes, unsafeFlags, plugins, macros,
binary targets), Package.resolved, CI config, the server framework in use.-warnings-as-errors, SwiftLint, swift build --sbom-spec (6.4+), a dependency scanner
(rules/09), CodeQL's Swift queries where CI has them.sota router.rules/03 §1 inside this skill)| Severity | Swift examples |
|---|---|
| Critical | SQL built with \(unsafeRaw:) from request input; certificateVerification: .none on a production client; /bin/sh -c with interpolated input; NSKeyedUnarchiver.unarchiveObject(with:) on untrusted bytes |
| High | data race behind nonisolated(unsafe) / @unchecked Sendable on reachable state; unauthenticated route group missing its guard middleware; session cookies left at Vapor's isSecure: false default; debug build shipped (raw error text to clients); plugin/macro dependency unreviewed on a Linux CI that runs them unsandboxed |
| Medium | try!/!/as! on input-derived values; Double for money; unbounded AsyncStream buffer; Task.detached without reason; ReDoS-prone regex on input |
| Low | try? on a write path; any P on a hot path; missing final; IUO outside two-phase init |
file:line | rule | severity | effort | fix — the router's canonical row; expand each
surviving finding to the router's rules/03 §2 evidence block.
| File | Read this when… |
|---|---|
| rules/01-idioms-and-errors.md | Writing any Swift: value types vs classes, enums, optionals and force-unwraps, throws/typed throws/try?, integer overflow and money, dates and clocks |
| rules/02-api-design.md | Designing a module or package API: protocols vs generics (some/any), access control (public/package), library evolution and @frozen, deprecation, SemVer |
| rules/03-concurrency.md | Any async, actor, Task, Sendable or shared mutable state: Swift 6 mode, isolation escape hatches, reentrancy, structured concurrency, cancellation and timeouts, streams and backpressure |
| rules/04-memory-and-unsafe.md | Retain cycles, weak/unowned, resource ownership (defer, ~Copyable), unsafe pointers, C interop, strict memory safety |
| rules/05-security.md | Input, files, processes, SQL, HTTP, crypto, decoding, regex, logs, secrets — the language-level security surface |
| rules/06-server-side.md | Vapor/Hummingbird/SwiftNIO services: auth middleware order, cookie and session defaults, release vs debug, body limits, error responses, Linux Foundation |
| rules/07-performance.md | Profiling first, allocations, ARC traffic, existentials, copy-on-write, benchmarks in CI |
| rules/08-tooling-ci-testing.md | Toolchain pinning, warnings-as-errors, SwiftLint/swift-format and every suppression, Swift Testing/XCTest, sanitizers, flaky tests |
| rules/09-supply-chain.md | Package.resolved, version requirements, registries and package identity, plugins and macros (build-time code), binary targets, SBOM, vulnerability scanning, adopting a package |
nonisolated(unsafe),
@unchecked Sendable, @preconcurrency and unowned(unsafe) carries a comment naming the
invariant that makes it safe.!, try! or as! on values derived from input; guard let/throw instead.throws on public APIs; typed throws only inside a closed boundary.Task has an owner that cancels it;
long loops check cancellation.self capture [weak self].\(unsafeRaw:)/unsafeSQL: with input; processes
take an argument array, never /bin/sh -c.swift build -c release); production behaviour never depends on a
debug build's #if DEBUG or Vapor's compile-time isRelease.Package.resolved and resolve with --force-resolved-versions in CI; review
plugins and macros as build-time code — on Linux they run unsandboxed.rules/01-idioms-and-errors.md (opens in a new tab)rules/02-api-design.md (opens in a new tab)rules/03-concurrency.md (opens in a new tab)rules/04-memory-and-unsafe.md (opens in a new tab)rules/05-security.md (opens in a new tab)rules/06-server-side.md (opens in a new tab)rules/07-performance.md (opens in a new tab)rules/08-tooling-ci-testing.md (opens in a new tab)rules/09-supply-chain.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub martinholovsky/sota-skills --plugin sota-skills2 plugins ship this exact skill · first indexed Nov 2, 2026
43 skills in this plugin
/sotaMaster router for the SOTA engineering skills library. Use this skill whenever the user asks to build, design, implement, refactor, harden, optimize, review, or audit an application, service, or codebase and the request spans more than one domain — or when you are unsure which specific sota-* skill applies. Also use when working on a codebase you do not own: reviewing a pull request or diff, responding to code review, evaluating someone else's patch, or preparing an upstream contribution — including mid-session, once you are already reading source, a diff, or CI config. It maps the task (build or audit mode) to the right domain and language skills (Rust, Go, C/C++, JVM, Python, JS/TS, .NET/C#, PHP, Ruby, Swift). Trigger keywords: SOTA, best practices, audit my code, security review, compliance, hardening, prod readiness, code quality, pull request, PR review, review comment, maintainer feedback, patch, diff, upstream, contribute, merge request./sota-api-designState-of-the-art API design and audit guidance (2026) covering REST/HTTP, GraphQL, gRPC, WebSockets/SSE/realtime, webhooks, versioning/evolution, and API security/operations. Use when designing or building any API surface (endpoints, schemas, protos, realtime channels, webhook senders/receivers) AND when auditing/reviewing existing APIs for correctness, evolvability, security, and operational robustness. Not for browser UI, rendering, or client-framework concerns — use sota-web-frameworks or sota-frontend-design. Trigger keywords: API, REST, GraphQL, gRPC, endpoint, websocket, SSE, realtime, WebRTC, webhook, versioning, OpenAPI, pagination, idempotency, rate limit, problem+json, protobuf, deprecation.Other plugins' skills for the same job