/compiler-review
Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.
$ npx -y skills add facebook/react --skill compiler-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/compiler-review
Context preview
The summary Claude sees to decide when to auto-load this skill.
Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.
SKILL.md
compiler-review.SKILL.mdname: compiler-review description: Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.
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
1. **Get the diff** based on arguments:
- No arguments: `git diff HEAD -- compiler/crates/` (uncommitted changes). If empty, also check `git 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/`
2. **If no Rust changes found**, report "No Rust changes to review." and stop.
3. **Identify changed Rust files** from the diff using `git diff --name-only` with the same ref arguments.
4. **Launch the `compiler-review` agent** 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
5. **Report the agent's findings** to the user.
React is a JavaScript library for building user interfaces. Declarative: React makes it painless to create interactive UIs.
Repo: facebook/react
Other skills on react.
- /extract-errors
Use when adding new error messages to React, or seeing "unknown error code" warnings.
Open skill - /feature-flags
Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
Open skill - /fix
Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
Open skill - /flags
Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.
Open skill - /flow
Use when you need to run Flow type checking, or when seeing Flow type errors in React code.
Open skill - /test
Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.
Open skill

