Skip to content
Development
Skill

/compiler-commit

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.

From plugin
react
252k14 skills4 agents

Claude Code

$ npx -y skills add react/react --skill compiler-commit --agent claude-code

SKILL.md

compiler-commit.SKILL.md
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.

Compiler Commit

Verify and commit compiler changes with the correct convention.

Arguments:

  • $ARGUMENTS: Commit title (required). Optionally a test pattern after `--` (e.g., `Fix aliasing bug -- aliasing`)

Instructions

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:

  • If any files in `compiler/crates/` changed: use `[rust-compiler]`
  • Otherwise: use `[compiler]`

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:

  • Update the `# Status` section with the results (use the frontier, per-pass counts, and pass/fail totals)
  • Add a `## YYYYMMDD-HHMMSS` log entry noting the commit and what changed

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.

Examples

  • `/compiler-commit Fix aliasing bug in optional chains` — runs full verify, commits as `[compiler] Fix aliasing bug in optional chains`
  • `/compiler-commit Implement scope tree types -- round_trip` — runs verify with `-p round_trip`, commits as `[rust-compiler] Implement scope tree types`
Read more
@facebook
Ships withreact

React is a JavaScript library for building user interfaces. Declarative: React makes it painless to create interactive UIs.

252k14 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
252.5k
Star history of facebook/react on GitHub, a chart by star-history.com

Other skills on react.

extract-errors

extract-errors

Use when adding new error messages to React, or seeing "unknown error code" warnings.

@facebook@facebookInstall Skill
feature-flags

feature-flags

Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or…

@facebook@facebookInstall Skill
fix

fix

Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

@facebook@facebookInstall Skill
flags

flags

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release…

@facebook@facebookInstall Skill
flow

flow

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

@facebook@facebookInstall Skill
test

test

Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.

@facebook@facebookInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
act-on-feedback

act-on-feedback

Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit…

vscodetoday195k
@microsoft@microsoftInstall Skill

Questions about compiler-commit.

Which coding agents can use compiler-commit?
compiler-commit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.