with one click
test
Run swift test, enforce gates, name failures.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Run swift test, enforce gates, name failures.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Review a pull request or pending changes. Performs a focused code review against the current branch's diff (or staged diff if invoked pre-commit), surfacing correctness bugs, missing tests, style violations, and unclear naming. Use when the user asks to "review this", "review the PR", "code review", or before commits/PRs.
Complete a security review of pending changes on the current branch. Focuses on injection, authn/authz, secrets, SSRF, deserialisation, insecure defaults, and supply-chain risk. Use when the user asks to "security review", "security audit", "check for vulns", or before raising a PR.
Pre-commit gate (fmt + clippy + test) then create a conventional commit with explicit file staging.
Create or update ARCHITECTURE.md with system components, data flows, and ADRs
Format Rust code with rustfmt and report what changed.
Full TDD loop — plan, branch, write code + tests, fmt, clippy, test, review, commit.
| name | test |
| description | Run swift test, enforce gates, name failures. |
Runs the Swift test suite and enforces quality gates.
1. Run tests.
swift test 2>&1
2. Check for failures.
FAIL: Tests/AppTests/UserTests.swift:42 - testCreateUser — XCTAssertEqual failed: got "bar", expected "foo"
3. Fix loop (if tests fail).
Swift does not have a standard coverage gate equivalent to xcrun llvm-cov. If the project has a coverage script in the Makefile, use that instead:
make coverage
Otherwise, manual coverage reporting:
swift test --enable-code-coverage
xcrun llvm-cov show \
--instr-profile=.build/debug/codecov/default.profdata \
.build/debug/*PackageTests.xctest/Contents/MacOS/*PackageTests \
--ignore-filename-regex='/.build/' \
--format=html > coverage.html
This generates an HTML report. Not enforced as a quality gate unless configured.