Agent skill · software engineering · facebook
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.
Why this skill is useful
Adds an executable script that automates the verification and committing process for compiler changes, ensuring adherence to specific conventions and logging requirements.
What it needs
Requires git installed locally. About 1k tokens when loaded. Last updated 2026-08-06. 247,076 stars on the source repository.
What this skill does
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: 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: The title comes from $ARGUMENTS. Write the summary yourself based on the actual changes. 7. Commit using a heredoc for the message: 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 -- roundtrip — runs verify with -p roundtrip, commits as [rust-compiler] Implement scope tree types
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills facebook/compiler-commit