Who it is forA team rewriting a slow Python or Go module in Rust who cannot afford behavior changes.
The problemRewrites drift from the original because nobody checks that both versions behave the same.
The outcomeAn idiomatic Rust port whose ported tests pass against the same cases as the original.
What you need first
- A Rust project and stable Rust
- Node 22.20+ for npx skills, or Claude Code, GitHub CLI 2.90+ or Gemini CLI
- clippy for the lints config
Steps
- Install the skills; review and port lean on rust-best-practices, so install all three
- Point the agent at the source module in C, C++, Python, Go or JavaScript
- Let rust-port port the original tests first
- Have it port the code until
cargo testand clippy pass - Compare outputs of the old and new versions on real inputs
Prompt for your agent
Use the rust-port skill from morganlinton/BeautifulRust to port <module> from <language> to Rust. Port the tests first, then the code, and do not finish until cargo test and clippy pass.
Caveat. This card is written from the morganlinton/BeautifulRust README, not from a test run by Deduped. Before you start, make sure you have a Rust project and stable Rust. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for morganlinton/BeautifulRust and "Port a Python, Go or C module to Rust with the tests ported first"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer