Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
compiler-review
Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.stars250047
forks51332
watches250047
updated2026-09-12 02:22:28
Compiler Review
Review Rust compiler port code for correctness and convention compliance.
Arguments:
- $ARGUMENTS: Optional commit ref or range (e.g.,
HEAD~3..HEAD,abc123). If omitted, reviews uncommitted/staged changes.
Instructions
-
Get the diff based on arguments:
- No arguments:
git diff HEAD -- compiler/crates/(uncommitted changes). If empty, also checkgit diff --cached -- compiler/crates/(staged changes). - Commit ref (e.g.,
abc123):git diff abc123~1..abc123 -- compiler/crates/ - Commit range (e.g.,
HEAD~3..HEAD):git diff HEAD~3..HEAD -- compiler/crates/
- No arguments:
-
If no Rust changes found, report "No Rust changes to review." and stop.
-
Identify changed Rust files from the diff using
git diff --name-onlywith the same ref arguments. -
Launch the
compiler-reviewagent via the Agent tool, passing it the full diff content. The agent will:- Read the architecture guide
- Find and read the corresponding TypeScript files
- Review for port fidelity, convention compliance, and error handling
- Return a numbered issue list
-
Report the agent's findings to the user.
Related skills
Explore other skills from the same source repository.
#react
Git & Version ControlRustcommit conventionsverification workflow