r/claude • u/erkamyaman • 11h ago
Tips Claude kept telling me the Rust port was "done". So I built a skill that makes it prove it
https://github.com/erkamyaman/rust-anything
Context: I use Claude Code to rewrite slow parts of apps in Rust. It's great at writing Rust. The problem was the word "done". It compiles, a few tests pass, and something small is different from the original.
So I built Rust Anything, a skill plus a small CLI:
- Record: before Claude touches anything, it saves what the original code really does (inputs, outputs, errors)
- Rewrite: Claude ports one function at a time, the rest of the app keeps running
- Compare: every recorded case is replayed against the Rust version. Claude can only say done when all of them match, and cargo fmt, clippy, tests, an unsafe check and a stub check pass
The stub check matters more than I expected. It catches a port that still has placeholder code in it.
What it did on real projects:
- ESLint: 10,585 of 10,585 checks match, 26x faster on the CLI
- Prettier: 17,224 of 17,224 runs identical
The checking runs locally with no model, so it costs no tokens. Free, MIT, no account.