swift-tdd-workflow

swift-tdd-workflow is a skill for Claude Code from OkminLee/everything-claude-code-ios. It costs 43 tokens per session (3,904 once invoked), scanned B, original, MIT.

A test-driven development workflow for Swift applications, including iPhone and iPad apps. Test-driven development, or TDD, means writing tests before the code they check, using XCTest and XCUITest for unit, integration, and user-interface tests.

In plain words
What is it for?
It helps create tests and implementation for SwiftUI or UIKit features, API and database integrations, business logic, navigation, and complete user flows.
Why use it?
It makes new features, bug fixes, refactors, and integrations prove their behavior through tests, including error and edge cases.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the everything-claude-code-ios plugin — 5 skills, 10 commands, 9 agents, 5 hooks, 4 MCP servers shipped together

Good fit It helps create tests and implementation for SwiftUI or UIKit features, API…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okminlee/everything-claude-code-ios/swift-tdd-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OkminLee/everything-claude-code-ios --skill swift-tdd-workflow
Clone the repo
git clone --depth 1 https://github.com/OkminLee/everything-claude-code-ios

Made for: Claude Code.

Or install everything-claude-code-ios, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 9 agents, 5 hooks, 4 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swift-tdd-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/okminlee/everything-claude-code-ios/swift-tdd-workflow.svg)](https://agentmods.dev/skills/okminlee/everything-claude-code-ios/swift-tdd-workflow)
Your own site
<a href="https://agentmods.dev/skills/okminlee/everything-claude-code-ios/swift-tdd-workflow"><img src="https://agentmods.dev/badge/skills/okminlee/everything-claude-code-ios/swift-tdd-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,904 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.03904
Opus 5 $0.00022 $0.01952
Sonnet 5 $0.00009 $0.00781
Haiku 4.5 $0.00004 $0.00390

Measured 7d ago against content hash ab4bcebbf846, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

swift-tdd-workflow scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

run: sudo xcode-select -s /Applications/Xcode_15.2.app
skills/swift-tdd-workflow/SKILL.md · 695 lines

How it starts

The opening of the file, as written. The whole thing — 695 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swift Test-Driven Development Workflow

This skill ensures all iOS development follows TDD principles with comprehensive test coverage.

When to Activate

  • Writing new features or functionality
  • Fixing bugs or issues
  • Refactoring existing code
  • Adding API integrations
  • Creating new SwiftUI views or UIKit components

Core Principles

1. Tests BEFORE Code

ALWAYS write tests first, then implement code to make tests pass.

2. Coverage Requirements

  • Minimum 80% coverage (unit + integration + UI)
  • All edge cases covered
  • Error scenarios tested
  • Boundary conditions verified

3. Test Types

Unit Tests (XCTest)
  • Individual functions and methods
  • ViewModels and business logic
  • Pure functions
  • Helpers and utilities
Integration Tests
  • API client operations
  • Database operations
  • Service interactions
  • External API calls
UI Tests (XCUITest)
  • Critical user flows
  • Complete workflows
  • Screen navigation
  • UI interactions

TDD Workflow Steps

Step 1: Write User Stories

As a [role], I want to [action], so that [benefit]

Example:
As a user, I want to search for markets semantically,
so that I can find relevant markets even without exact keywords.

Step 2: Generate Test Cases

For each user story, create comprehensive test cases:

import XCTest
@testable import MyApp

final class MarketSearchServiceTests: XCTestCase {

    var sut: MarketSearchService!
    var mockAPIClient: MockAPIClient!

    override func setUp() {
        super.setUp()
        mockAPIClient = MockAPIClient()
        sut = MarketSearchService(apiClient: mockAPIClient)
    }

    override func tearDown() {
        sut = nil
        mockAPIClient = nil
        super.tearDown()
    }

    func test_search_returnsRelevantMarkets() async throws {
        // Test implementation
    }

    func test_search_handlesEmptyQueryGracefully() async throws {
        // Test edge case
    }

    func test_search_fallsBackToLocalSearch_whenNetworkUnavailable() async throws {
        // Test fallback behavior
    }

    func test_search_sortsByRelevanceScore() async throws {
        // Test sorting logic
    }
}

Read the full file on GitHub · 695 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 695 lines · 43 tokens per session scan B ab4bcebbf846

Subscribe to this mod's changes

swift-tdd-workflow is a skill published in the GitHub repository OkminLee/everything-claude-code-ios (58 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 3,904 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

android-ui-journey-testing

XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.

sickn33/agentic-awesome-skills · 27 tokens

android_ui_verification

Automated end-to-end UI testing and verification on an Android Emulator using ADB.

sickn33/agentic-awesome-skills · 22 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 127 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

eas-simulator

EAS service (paid). Run and control a user's app on a remote iOS/Android simulator hosted on EAS cloud. Read before running any eas simulator: commands - it has the current syntax for this experimental API. Use whenever the user needs a simulator they can't run locally - 'run my app on a cloud simulator', 'use eas…

expo/skills · 249 tokens

test-native-extension

Validate a third-party control repo across four automated layers plus one printed manual recipe. Layer 1 asserts native-source structure (Android getName() and iOS +moduleName to manifest nativeModule; @ReactMethod / RCTEXPORTMETHOD to methods; no @ReactModule) plus load/init readiness (ReactPackage public no-arg…

microsoft/power-platform-skills · 211 tokens