rust-review
Review Rust diffs, commits, branches, and designs for actionable correctness, soundness, security, compatibility, concurrency, protocol, performance, testing, and maintainability risks. Use for review or pre-merge assessment. Do not modify code unless separately requested.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- rust-review
- description
- Review Rust diffs, commits, branches, and designs for actionable correctness, soundness, security, compatibility, concurrency, protocol, performance, testing, and maintainability risks. Use for review or pre-merge assessment. Do not modify code unless separately requested.
02 资源文件 4
- 参考文档agents/openai.yaml239 B
- 参考文档references/review-procedure.md4.9 KB
- 参考文档references/risk-checks.md2.9 KB
- 其他skill.toml961 B
03 SKILL.md 正文
Review Rust Changes
Establish scope
- Read
$rust-core, the request, closest repository instructions, profile, manifests, intended behavior, and claimed verification. - Inspect the full diff and enough callers, implementations, tests, generated paths, and history to prove or reject a suspected issue.
- Use the review procedure to trace changed contracts and risk routing only for categories implicated by the diff.
- Activate the owning domain or technique skill for detailed checks. Review owns finding quality and prioritization, not duplicated domain rules.
Admit findings
Report only reachable, evidence-based issues with a concrete consequence. Prioritize correctness, soundness, security, corruption or data loss, concurrency, error behavior, compatibility, protocol conformance, performance, maintainability, idiomaticity, then style.
Use this schema:
Severity:
Confidence:
Category:
Location:
Observed behavior:
Failure scenario:
Why it matters:
Recommended correction:
Verification:
Related skill:
Reject vague “consider” comments, unmeasured performance claims presented as
defects, rustfmt comments, iterator rewrites that reduce clarity, abstractions without a
present caller, blanket clone or test-unwrap objections, speculative claims
presented as facts, and comments unrelated to the requested change.
Verify
Before reporting, re-check each admitted finding against the code. Confirm the path is reachable, the claimed behavior follows from what the diff actually does, and the recommended correction compiles against the real signatures. Drop a finding you cannot demonstrate, or state it as a question rather than a defect. Run the repository's declared checks when a finding depends on them.
Output
Lead with findings ordered by consequence. Then state assumptions, exact verification observed, and evidence gaps. If no findings remain, say so plainly.
04 同仓库更多 Skills
rust-unsafe-ffi
Design and review unsafe Rust, safe wrappers, manual Send or Sync, ABI boundaries, foreign ownership, callbacks, and FFI build integration. Use whenever unsafe code or a foreign interface is introduced, changed, or relied upon. Do not use unsafe merely to bypass borrow checking or for unmeasured optimization.
rust-testing
Select, implement, and assess Rust unit, integration, documentation, property, fuzz, snapshot, concurrency, unsafe, protocol, benchmark, and verification evidence. Use whenever behavior changes or claims need proof. Do not run every tool mechanically when the repository or risk makes it inapplicable.
rust-skill-maintenance
Maintain this modular Rust skills system, including canonical content, manifests, references, profiles, generated adapters, migrations, examples, evaluations, releases, and compatibility. Use when changing the skills repository itself. Do not hand-edit generated adapters.
rust-repository-onboarding
Inspect, interview, profile, configure, and install the modular Rust engineering skills into a repository. Use when adopting or refreshing these skills, generating repository-specific Rust rules, or creating validation workflows. Never finalize policy before repository inspection and user approval.
rust-protocol
Engineer and review binary protocols, wire formats, builders, encoders, parsers, framing, stateful messages, bit ordering, integrity, correction, malformed input, and conformance. Use for protocol or serializer code. Do not apply protocol rules to unrelated in-memory models.
rust-performance
Measure and optimize Rust latency, throughput, allocation, memory, cache behavior, branches, vectorization, SIMD, code size, and compile time. Use for performance claims or performance-sensitive paths. Do not add complexity for hypothetical gains without a representative measurement.