
This reviews Swift Testing code for common pitfalls like pre-computed booleans in #expect that lose diagnostics, #require overuse that masks failures, and accidental Cartesian products in parameterized tests. It gates on confirming import Testing is actually present before critiquing, then checks against a focused list: expression capture, error test specificity, zip() versus arguments() mismatches, confirmation for async sequences versus continuations for completion handlers, and serialization choices. The references break down expect versus require, parameterized test patterns, async testing approaches, and suite organization. Use it when reviewing .swift files that import Testing or use @Test annotations. The checklist is opinionated but grounded in real Swift Testing API traps.
$ npx -y skills add existential-birds/beagle --skill swift-testing-code-review --agent claude-codeInstalls into .claude/skills of the current project.
Complete in order before recording Swift Testing review findings. Stack with review-verification-protocol for universal review rules.
.swift paths under review (or a user-named single file). Pass: Paths captured in working notes or one line: No Swift files in scope — then stop with no findings.import Testing or @Test / #expect / #require / @Suite appears in that file (open or search). Pass: At least one match per critiqued file, or you exclude that file from Swift Testing review with a one-line reason (e.g. XCTest-only).[FILE:LINE] evidence. If you report zero issues, state Protocol applied; no Swift Testing issues (or equivalent) in the review summary.Sponsors