一键导入
format
Format and lint the project, auditing changed Rust files against code style guidelines.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Format and lint the project, auditing changed Rust files against code style guidelines.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | format |
| description | Format and lint the project, auditing changed Rust files against code style guidelines. |
Format and lint the project, auditing changed Rust files against code style guidelines.
Run mise run format to format code.
Run mise run lint Fix any errors the formatter was unable to address.
!if [ -d .jj ]; then jj show; else git diff; fi
For each .rs file in the diff, spin up a separate agent to audit that file against docs/dev/code-style.md.
Launch all agents in parallel.
Each agent should read the full file and check module-level ordering (constants first, then type groups alphabetically with impl blocks immediately following their type, then free functions) and report any violations with line numbers.
Fix any violations the agents report.
Run mise run lint again after fixes to ensure formatting is still clean.
Run mise run test to confirm nothing is broken.
Generate or update the CHANGELOG.md Unreleased section from commits since the latest release tag.
Senior Rust code reviewer. Use proactively after implementing features to review for correctness, safety, performance, and best practices.
Create a commit following this project's conventional commit guidelines.
Write Architecture Decision Records (ADRs) and technical documentation. Use when documenting design decisions, architectural choices, or technical specifications.
Profile Rust code for performance bottlenecks. Use when investigating slow performance, comparing implementations, or optimizing critical paths.
Run and analyze Rust tests. Use when running test suites, debugging test failures, or analyzing test coverage.