一键导入
test
Run swift test, enforce gates, name failures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run swift test, enforce gates, name failures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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.
基于 SOC 职业分类
| 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.