Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.
Rust agent-skillsclaude-codeclicode-migrationcodexffigolangjavajavascriptmcpmigrationnapiperformanceportingpyo3pythonrewriterubyrusttypescript
fix(directory): ship the Claude directory skill without the local MCP server
Kam5d5d3fe57b12
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b8133108..43617c07 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,10 @@## Unreleased+- The Claude directory copy of the plugin (`directory/`) no longer tells Claude to add the local MCP+ server (`rust-anything mcp`, `rust-anything setup`), which the directory refuses for plugins+ that are not from a Verified organization. It uses the CLI only; the plugin in `plugin/` keeps+ the MCP server. A test keeps the two skills the same apart from that paragraph.- `book/`: *Rust for Everyone*, a free beginner Rust book, as Markdown in 15 languages (English and 14 drafttranslations), licensed CC BY 4.0. It is not part of the crate or the npm package (`exclude` in `Cargo.toml`).- `app record --normalize name=regex` refuses, before it runs the app, a pattern that matches thediff --git a/directory/.claude-plugin/plugin.json b/directory/.claude-plugin/plugin.jsonindex 7f385918..aafb67a8 100644--- a/directory/.claude-plugin/plugin.json+++ b/directory/.claude-plugin/plugin.json@@ -14,7 +14,6 @@"rust","performance","migration",- "mcp","ffi"],"documentationUrl": "https://github.com/erkamyaman/rust-anything#readme",diff --git a/directory/skills/rust-anything/SKILL.md b/directory/skills/rust-anything/SKILL.mdindex 0eba9e59..dfb78b7b 100644--- a/directory/skills/rust-anything/SKILL.md+++ b/directory/skills/rust-anything/SKILL.md@@ -1,6 +1,6 @@---name: rust-anything-description: Port or migrate TypeScript/JavaScript, Python, C, Go, Ruby, Java, Kotlin, PHP, C#, PowerShell and Swift to Rust with the rust-anything CLI or MCP tools, from one hot function up to a whole app rewritten as a pure Rust app - profile, plan, bridge one unit at a time, record the original's behavior, port, diff, bench, shadow and gate; batch hot loops so they run in Rust on all cores. Also writes a new CLI app in Rust spec first, checked against cases the user approved. Use when asked to rewrite, port or migrate code or an app to Rust, to plan such a migration, to make slow code faster with Rust, or to build a new command-line tool in Rust.+description: Port or migrate TypeScript/JavaScript, Python, C, Go, Ruby, Java, Kotlin, PHP, C#, PowerShell and Swift to Rust with the rust-anything CLI, from one hot function up to a whole app rewritten as a pure Rust app - profile, plan, bridge one unit at a time, record the original's behavior, port, diff, bench, shadow and gate; batch hot loops so they run in Rust on all cores. Also writes a new CLI app in Rust spec first, checked against cases the user approved. Use when asked to rewrite, port or migrate code or an app to Rust, to plan such a migration, to make slow code faster with Rust, or to build a new command-line tool in Rust.---# Migration to Rust with rust-anything@@ -30,17 +30,12 @@ Rust, and the traps that made recorded cases differ.[csharp.md](languages/csharp.md), [powershell.md](languages/powershell.md),[swift.md](languages/swift.md).-Tools: the `rust-anything` CLI, or the same steps as MCP tools (`rust-anything mcp`): `go`,-`profile`, `analyze`, `bridge`, `refresh`, `record`, `build`, `diff`, `bench`, `shadow`, `gate`,-`enable`, `disable`, `report`, `rules`, `fuzz`, `map`, `log`, `package`, `selftest` (checks that `diff` and `gate` refuse planted wrong ports; not part of a port), for a whole app `app_record`, `app_replay`, `app_front_door`, `app_wire`, `app_lift`, `app_drift`, for the obligation registry `obligations`, `obligations_check` and-`obligations_fallbacks` (the first two only read; the third writes only with `write` or `inputs`;-none waives, attests or binds: those are the user's decisions and have no tool, see "Rules" in-[whole-app.md](whole-app.md)), and for a new app `new` and `spec_check`.-If the MCP tools are not available, use the CLI; if `rust-anything` is not installed, ask the user-to install it (`cargo install rust-anything`) and run-`rust-anything setup`, then restart the agent. When a step fails because a runtime, the agent-setup or the MCP server is missing or out of date, run `rust-anything doctor`: it checks each one-and prints the command that fixes it.+Tools: the `rust-anything` CLI (`rust-anything --help` lists every command). `obligations waive`,+`obligations attest` and rust/obligations-bindings.toml hold the user's decisions: do not run or+write them yourself, see "Rules" in [whole-app.md](whole-app.md). If `rust-anything` is not+installed, ask the user to install it (`cargo install rust-anything`). When a step fails because a+runtime is missing or out of date, run `rust-anything doctor`: it checks each one and prints the+command that fixes it.## Only the slow part: `go`diff --git a/tests/plugin.rs b/tests/plugin.rsindex 686c2147..7553945a 100644--- a/tests/plugin.rs+++ b/tests/plugin.rs@@ -21,9 +21,15 @@ fn the_plugin_ships_the_same_skill_and_mcp_server() {}for dir in ["plugin", "directory"] {for file in &files {+ let source = read(&format!("skills/rust-anything/{file}"));+ let expected = if dir == "directory" && file == "SKILL.md" {+ directory_skill(&source)+ } else {+ source+ };assert_eq!(read(&format!("{dir}/skills/rust-anything/{file}")),- read(&format!("skills/rust-anything/{file}")),+ expected,"{dir}/skills/rust-anything/{file} differs from skills/rust-anything/{file}");}@@ -31,6 +37,49 @@ fn the_plugin_ships_the_same_skill_and_mcp_server() {assert_eq!(read("plugin/.mcp.json"), read(".mcp.json"));}+const DIRECTORY_TOOLS: &str = "Tools: the `rust-anything` CLI (`rust-anything --help` lists every command). `obligations waive`,+`obligations attest` and rust/obligations-bindings.toml hold the user's decisions: do not run or+write them yourself, see \"Rules\" in [whole-app.md](whole-app.md). If `rust-anything` is not+installed, ask the user to install it (`cargo install rust-anything`). When a step fails because a+runtime is missing or out of date, run `rust-anything doctor`: it checks each one and prints the+command that fixes it.";++fn directory_skill(source: &str) -> String {+ let start = source+ .find("Tools: the `rust-anything` CLI, or")+ .expect("the skill's Tools paragraph moved: update directory_skill");+ let end_marker = "prints the command that fixes it.";+ let end = start+ + source[start..]+ .find(end_marker)+ .expect("the skill's Tools paragraph moved: update directory_skill")+ + end_marker.len();+ let skill = format!("{}{DIRECTORY_TOOLS}{}", &source[..start], &source[end..]);+ assert!(+ skill.contains("rust-anything CLI or MCP tools,"),+ "the skill description moved: update directory_skill"+ );+ skill.replacen("rust-anything CLI or MCP tools,", "rust-anything CLI,", 1)+}++#[test]+fn the_directory_skill_never_asks_for_the_mcp_server() {+ let skill = read("directory/skills/rust-anything/SKILL.md");+ for needle in [+ "rust-anything mcp",+ "rust-anything setup",+ "MCP tools",+ "MCP server",+ ] {+ assert!(!skill.contains(needle), "directory skill mentions {needle}");+ }+ let plugin = read("directory/.claude-plugin/plugin.json");+ assert!(+ !plugin.contains("mcp"),+ "directory plugin.json mentions mcp"+ );+}+/// The help of a command of the binary, as a person reads it; `None` if it does not exist.fn help(args: &[&str]) -> Option<String> {let out = std::process::Command::new(env!("CARGO_BIN_EXE_rust-anything"))