with one click
fmt
Format Swift code with swift-format and report what changed.
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
Format Swift code with swift-format and report what changed.
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
| name | fmt |
| description | Format Swift code with swift-format and report what changed. |
Runs swift format on Sources/ and Tests/ directories.
1. Run swift-format.
swift format --recursive Sources Tests --in-place
2. Check for changes.
git diff --stat
3. Report.
git add -u Sources Tests
Sources/ and Tests/ directories by convention. If your project uses different source directories (e.g. Package/, App/), adjust the paths.swift format which is built into the Swift 6+ toolchain and wraps swift-format.swift format --recursive Sources Tests (omit --in-place).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.