Swift Testing Expert
Guidance for writing Swift Testing tests and migrating XCTest suites
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 21, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · a5c7d8c
Fetched SKILL.md at swift-testing-expert/ and spot-checked 3 of 9 reference files (expectations, migration-from-xctest, parameterized-testing) — all HTTP 200; frontmatter parses with name+description. Output test: gave the same XCTest fixture (3 near-identical discount test methods + a force-unwrapped user lookup) a baseline 1:1 migration vs a skill-followed one. Concrete diffs: baseline kept three separate @Test methods and preserved `#expect(user != nil)` then `user!`; following the skill's rule 5 and migration step 4 collapsed the three into one @Test(arguments:) parameterized test, and rule 2 / the try-XCTUnwrap mapping replaced the force-unwrap with `try #require(...)` in a throwing test. Both artifacts saved to scratchpad. No security smells; no scripts, curl|sh, or injection text.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 7/10
- Docs & honesty 5/5
What Swift Testing Expert does
A guidance skill for Swift Testing: it steers test structure, #expect/#require usage, traits/tags, parameterized tests, parallel-safe isolation, async waiting, and incremental XCTest-to-Swift-Testing migration via nine topic reference files. Triggers when writing new Swift tests, modernizing XCTest suites, debugging flaky or parallel tests, or reviewing Swift test quality on Apple-platform or Swift-server projects.
How to install Swift Testing Expert
git clone --depth 1 https://github.com/AvdLee/Swift-Testing-Agent-Skill.git /tmp/swift-testing-expert-src
mkdir -p ~/.claude/skills
cp -R /tmp/swift-testing-expert-src/swift-testing-expert ~/.claude/skills/swift-testing-expert
# SKILL.md lands at ~/.claude/skills/swift-testing-expert/SKILL.md with its references/ dir.
# Pure guidance skill, no external deps/scripts to run.
# Plugin-marketplace alternative:
# /plugin marketplace add AvdLee/Swift-Testing-Agent-Skill
# /plugin install swift-testing-expert@swift-testing-agent-skill
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Swift Testing Expert
-
/swift-testing-expertGuidance for writing Swift Testing tests and migrating XCTest suites
It also activates on plain-language prompts like these:
-
Migrate this XCTest suite to Swift Testing -
Write parameterized tests using #expect macros -
Debug this flaky Swift test
Frequently asked questions
- Is the Swift Testing Expert skill free?
- Yes. The skill itself is free from AvdLee/Swift-Testing-Agent-Skill. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Swift Testing Expert work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 21, 2026. Verdict: Tested · Works. Fetched SKILL.md at swift-testing-expert/ and spot-checked 3 of 9 reference files (expectations, migration-from-xctest, parameterized-testing) — all HTTP 200; frontmatter parses with name+description. Output test: gave the same XCTest fixture (3 near-identical discount test methods + a force-unwrapped user lookup) a baseline 1:1 migration vs a skill-followed one. Concrete diffs: baseline kept three separate @Test methods and preserved `#expect(user != nil)` then `user!`; following the skill's rule 5 and migration step 4 collapsed the three into one @Test(arguments:) parameterized test, and rule 2 / the try-XCTUnwrap mapping replaced the force-unwrap with `try #require(...)` in a throwing test. Both artifacts saved to scratchpad. No security smells; no scripts, curl|sh, or injection text.
- What is the Swift Testing Expert SkillProof Score?
- 8.8/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 7/10, docs & honesty 5/5.
- How do I install Swift Testing Expert?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Swift Testing Expert with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.