What problem does it solve?
Manually porting compiler passes from TypeScript to Rust is error-prone and requires deep knowledge of both codebases, the pipeline structure, and the test infrastructure. This Skill automates the end-to-end porting workflow with validation at each step.
Core Features & Use Cases
- Pass Validation: Verifies the requested pass exists in Pipeline.ts and checks whether it has already been ported.
- Context Gathering: Reads architecture guides, pass documentation, TypeScript sources, and Rust crate structures to inform the port.
- Implementation Planning: Generates a structured plan covering new types, file creation, crate setup, and pipeline wiring.
- Automated Porting: Launches a subagent to perform the TypeScript-to-Rust translation and runs a test-fix loop until all tests pass.
- Review Loop: Runs a compiler review on the changes and iterates until the review is clean.
Quick Start
Use the compiler-port skill to port the PruneMaybeThrows pass from TypeScript to Rust.