akshaypimprikar

iOS Swiftdata Testing Agent Skill — Testing skill for Claude Code

Testing community

Agent skill: SwiftData test patterns (ModelContainer fixtures, mock repos, @ModelActor tests, Decimal money assertions, import-hash dedup).

How to install iOS Swiftdata Testing Agent Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open akshaypimprikar/ios-swiftdata-testing-agent-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What iOS Swiftdata Testing Agent Skill does

Agent skill: SwiftData test patterns (ModelContainer fixtures, mock repos, @ModelActor tests, Decimal money assertions, import-hash dedup).

Alternatives in Testing

  • Test Runner — Run Python tests with pytest, unittest, or other testing frameworks 23.4k ★
  • Test Optimization Patterns — テスト実行速度を改善するためのリファクタリングパターンとベストプラクティス集 974 ★
  • RocketSimApp — RocketSim — 30+ tools for Xcode's iOS Simulator 791 ★

README

SwiftData Testing Agent Skill

Designed for iOS 17 and later. Designed for Swift 6.0 and later. Listed in Swift-Agent-Skills GitHub: @akshaypimprikar

An agent skill that helps AI coding assistants like Claude Code, Codex, Cursor, and Gemini write correct SwiftData **tests** — in-memory `ModelContainer` fixtures, mock repository patterns for ViewModel tests, `@ModelActor` test isolation, `Decimal` money-value assertions, and content-hash dedup testing.

This is deliberately scoped to testing, not general SwiftData API usage — for that, see [SwiftData Pro](https://github.com/twostraws/SwiftData-Agent-Skill) by Paul Hudson, which this skill is designed to complement rather than duplicate.

Patterns here were extracted from a production SwiftUI + SwiftData personal finance app (multi-agent-pipeline-built, full unit/integration/UI test suite), not written speculatively — each rule exists because a real test broke without it.

Find more agent skills for Swift and Apple platform development at [Swift Agent Skills](https://github.com/twostraws/Swift-Agent-Skills).

Installing

Clone this repository and copy `swiftdata-testing/` into your project's or global `.claude/skills/` (or equivalent) directory:

git clone https://github.com/akshaypimprikar/ios-swiftdata-testing-agent-skill.git
cp -r ios-swiftdata-testing-agent-skill/swiftdata-testing ~/.claude/skills/

If you're using Xcode, watch the YouTube video on [How to Install and