compiler-port
Installation
SKILL.md
Port Compiler Pass
Port a compiler pass from TypeScript to Rust end-to-end.
Arguments:
- $ARGUMENTS: Pass name exactly as it appears in Pipeline.ts log entries (e.g.,
PruneMaybeThrows,SSA,ConstantPropagation)
Step 0: Validate pass name
- Read
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.ts - Search for
name: '$ARGUMENTS'in log entries - If not found, list all available pass names from the
log({...name: '...'})calls and stop - Check the
kindfield of the matching log entry:- If
kind: 'ast', report that test-rust-port only supportshirandreactivekind passes currently and stop - If
kind: 'hir'orkind: 'reactive', proceed
- If