This teaches protocol-based dependency injection for Swift testing, which is the right way to test code that hits the file system, network, or external APIs without actually doing I/O. You define small protocols for each external concern (file access, network calls), inject default implementations in production and mocks in tests. The examples show actors using Sendable protocols with Swift Testing, and the mock implementations let you simulate read errors or missing containers without touching real resources. It's focused on testing boundaries, not over-engineering internal types. If you're writing Swift code that needs deterministic tests for cloud sync, file operations, or API calls, this is the standard pattern.
npx -y skills add affaan-m/ecc --skill swift-protocol-di-testing --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
wshobson/agents
github/awesome-copilot