Swift Testing Code Review
Helps with Swift, testing, code review as part of building frontend UIs and user experiences workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add swift-testing-code-review npx -- -y @trustedskills/swift-testing-code-review
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"swift-testing-code-review": {
"command": "npx",
"args": [
"-y",
"@trustedskills/swift-testing-code-review"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill assists with reviewing Swift code, specifically focusing on testing practices for frontend UI and user experience development. It provides guidance and references related to common testing patterns like #expect vs #require, parameterized tests, async sequences, and test organization using @Suite. The tool helps ensure adherence to best practices in Swift testing, improving code quality and reliability.
When to use it
- When reviewing code that utilizes the
#expector#requiremacros for assertions. - During reviews of tests employing arguments or traits within
@Testfunctions. - When assessing asynchronous testing approaches involving confirmation and completion handlers.
- For evaluating the organization of test suites using
@Suiteand related features.
Key capabilities
- Provides references to documentation on
#expectvs#require, expression capture, and error testing (references/expect-macro.md). - Offers guidance on parameterized tests with arguments and traits (
references/parameterized.md). - Covers best practices for asynchronous sequences and completion handlers (
references/async-testing.md). - Details test organization using
@Suite, tags, parallel execution, and serialization (references/organization.md). - Includes a checklist of common review points related to Swift testing conventions.
Example prompts
- "Review this code snippet for proper use of
#expectand#require." - "Check if these parameterized tests are using
zip()correctly." - "Assess the organization of this test suite, paying attention to
.serializedusage."
Tips & gotchas
- The skill focuses specifically on Swift testing practices; it is not a general code review tool.
- Pay close attention to the checklist provided for common pitfalls in Swift testing.
- Reviewing completion handlers should use
withCheckedContinuation, notconfirmation.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.