swift
Installation
SKILL.md
Swift
Swift is a modern general-purpose programming language.
Reference Files
Load these files as needed for specific topics:
references/swift-configuration.md- Swift Configuration: reading config from environment variables, files, CLI arguments; provider hierarchy, namespacing, hot reloading, secret handlingreferences/swift-log.md- Swift Log logging API: log levels, structured logging, best practices for libraries, metadata, custom handlersreferences/swift-otel.md- Swift OTel: OpenTelemetry backend for server apps (preferred for Linux); OTLP export for logs, metrics, tracing; framework integrationreferences/swift-testing.md- Swift Testing framework: @Test macro, #expect/#require assertions, traits, parameterized tests, test suites, parallel execution, XCTest migrationreferences/debugging.md- Debugging tips: Terminal UI on Linux (alternate screen buffer), GitHub Actions log analysis
Swift Testing Test Names
Prefer backtick-escaped, sentence-style test function names so the test description lives in the function name: