rustify

rustify is a skill for Claude Code, Codex from tozhax/plumbwork. It costs 161 tokens per session (6,866 once invoked), scanned B, original, MIT.

A guide for moving software written in other languages into Rust, a language that checks memory use during compilation. It also covers FFI, the interface used when Rust code exchanges data with code in another language.

In plain words
What is it for?
Use it to port C, C++, Go, Python, TypeScript, JavaScript, Ruby, Java, Kotlin, PHP, C#, or PowerShell code to Rust, and to build or check bridges between those languages.
Why use it?
It reduces common migration problems such as incorrect ownership, unsafe memory access, changed behavior, and incompatible binary data layouts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Gemini CLI.

Good fit Use it to port C, C++, Go, Python, TypeScript, JavaScript, Ruby, Java, Kotlin, PHP, C#, or PowerShell code to Rust, and to build or check bridges between those languages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tozhax/plumbwork/rustify
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tozhax/plumbwork --skill rustify
Clone the repo
git clone --depth 1 https://github.com/tozhax/plumbwork

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rustify

README.md
[![agentmods](https://agentmods.dev/badge/skills/tozhax/plumbwork/rustify/github.svg)](https://agentmods.dev/skills/tozhax/plumbwork/rustify)
Your own site
<a href="https://agentmods.dev/skills/tozhax/plumbwork/rustify"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/rustify/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rustify

Your own site · 80×15
<a href="https://agentmods.dev/skills/tozhax/plumbwork/rustify"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/rustify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,866 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00161 $0.06866
Opus 5.5 $0.00064 $0.02746
Sonnet 5.5 $0.00032 $0.01373
Haiku 4.5 $0.00016 $0.00687

Measured 2d ago against content hash 6502e9a4ec8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

rustify scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

* **vs. `~/.gemini/config/skills/rust-harden/SKILL.md`, `~/.gemini/config/skills/refactoring/SKILL.md` & `~/.gemini/config/skills/sweetspot/SKILL.md`:** `rustify` governs cross-language porting and Foreign Function Inter
skills/rustify/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rustify: Architectural Migration & Memory-Safe Interop Discipline

Translating source files line-by-line from C, C++, Go, Python, TypeScript/JavaScript, Ruby, Java/Kotlin, PHP, C#, or PowerShell into Rust produces "source-language code in Rust syntax": ubiquitous Arc<Mutex<T>> wrappers, raw *mut T pointer arithmetic, .unwrap() panic landmines, silent as integer truncations, FFI marshaling regressions, and broken Application Binary Interface (ABI) layouts. rustify governs cross-language transformation so ownership, lifetimes, semantic parity, binary layout invariants, and zero-panic guarantees are locked in incrementally with compiler and runtime proof.


1. Adjacent-Skill Boundaries & Co-Loading Map

  • vs. ~/.gemini/config/skills/rust-harden/SKILL.md, ~/.gemini/config/skills/refactoring/SKILL.md & ~/.gemini/config/skills/sweetspot/SKILL.md: rustify governs cross-language porting and Foreign Function Interface (FFI) bridges from C, C++, Go, Python, TypeScript/JavaScript, Ruby, or Java/Kotlin into Rust. Once a crate is already in Rust, use rust-harden (--internal, --contract, or --greenfield) to eliminate intra-Rust .clone() / Arc<Mutex<T>> ownership debt, remove production .unwrap() / .expect() panics, harden tokio::select! cancellation, POSIX privilege drop, or real-time game loops, scaffold greenfield Rust workspaces, and narrow #![no_std] / kernel unsafe blocks; use refactoring for language-agnostic structural moves with zero contract shift; and use sweetspot when profiling/optimizing an already-working Rust crate (--time, --memory, --disk, --net). Never mix premature Single Instruction, Multiple Data (SIMD) or custom-allocator micro-tuning into the initial cross-language migration pass.
  • Sequential Post-Parity Handoff to rust-harden (Anti-Mixing Sequencing Rule): Preserve ~/.gemini/config/skills/harness/references/context-and-artifacts.md §1's Anti-Mixing Sequencing Rule: complete rustify Stage 5 differential parity to 100% green first (and drive strangler-fig fallback to 0% on whole-app cutovers) before applying intra-Rust hardening or structural redesign. Once parity is green, hand off sequentially to ~/.gemini/config/skills/rust-harden/SKILL.md (--internal by default to keep ported pub/ABI/golden-vector contracts intact, or explicitly user-authorized --contract for controlled public Rust API tightening) paired with the matching runtime reference (async-and-userspace.md, kernel-and-unsafe.md, or game-and-realtime.md); if a standalone new workspace skeleton is needed for a lifted crate, run rust-harden --greenfield (greenfield-architecture.md) as a separate sequential pass rather than mixing it into --internal/--contract.
  • vs. ~/.gemini/config/skills/harness/references/dependency-upgrade.md: Use dependency-upgrade when bumping crate versions in Cargo.toml / Cargo.lock or upgrading the Rust toolchain edition (2021 -> 2024) within an existing Rust project.
  • vs. ~/.gemini/config/skills/renew/SKILL.md (Handoff vs. Co-Load):
    • Active/buildable C, C++, Go, Python, TS/JS, Ruby, or Java/Kotlin module -> Rust: Use rustify directly.
    • Obsolete/unbuildable 15+ year legacy software or classic game revived into a Rust target stack: Co-load ~/.gemini/config/skills/renew/SKILL.md with rustify: combine both Stage 1 autopsies and a single merged Stage 2 contract gate (<= 4 questions), pin once in Stage 3, apply renew Stage 4.2 legacy vulnerability sanitization (plus renew Section 6 for classic games) alongside rustify Stage 4, and pass both Stage 5 gates.
  • On-Demand Reference Modules (Load Only What Matches the Source Language):
    • C, C++, #![no_std] firmware, hardware registers, or Foreign Function Interface (FFI) bridges: Read references/c-cpp-abi-and-embedded.md.
    • Go, Python (PyO3/maturin), TypeScript/JavaScript (napi-rs/wasm), Ruby, Java/Kotlin, PHP, C#, or PowerShell bridges, batching (--batch/FnIndex), semantic traps, oracle noise taxonomy, or strangler-fig whole-app cutover: Read references/managed-go-python.md.
  • Co-Loaded Capabilities When Applicable:
    • Optional Pinned rust-anything CLI / MCP Backend: For TS/JS, Python, C, Go, Ruby, Java/Kotlin, PHP, C#, or PowerShell ports, an existing pinned rust-anything (=5.0.2 --locked, version-verified; never passing --agent) CLI/MCP server may automate Stages 1–5 per references/managed-go-python.md §6; when absent, mismatched, failing mid-run, or targeting C++, #![no_std], embedded, or safety-critical crates, execute all five rustify stages manually with native bindgen/cbindgen/cxx/PyO3, golden-vector harnesses, clippy, miri, sanitizers, and cargo kani with zero loss of rigor.
    • Compiled-only .so / .dll / .a / firmware binaries lacking source: Co-load reverse-engineer-anything (rea_rea Model Context Protocol (MCP) server when available) to extract symbol graphs and calling conventions first.
    • Domain type & typestate design: Apply ~/.gemini/config/skills/harness/references/mistake-proofing.md and ~/.gemini/config/skills/harness/references/mistake-proofing-languages.md (Rust section: Prevented vs. Announced).
    • Multi-window (>8 files) migrations: Partition via ~/.gemini/config/skills/harness/references/marathon.md (W1: Characterization & Leaf Types, W2: Interop Seam & Intermediate Logic, W3: Unsafe Purification & Audit). Record target profile and binary layout decisions via ~/.gemini/config/skills/harness/references/adr.md.

Read the full file on GitHub · 130 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 130 lines · 161 tokens per session scan B 6502e9a4ec8b

Subscribe to this mod's changes

rustify is a skill published in the GitHub repository tozhax/plumbwork (33 stars, last pushed 2d ago), licensed MIT. It adds 161 tokens to every session and 6,866 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

rustify compared with skills from other repositories

rustify next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rustifytozhax/plumbworkSkill332d agoMITB161Claude Code, Codex
rust-patternsaffaan-m/ECCSkill316k2d agoMITA28Claude Code, Kiro
update-v8-versionopeninterpreter/openinterpreterSkill69ktodayApache-2.0A86Codex
omh-rustrlaope/oh-my-hermesSkill6.3ktodayMITA19Claude Code
dd-code-generationDataDog/pupSkill1.1ktodayApache-2.0A16Claude Code
swiftidebosun-ai/swiftideSkill813yesterdayMITA43Claude Code, Codex
azure-keyvault-secrets-rustbenjaminasterA/antigravity-awesome-skillsSkill527yesterdayMITA0Claude Code, Codex