rust-anything
Rewrite your whole app in Rust, one piece at a time, checked against the original's recorded behavior at every step. CLIs, HTTP servers and libraries in TypeScript, Python, C, Go, Ruby and Java.
Install / Use
npx skills add erkamyaman/rust-anythingInstalls into whichever agent you are using.
CLAUDE.md
Claude Code project instructions
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of rust-anything
rust-anything scores 97/100 on our quality scale, 122nd of 4,705 Development & Engineering skills we index (top 3%).
Its CLAUDE.md is 20 KB long, well organised into 8 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
With 7,884 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated today, so rust-anything is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-22. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
rust-anything compared with similar skills
All 4 of these similar skills score higher than rust-anything; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| rust-anything (this skill)by erkamyaman | 97 | 7.9k | today | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 120.0k | today | CLAUDE.md |
| claude-memby thedotmack | 100 | 119.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.0k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 93.7k | today | CLAUDE.md |
Frequently asked questions
- How do I install rust-anything?
- Run
npx skills add erkamyaman/rust-anything. The install tabs above show the steps for each supported agent. - Which AI agents does rust-anything work with?
- It is written for Claude Code and OpenAI Codex, as a CLAUDE.md file. Other agents that read the same format can often use it too.
- Is rust-anything safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is rust-anything still maintained?
- The repository was last updated today, so rust-anything is actively maintained.
Skill content
View source on GitHubRewrite your whole app in Rust, one piece at a time. rust-anything records what your Node.js (TypeScript/JavaScript), Python, C, Go, Ruby, Java or Kotlin app does today, then checks every piece of the Rust rewrite against that recording before it moves on, until the app is pure Rust. CLIs, HTTP servers and libraries; your coding agent (or you) writes the Rust. It is built on napi-rs, PyO3 and wasm-bindgen, which carry the calls between your language and Rust; rust-anything decides what to move and proves it matches. It can only catch what the recording covers: see What it can't catch. Whole tools and servers, or only the slow part, one hot path at a time:
| Real project, same output as the original | Original | With rust-anything | | --- | ---: | ---: | | Prettier 3.6.2, 2,360 JS/TS files from the command line | 128.6 s | 6.9 s: 19x faster | | Prettier, 6,305 Markdown files from the command line | 352 s | 22.5 s: 15.6x faster | | json-server, a whole Node server: memory at idle | 74 MB | 3.5 MB, one 5.3 MB binary | | json-server, from start to first response | 79 to 85 ms | 8 to 10 ms | | Fuse.js search over 50,000 strings, per query | 91.2 ms | 2.8 ms: 32x faster |
Prettier: 15,837 of 17,224 recorded runs format fully in Rust across 10 languages (JavaScript, TypeScript, JSX, JSON, GraphQL, YAML, Markdown, CSS, SCSS, Less), and all 17,224 match Prettier byte for byte, since anything not ported yet falls back to Prettier. json-server: 514/514 recorded HTTP cases match on a pure Rust binary. Measured on an Apple M4, two runs each, every output compared before timing (details). Calling Rust once per small function is usually slower than a JIT; rust-anything finds the loop worth moving, and moves it. Against C the win is safety, not speed: ffmpeg's libavutil ported to Rust matches all 226,447 recorded calls and runs at about C's speed (18 of 42 benchmarks even, 8 faster, 16 slower by 3 to 40%).
<p align="center"> <img src="docs/assets/json-server.gif" alt="json-server as a Node server and as one Rust binary: memory at idle 74 MB and 3.5 MB, start to first response 79 to 85 ms and 8 to 10 ms, and 514 of 514 recorded HTTP cases match." width="820"> <br> <sub>json-server, a whole Node server, lifted to a pure Rust binary (Apple M4). <a href="docs/real-world.md#json-server">How it was measured</a>.</sub> </p>rust-anything is an independent project, not affiliated with or endorsed by the Rust Project or the Rust Foundation. "Rust" is a trademark of the Rust Foundation.
[!WARNING]
recordandapp recordrun your original code, calling each function (or the whole app) on many generated inputs, andapp recordruns every case twice.diff,gateandapp replayrun the same cases again, on the port or the original. Code that writes files, talks to a database or calls the network does that once per case. Run them on a copy of the project, with a test database and no production credentials in the environment.
Quick start
Paste this into Claude Code, Codex, Cursor, Gemini CLI or OpenCode and let your agent install it:
Install rust-anything: run `cargo install rust-anything`, then `rust-anything setup`.
Tell me when to restart you.
Or yourself:
cargo install rust-anything # from crates.io
rust-anything setup # registers it with Claude Code, Codex, Cursor, Gemini CLI and OpenCode
No Rust toolchain yet? Prebuilt binaries for macOS, Linux and Windows are attached to each
GitHub release, and for JavaScript
projects npm install -g rust-anything installs the same binary.
In Claude Code you can also install it as a plugin (the MCP server and the skill; the CLI above
must be on your PATH):
/plugin install rust-anything --marketplace erkamyaman/rust-anything
setup adds the MCP server to each agent it finds and installs the workflow skill where the agent
reads skills. It keeps your other settings, is safe to run again, and --remove undoes it.
Then ask your agent, for example:
- "Rewrite this CLI in Rust with rust-anything, end to end, and prove it behaves the same."
- "This search feels slow. Profile it with rust-anything and move the hot loop to Rust."
- "Plan a migration of
src/parser/to Rust with rust-anything; port the first unit and prove it." - "Bench the Rust port in
rust/text-rsagainst the original and tell me whether to ship it."
Works with
| Agent | rust-anything setup adds |
| --- | --- |
| Claude Code | MCP server in ~/.claude.json, skill in ~/.claude/skills/ |
| Codex | MCP server in ~/.codex/config.toml, skill in ~/.codex/skills/ |
| Cursor | MCP server in ~/.cursor/mcp.json |
| Gemini CLI | MCP server in ~/.gemini/settings.json |
| OpenCode | MCP server in ~/.config/opencode/opencode.json (mcp.servers), skill in ~/.config/opencode/skills/ |
| Any other MCP client | add rust-anything mcp as a stdio server by hand (see Install) |
Before changing a file that exists, setup saves a copy beside it (<file>.rust-anything.bak); --no-backup skips the copy.
To wire OpenCode up by hand, put the server in ~/.config/opencode/opencode.json (command is
the whole argv) and copy skills/rust-anything/ to
~/.config/opencode/skills/rust-anything/:
{
"mcp": {
"servers": {
"rust-anything": { "type": "local", "command": ["rust-anything", "mcp"] }
}
}
}
Or run the steps yourself:
rust-anything profile . -- node bench.mjs # what is hot, and who calls it
rust-anything bridge . src/fuzzy.ts --batch fuzzyScore:text
# write src/port.rs (or let your agent), then:
rust-anything record
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
120.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
claude-mem
119.0kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
114.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
93.7kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
