diff --git a/.claude/commands/review-code-pr.md b/.claude/commands/review-code-pr.md index f2cf709276083..3b07f69fbe812 100644 --- a/.claude/commands/review-code-pr.md +++ b/.claude/commands/review-code-pr.md @@ -1,5 +1,5 @@ --- -allowed-tools: Bash(gh pr diff:*),Bash(gh pr view:*) +allowed-tools: Bash(gh pr diff:*),Bash(gh pr view:*),Bash(npm run react-compiler-compliance-check:*) description: Review a code contribution pull request --- diff --git a/.claude/skills/coding-standards/rules/clean-react-0-compiler.md b/.claude/skills/coding-standards/rules/clean-react-0-compiler.md index af697f1499458..64b2d25068400 100644 --- a/.claude/skills/coding-standards/rules/clean-react-0-compiler.md +++ b/.claude/skills/coding-standards/rules/clean-react-0-compiler.md @@ -98,7 +98,7 @@ function Avatar({source, size}: AvatarProps) { Before flagging, verify that the file actually compiles with React Compiler: ```bash -npx react-compiler-healthcheck --src "" --verbose +npm run react-compiler-compliance-check check ``` If the output contains **"Failed to compile"** for the file under review, the rule **does not apply** — the author may have no alternative to manual memoization until the compilation issue is resolved. diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 98578ba2bc78c..3edcdc2c86947 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -74,7 +74,7 @@ jobs: prompt: "/review-code-pr REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}" claude_args: | --model claude-opus-4-6 - --allowedTools "Task,Glob,Grep,Read,Bash(gh pr diff:*),Bash(gh pr view:*)" --json-schema '${{ steps.schema.outputs.json }}' + --allowedTools "Task,Glob,Grep,Read,Bash(gh pr diff:*),Bash(gh pr view:*),Bash(npm run react-compiler-compliance-check:*)" --json-schema '${{ steps.schema.outputs.json }}' - name: Post code review results if: steps.code-review.outcome == 'success' && steps.filter.outputs.code == 'true'