Port a compiler pass from TypeScript to Rust. Gathers context, plans the port, implements in a subagent with test-fix loop, then reviews.
65
78%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./compiler/.claude/skills/compiler-port/SKILL.mdPort a compiler pass from TypeScript to Rust end-to-end.
Arguments:
PruneMaybeThrows, SSA, ConstantPropagation)compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.tsname: '$ARGUMENTS' in log entrieslog({...name: '...'}) calls and stopkind field of the matching log entry:
kind: 'ast', report that test-rust-port only supports hir and reactive kind passes currently and stopkind: 'hir' or kind: 'reactive', proceed| TypeScript Path | Rust Crate |
|---|---|
src/HIR/ (excluding BuildHIR.ts, HIRBuilder.ts) | react_compiler_hir |
src/HIR/BuildHIR.ts, src/HIR/HIRBuilder.ts | react_compiler_lowering |
src/Babel/, src/Entrypoint/ | react_compiler |
src/CompilerError.ts | react_compiler_diagnostics |
src/ReactiveScopes/ | react_compiler_reactive_scopes |
src/<Name>/ | react_compiler_<name> (1:1, e.g., src/Optimization/ -> react_compiler_optimization) |
compiler/crates/react_compiler/src/entrypoint/pipeline.rs already calls itRead the following files (all reads happen in main context):
compiler/docs/rust-port/rust-port-architecture.mdcompiler/packages/babel-plugin-react-compiler/docs/passes/ for docs about this passcompiler/crates/react_compiler/src/entrypoint/pipeline.rscompiler/crates/react_compiler_hir/src/ (especially hir.rs, environment.rs)compiler/crates/react_compiler_hir/src/reactive_function.rsCargo.toml, src/lib.rs, and existing files to understand the current structureBased on the gathered context, create and present a plan covering:
pipeline.rsPresent the plan to the user, then proceed to implementation.
Launch the port-pass agent with all gathered context:
$ARGUMENTSThe agent will:
/compiler-review on the changesport-pass agent again with:
bash compiler/scripts/test-rust-port.sh (no args, auto-detects last ported pass) to confirm 0 failures still hold/compiler-review againReport to the user:
/compiler-commit)7c6ac13
Also appears in
since Sep 7, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.