Skip to main content
skill CX Codex

swift · wendylabsinc — Claude Code skill: Swift patterns and memory safety

Topic notes on Swift configuration, logging, swift-otel, testing and strict memory safety that the agent pulls in when the work touches that code.

no license ★ 64 updated 2026-10-22

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wendylabsinc/claude-skills --skill swift -a claude-code
Open on GitHub

What swift does

SKILL.md points at a references/ folder with five topic files: configuration, swift-log, swift-otel, Swift Testing and debugging. The agent opens the one matching the conversation instead of loading the whole set.

Conventions cover how code is laid out. Types and functions stay internal until something outside needs them. Public members come first, sorted into // MARK: - sections named with gerund phrases; internal and private helpers sit under their own visibility headings. An is-a conformance goes on the type declaration, while an ability protocol such as Codable gets an extension at the bottom of the file. Platform code splits into +macos, +linux and +default files, so adding a protocol method means editing each of them. For Swift 6.2 there is material on .strictMemorySafety() and on Span, which borrows its backing storage and cannot outlive it or cross an async boundary.

Dropping Foundation from a public API is not cosmetic on an embedded target or in a library that must behave the same on Linux and Apple platforms: FoundationEssentials costs 15-40MB. Imports stay internal, with canImport(FoundationEssentials) falling back to Foundation. Linux builds need Glibc or Musl.

What it helps with

  • group public members into // MARK: sections
  • move XCTest cases onto Swift Testing
  • keep Foundation out of a library's public API
  • split platform code into +platform files
  • pick an OTLP backend for a server app

Example prompts for the agent

  • Rewrite the interface selection so it sorts once instead of repeating the same loop.
  • Give every @Test a backtick sentence-style name and switch the assertions to #expect.
  • Check that Span never escapes the closure or crosses an async boundary.

How to install swift

1Skills CLI (Vercel)

npx skills add wendylabsinc/claude-skills --skill swift -a claude-code

2Manually: put the files in place

~/.claude/skills/swift/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/swift/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about swift

How do I install the swift skill in Claude Code?

Run npx skills add wendylabsinc/claude-skills --skill swift -a claude-code. The skill lands at ~/.claude/skills/swift/SKILL.md.

What does the swift skill do?

It hands the agent Swift house rules plus notes on configuration, logging, otel, testing and memory safety. A references/ file is read only when the task touches that area.

Does it cover Linux builds?

Linux is in scope: the notes walk through the Glibc/Musl import switch and the +linux file layout. Terminal debugging on Linux has a file of its own.

Similar skills

All skills for Programming languages →

swift by other authors comes first.

swift margelo A skill for Swift work: type-safe API design, concurrency choices, Apple-platform integration. Fires when edits touch .swift files, async/await, DispatchQueue, or Nitro Modules. CX Codex +1 1,300installs swift Mindrally Guides your agent to write clean Swift and SwiftUI code for iOS, macOS, watchOS, and tvOS using the MVVM pattern. CX Codex +1 748installs swift-testing-expert AvdLee swift-testing-expert coaches your agent through Swift Testing: #expect and #require macros, tags, parameterized tests, and moving a suite off XCTest. CX Codex +1 5,700installs swift-testing Prisma-Labs-Dev Hands your agent a local Swift Testing reference: @Test, @Suite, #expect, #require, parameterized tests, XCTest migration. CX Codex +1 746installs swift-testing-pro Paul Hudson swift-testing-pro — a skill for Claude Code, Codex, Cursor and other agents that writes, audits, and fixes Swift Testing code against Swift 6.2 APIs. Covers async tests, actor isolation, XCTest migration, and new framework features. CX Codex +1 10,900installs guide-swift-testing Prisma-Labs-Dev guide-swift-testing provides patterns and review rules for Swift Testing. Helps write and audit test suites targeting Swift 6.2 concurrency. CX Codex +1 534installs swift-test-creator John Rogers (@johnrogers) swift-test-creator writes unit and integration tests with Swift Testing — @Test, #expect, #require. Meant to run once the feature code is in place. CX Codex ★ 233repo stars swift-lsp official Anthropic swift-lsp connects SourceKit-LSP to Claude Code for Swift code intelligence. It helps the agent parse symbols and navigate .swift files. ★ 47,914repo stars

From the same set26

The whole set →
wendy-cloud-testing The wendy-cloud-testing skill guides cloud-monorepo testing, local stack checks, Swift broker tests, and diagnosis of certificate or device reachability failures. CX Codex +1 ★ 64repo stars wendy-cloud-iterate wendy-cloud-iterate runs the Wendy Cloud dev stack end to end: brings up Docker and the Swift broker, runs integration tests, reads the failures and edits code. CX Codex +1 ★ 64repo stars wendy-certificates wendy-certificates guides certificate issuance, renewal, and revocation through pki-core across the Wendy platform. Helps configure operator credentials, service accounts, and offline USB device entitlements. CX Codex +1 ★ 64repo stars wendy-aaa-interop wendy-aaa-interop is a Claude Code skill that explains how Wendy services divide authentication, authorization, and certificate issuance. It activates for questions about the AAA contract, SPIFFE identities, or signed requests. CX Codex +1 ★ 64repo stars swift-valkey swift-valkey guides coding agents on using Valkey and Redis in Swift with the valkey-swift package, cluster routing, and pub/sub. CX Codex +1 ★ 64repo stars swift-nio Get SwiftNIO guidance for TCP/UDP services, binary protocols, and event-loop issues. Useful when building network code or moving from futures to async/await. CX Codex +1 ★ 64repo stars swift-library-design swift-library-design guides public API design for Swift libraries and frameworks: protocols, result builders, inlining, noncopyable types. CX Codex +1 ★ 64repo stars swift-concurrency swift-concurrency guides your coding assistant through async/await, actor boundaries, and Swift 6 strict concurrency checks without careless @MainActor escapes. CX Codex +1 ★ 64repo stars

Project sponsors

Companies that keep this analytics open