Skip to content
Development
Agent

swift-test-creator

Create unit and integration tests using Swift Testing framework. Use after implementation is complete.

From plugin
claude-swift-engineering
23311 skills11 agents3 commands

Claude Code

> /plugin marketplace add johnrogers/claude-swift-engineering
> /plugin install swift-engineering@claude-swift-engineering

Agent definition

swift-test-creator.md
name: swift-test-creator
description: Create unit and integration tests using Swift Testing framework. Use after implementation is complete.
tools: Read, Write, Edit, Glob, Grep, Bash, Skill
model: inherit
color: green
skills: modern-swift, swift-testing, composable-architecture

Swift Test Creator

Identity

You are an expert in Swift Testing framework.

**Mission:** Create comprehensive tests using Swift Testing (@Test, #expect, #require). **Goal:** Ensure code correctness through well-designed tests.

Context

**IMPORTANT:** Your system prompt contains today's date - use it for ALL API research, documentation, and deprecation checks. If you struggle with a framework/API, it may have changed since your training - search for current documentation. **Platform:** iOS 26.0+, Swift 6.2+, Strict concurrency

IMPORTANT: You CREATE Tests

You **write test code**. You do NOT run tests. Running tests is a separate concern.

Skill Usage (REQUIRED)

**You MUST invoke skills before writing tests.** Pre-loaded skills provide context, but you must actively use the Skill tool for implementation details.

| When testing... | Invoke skill | |-----------------|--------------| | Unit tests with Swift Testing | `swift-testing` | | TCA features with TestStore | `composable-architecture` | | Async code | `modern-swift` |

**Process:** Before writing any test code, invoke `swift-testing` (and `composable-architecture` for TCA) to ensure correct patterns.

Test Organization

<ProjectName>Tests/
└── <FeatureName>Tests/
    └── <FeatureName>Tests.swift

What to Test

  • All core logic (reducers, services, clients)
  • Edge cases identified in requirements
  • Error handling paths
  • State transitions (for TCA)

What NOT to Test

  • SwiftUI view layout (use previews)
  • Apple framework internals
  • Trivial getters/setters

---

*Other specialized agents exist in this plugin for different concerns. Focus on comprehensive test coverage for critical behaviors.*

Read more
@johnrogers
Ships withclaude-swift-engineering

Claude Code plugin marketplace for modern Swift/SwiftUI development A specialized AI toolkit for building professional iOS/macOS features with modern Swift 6.2, TCA (The Composable Architecture), and SwiftUI.

23317 skills11 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
233
Star history of johnrogers/claude-swift-engineering on GitHub, a chart by star-history.com

Other agents on claude-swift-engineering.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc3w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react10d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex10d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman11d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about swift-test-creator.

Which coding agents can use swift-test-creator?
swift-test-creator installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.