extract-errors
Use when adding new error messages to React, or seeing "unknown error code" warnings.
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
$ npx -y skills add facebook/react --skill compiler-commit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/compiler-commitContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
name: compiler-commit description: Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
Verify and commit compiler changes with the correct convention.
Arguments:
1. **Run `/compiler-verify`** first (with test pattern if provided after `--`). Stop on any failure.
2. **Run `/compiler-review`** on the uncommitted changes. Report the findings to the user. If any issues are found, stop and do NOT commit — let the user decide how to proceed.
3. **Detect commit prefix** from changed files:
4. **Update orchestrator log**: If `compiler/docs/rust-port/rust-port-orchestrator-log.md` exists and the commit includes Rust changes (`compiler/crates/`):
Run `test-rust-port` with `--json` to get machine-readable results:
bash compiler/scripts/test-rust-port.sh --json 2>/dev/null
This outputs a JSON object with fields: `pass`, `autoDetected`, `total`, `passed`, `failed`, `frontier`, `perPass`, `failures`.
Then update the orchestrator log:
5. **Stage files** — stage only the relevant changed files by name (including the orchestrator log if updated in step 4). Do NOT use `git add -A` or `git add .`.
6. **Compose commit message**:
[prefix] <title> <summary of what changed and why, 1-3 sentences>
The title comes from $ARGUMENTS. Write the summary yourself based on the actual changes.
7. **Commit** using a heredoc for the message:
git commit -m "$(cat <<'EOF' [rust-compiler] Title here Summary here. EOF )"
8. **Do NOT push** unless the user explicitly asks.
React is a JavaScript library for building user interfaces. Declarative: React makes it painless to create interactive UIs.
Repo: facebook/react
Use when adding new error messages to React, or seeing "unknown error code" warnings.
Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.
Use when you need to run Flow type checking, or when seeing Flow type errors in React code.
Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.