existential-birds avatar

Swift Testing Code Review

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.

skills.sh installs
194
GitHub stars
87
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

Files

Swift Testing Code Review

Hard gates

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

  1. Scope: You have an explicit list of .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.
  2. Swift Testing surface: For each path you treat as Swift Testing code, confirm 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).
  3. Evidence + protocol: Load review-verification-protocol before asserting any issue. Pass: Each finding meets that skill’s anchor rules; any violated Review Checklist item cites [FILE:LINE] evidence. If you report zero issues, state Protocol applied; no Swift Testing issues (or equivalent) in the review summary.

Quick Reference

Sponsors

Details

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

More from existential-birds/beagle

All 40
1sickn33 avatarhtml-injection-testingsickn33/antigravity-awesome-skillshtml injection testing174skills.sh installs
2proffesor-for-testing avatarmobile-testingproffesor-for-testing/agentic-qeComprehensive mobile testing for iOS and Android platforms including gestures, sensors, permissions, device fragmentation, and performance. Use when testing nat172skills.sh installs
3flora131 avatarplaywright-cliflora131/atomicplaywright cli166skills.sh installs
4cinience avataralicloud-ai-content-aicontent-testcinience/alicloud-skillsSmoke test for alicloud-ai-content-aicontent. Validate minimal authentication, API reachability, and one read-only query path.160skills.sh installs
5cinience avataralicloud-security-content-moderation-green-testcinience/alicloud-skillsSmoke test for alicloud-security-content-moderation-green. Validate minimal authentication, API reachability, and one read-only query path.160skills.sh installs
6cinience avataralicloud-ai-content-aimiaobi-testcinience/alicloud-skillsSmoke test for alicloud-ai-content-aimiaobi. Validate minimal authentication, API reachability, and one read-only query path.159skills.sh installs