.blick/skills/tuist-swift-review/SKILL.md
This skill is intentionally narrow. Generic Swift style, formatting, naming, and lint hygiene are already covered by SwiftFormat / SwiftLint in CI — do not flag those. Focus on the rules below.
For each finding, cite path:line and quote the relevant snippet.
Default to struct for new types. Reach for class only when reference
semantics, identity, inheritance, or deinit are actually required.
class declaration that has no stored mutable identity, no
inheritance, no deinit, and is not bridged to an Objective-C / Cocoa
API. Recommend converting it to a struct. Severity: medium.NSObject, XCTestCase,
Operation, etc.) or conform to a protocol that requires reference
semantics.New tests must be written with Swift Testing (import Testing,
@Test, #expect, #require). XCTest is legacy in this repo.
When a diff modifies an existing XCTest case (i.e. the test file
already uses XCTestCase / func testXxx() and the PR changes one of
those tests), the test should be rewritten in Swift Testing as part of
the same change rather than patched in place. Touching a test is the
moment to migrate it.
XCTestCase /
XCTAssert* / func testXxx(). Recommend Swift Testing.
Severity: high.@Test / #expect / #require. Severity: medium.XCTAssert* calls inside a Swift Testing @Test (or vice
versa). Pick one framework per test.XCUITest UI automation) — leave those on XCTest.When suggesting the migration, point at the project's Swift Testing
pattern (see cli/AGENTS.md): use @Test(.inTemporaryDirectory) and
FileSystem.temporaryTestDirectory for tests that need a temp dir, and
#require for unwrapping.