compiler-review

Review Rust compiler port code for fidelity and convention compliance against TypeScript source.

248k|51.3k|Updated May 24, 2013
One-click install
npx skills add https://github.com/facebook/react --skill compiler-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compiler-review
Source: https://github.com/facebook/react/tree/main/compiler/.claude/skills/compiler-review
Command: npx skills add https://github.com/facebook/react --skill compiler-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reviewing Rust ports of the React compiler against the original TypeScript source is error-prone and time-consuming, requiring careful comparison of logic, conventions, and error handling across two language implementations.

Core Features & Use Cases

  • Diff-based Review: Automatically retrieves git diffs for uncommitted, staged, or specific commit ranges scoped to compiler/crates/.
  • Port Fidelity Analysis: Compares Rust port code against the original TypeScript implementation to detect logic deviations.
  • Convention & Error Handling Checks: Validates adherence to Rust coding conventions and proper error handling patterns.
  • Use Case: A contributor submits a pull request porting a TypeScript compiler module to Rust. Use this Skill to review the diff, identify behavioral differences, and flag convention violations before merge.

Quick Start

Review the latest uncommitted Rust changes in the compiler crates directory for port fidelity and convention compliance.

Frequently Asked Questions about compiler-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Rust port code against TypeScript source in React compiler?

Run the compiler-review skill to retrieve the git diff for compiler/crates/ changes. The skill delegates to a review agent that reads the architecture guide, locates corresponding TypeScript files, and returns a numbered list of port fidelity, convention, and error handling issues.

What does the compiler-review skill check in Rust code?

It checks three areas: port fidelity by comparing Rust logic against the original TypeScript implementation, convention compliance with Rust coding standards, and proper error handling patterns. Findings are returned as a structured numbered issue list.

Can I review specific commits instead of uncommitted changes?

Yes. Pass a commit ref like abc123 to review that single commit, or a range like HEAD~3..HEAD to review multiple commits. With no arguments, the skill reviews uncommitted changes first, then falls back to staged changes if the working tree is clean.

Why does the review report no Rust changes to review?

The skill scopes its diff to compiler/crates/ only. If your changes are outside this directory or there are no uncommitted, staged, or matching commit changes in that path, the skill reports no Rust changes and stops.

What is the difference between port fidelity and convention compliance review?

Port fidelity checks whether the Rust code preserves the behavior and logic of the original TypeScript source. Convention compliance checks whether the Rust code follows project-specific coding standards, naming, and structural patterns independent of correctness.