compiler-review

react/react · Agent Skill

分析 Rust 代码,与原始 TypeScript 源代码进行比较,检查端口保真度、约定合规性和错误处理。

前往安裝 ↓

安裝選項

預設為含檢閱步驟的提示。您可以切換到直接指令。

透過 Claude 或 Codex 安裝

複製提示,貼入 Claude、Codex 或其他助手,它會檢視技能頁面並安裝。

I'd like to install this Claude Code skill:
https://github.com/react/react/tree/main/compiler/.claude/skills/compiler-review

Please review the SKILL.md file, verify the skill is legitimate, then copy the skill folder into .claude/skills/ of my project.

技能檔案

1 個檔案 下載 ZIP

安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。

SKILL.md 內容

作者原文 · 唯讀

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.