一键导入
fmt
Format Rust code with rustfmt and report what changed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Format Rust code with rustfmt and report what changed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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
Full TDD loop — plan, branch, write code + tests, fmt, clippy, test, review, commit.
View the story board grouped by status, with optional filters
| name | fmt |
| description | Format Rust code with rustfmt and report what changed. |
Format the codebase. Single source of formatting truth.
rustup component list --installed | grep rustfmt
If missing: rustup component add rustfmt. If that fails, halt with "Run /setup first."
cargo fmt
Capture the output. cargo fmt reformats all .rs files in the workspace in place.
git diff --name-only
Parse the list to find .rs files that were modified by the formatter.
Report one of:
file: per line).Do not run in --check mode here — /fmt is the apply step. The PostToolUse hook is the check step. The /commit gate runs --check separately.