A community-driven registry for the Claude Code ecosystem. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Swift Testing agent skill for Claude Code, Codex, and other AI tools.
An agent skill that helps AI coding assistants like Claude Code, Codex, Cursor, and Gemini write better tests using Swift Testing. Covers @Test, #expect, #require, parameterized testing, traits, exit tests, confirmations, and more, targeting the mistakes LLMs actually make.
Also available:
Find more agent skills for Swift and Apple platform development at Swift Agent Skills.
Add the Swift Testing Agent Skill marketplace, then install the plugin:
/plugin marketplace add twostraws/Swift-Testing-Agent-Skill
/plugin install swift-testing-pro@swift-testing-agent-skill
npx skills add https://github.com/twostraws/swift-testing-agent-skill --skill swift-testing-pro
If you get the error npx: command not found, it means you don’t currently have Node installed. You need to run this command to install Node through Homebrew:
brew install node
And if that fails it usually means you need to install Homebrew first.
When using npx, you can select exactly which agents you want to use during the installation. You can also select whether the skill should be installed just for one project, or whether it should be made available for all your projects.
Alternatively, you can clone this whole repository and install it however you want.
If you're using Xcode, watch the YouTube video on How to Install and Use Agent Skills in Xcode for a walkthrough.
The skill is called Swift Testing Pro, and can be triggered in various ways. For example, in Claude Code you would use this:
/swift-testing-pro
And in Codex you would use this:
$swift-testing-pro
In both cases you can provide specific instructions if you want only a partial review. For example, /swift-testing-pro Make sure my tests are fully parameterized on Claude, or $swift-testing-pro Add exit tests to my test suites in Codex.
You can also trigger the skill using natural language:
Use the Swift Testing Pro skill to look for ways to improve the tests in this project.
I wrote a book on Swift Testing, and update it regularly as new features are added. I’ve also written a comprehensive set of articles introducing what’s new in Swift (see here, here, and here for examples), and so I’ve made it my business to understand the ins and outs of Swift Testing.
This skill is the result of all that work. The rules contained here directly target common Swift Testing mistakes made by LLMs, covering new features they aren’t trained on, older features they frequently make mistakes with, and patterns that help make tests stay smaller and run faster.
What this is not is just a dumping ground for all Swift Testing advice ever. Agents already have a solid grounding of the fundamentals of Swift Testing, so skills that do little more than reteach them what they already know are just burning tokens.
This skill focuses on what actually has an impact.
I welcome all contributions, whether that's adding new checks, improving existing checks, or editing this README – everyone is welcome!
Please ensure you abide by the Code of Conduct.
Swift Testing Pro was originally created by Paul Hudson, who writes free Swift tutorials over at Hacking with Swift. It’s available under the MIT License, which permits commercial use, modification, distribution, and private use.
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Design enforcement with memory — keeps your UI consistent across a project
Universal SEO skill for Claude Code. 25 sub-skills + 18 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, bac
Route Claude Code traffic to any of 17 provider backends including free or local models