Back to Skills

swift-protocol-di-testing

affaan-m
Updated 3 days ago
7 views
77,317
9,709
77,317
View on GitHub
Testingtestingapi

About

This Swift skill enables testable code through protocol-based dependency injection for external dependencies like file systems and network APIs. It uses focused protocols with Swift Testing to create mock implementations for deterministic testing without I/O. Developers should activate it when writing Swift code that needs to test error handling or work across different environments like apps, tests, and SwiftUI previews.

Quick Install

Claude Code

Recommended
Primary
npx skills add affaan-m/everything-claude-code -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/affaan-m/everything-claude-code
Git CloneAlternative
git clone https://github.com/affaan-m/everything-claude-code.git ~/.claude/skills/swift-protocol-di-testing

Copy and paste this command in Claude Code to install this skill

GitHub Repository

affaan-m/everything-claude-code
Path: docs/zh-CN/skills/swift-protocol-di-testing
0
ai-agentsanthropicclaudeclaude-codedeveloper-toolsllm

Related Skills

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

cloudflare-cron-triggers

Testing

This skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.

View skill

webapp-testing

Testing

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

View skill

finishing-a-development-branch

Testing

This skill helps developers complete finished work by verifying tests pass and then presenting structured integration options. It guides the workflow for merging, creating PRs, or cleaning up branches after implementation is done. Use it when your code is ready and tested to systematically finalize the development process.

View skill