بنقرة واحدة
review-rust-code
Review Rust changes for correctness, robustness, documentation quality, and test coverage.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review Rust changes for correctness, robustness, documentation quality, and test coverage.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Guidelines for writing Rust tests in OpenFirma.
Write Rust tests for OpenFirma crates while avoiding redundant coverage.
Review changes ahead of opening a new PR, modifying an existing one or on demand by the user.
Edit a pre-existing GitHub pull request for OpenFirma. Use whenever you are asked to make changes to commits, branches or bookmarks that would affect an open GitHub PR.
Open a GitHub pull request for OpenFirma. Use whenever you are asked to open a PR.
Dirty repo, uncommitted changes, commit, amend, split, changeset, PR history: inspect repository state and prepare atomic Git commits or jj changesets. Use whenever the worktree is already dirty or you are about to commit or rewrite history.
| name | review-rust-code |
| description | Review Rust changes for correctness, robustness, documentation quality, and test coverage. |
Review Rust code changes for correctness, robustness, documentation quality, and test coverage.
Exactly one of the following forms:
<revset>: review a jj revset when the repo uses Jujutsu<commit> or <commit1>..<commit2>: review git commit diffpr:<number>: review a GitHub pull request locally<path> or <path1> <path2>: review one or more Rust files or directoriesUse the repository's active VCS as described in AGENTS.md.
If no argument was provided, review uncommitted Rust changes:
# Git
git diff -- '*.rs'
# jj
jj diff --git -- glob:'**/*.rs'
If the input is a Git commit or commit range:
git show <commit> -- '*.rs'
git diff <commit1>..<commit2> -- '*.rs'
If the input is a jj revset:
jj diff -r <revset> --git -- glob:'**/*.rs'
Fetch the PR head locally, then diff it against the default remote branch.
# Git
git fetch origin refs/pull/<number>/head
git diff origin/main...FETCH_HEAD -- '*.rs'
# jj
git fetch origin refs/pull/<number>/head
pr_sha=$(git rev-parse FETCH_HEAD)
jj git import
jj diff -r "main@origin..$pr_sha" --git -- glob:'**/*.rs'
Use Git for fetching refs/pull/<number>/head; it is the simplest way to
materialize GitHub PR refs in a jj-backed clone before jj git import.
For path-based review, read the full source of all .rs files in scope.
Always read full files for anything added or modified, not just diff hunks.
For each issue, record the file, line, explanation, and suggested fix.
Check for violations of repo constraints:
.unwrap().expect()panic!()unsafePrefer explicit error propagation with Result<T, E> and thiserror.
Look for:
compile_error! implementations outside the supported Unix and Windows
targetsConfirm that:
docs-site/public/llms.txt is updated when discovery or integration guidance changedEnsure the new code adheres to the policies defined in rust-tests-guidelines and rust-docs-guidelines.
Report only actionable findings.
Prioritize:
If there are no findings, say so plainly and note any residual risk or untested areas.