All skills
facebook avatar

/compiler-review

@03e7755 official
by Metafacebook/react251k stars
51,417

Review Rust port code for port fidelity, convention compliance, and error handling. Compares against the original TypeScript source.

  • 1 file
  • 1.3 KB
  • Updated 4 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/facebook/react/compiler-review

This session only. Nothing lands on disk.

SKILL.md

≈37 tokens always: the name and description. ≈289 when used: this file.

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.

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at 03e7755. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago

README badge

README badge for facebook/react/compiler-review

Compares Rust port code in facebook/react's compiler against the original TypeScript source, checking for port fidelity, convention compliance, and error handling. Targets the compiler/crates directory and accepts optional git commit refs or ranges to scope the review.

Generated from the current SKILL.md.

What does this skill review?
It reviews Rust compiler port code against the original TypeScript source for port fidelity, convention compliance, and error handling in the facebook/react compiler crates.
Can I review a specific commit or range?
Yes. Pass a commit ref (e.g., `abc123`) or range (e.g., `HEAD~3..HEAD`) as an argument. If omitted, it reviews uncommitted or staged changes in compiler/crates/.
What happens if there are no Rust changes?
The skill reports 'No Rust changes to review.' and stops.
Does this skill require the TypeScript source to be available?
Yes. The compiler-review agent reads the architecture guide and corresponding TypeScript files to compare against the Rust port.

Generated from the current SKILL.md. These answers refresh after source changes.