Skip to content
existential-birds avatar

Swift Testing Code Review

Reviews Swift Testing code for correct #expect and #require use, parameterized tests, async testing, and suite organization.

CCM score
55 of 100
skills.sh installs
196
GitHub stars
91
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers review of .swift files that use import Testing, @Test, #expect, @Suite, or confirmation patterns
  • Includes a hard-gated checklist, a quick-reference table, and four topic references for expression capture, arguments, async, and organization
  • Enforces checks such as no pre-computed booleans in #expect, zip() over Cartesian products, and confirmation(expectedCount:) for async sequences
  • Designed for code reviewers who need evidence-backed findings on Swift Testing suites

Install

$ npx -y skills add existential-birds/beagle --skill swift-testing-code-review -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Swift Testing Code Review

Hard gates

Complete in order before recording Swift Testing review findings. Stack with review-verification-protocol at review-verification-protocol for universal review rules.

Details

Repository
github.com/existential-birds/beagle
Categories
Testing & QA, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the swift-testing-code-review skill check?

It reviews Swift Testing code for proper use of #expect and #require, parameterized tests, async testing, and suite organization. It is meant for .swift files that use import Testing, @Test, #expect, @Suite, or confirmation patterns.

How do I install the swift-testing-code-review skill?

Run npx -y skills add existential-birds/beagle --skill swift-testing-code-review -y inside your project. Once installed, the agent can review Swift Testing files for misuse of #expect versus #require and for unsafe async test patterns.

When should I use #require instead of #expect in Swift Testing?

This skill's checklist says #require should be used only for preconditions, while #expect is for assertions. It flags tests where #require stops execution too early and hides other failures.

Does swift-testing-code-review cover async tests and parameterized tests?

Yes, it checks async sequences tested with confirmation(expectedCount:), completion handlers wrapped in withCheckedContinuation, and parameterized tests that use zip() instead of accidental Cartesian products. It also flags process-crash tests that should use #expect(processExitsWith:).

More from existential-birds/beagle

All 37

Similar to Swift Testing Code Review

More Testing & QA