rysweet/amplihack-rs/oxidizer-workflow
Claude Code and agent skill by rysweet/amplihack-rs
- community
Checking that the SKILL.md file is still in the repository.
Automated Python-to-Rust migration via iterative convergence loops. Treats the Python codebase as the living specification and produces a fully-tested Rust equivalent with zero-tolerance parity validation. Use when migrating Python modules, libraries, or CLIs to Rust. Activates for: migration, oxidize, python to rust, port to rust, rewrite in rust.
Install
npx vskill@latest install rysweet/amplihack-rs/oxidizer-workflowSKILL.md
Oxidizer Workflow Skill
Purpose
Orchestrates the oxidizer-workflow recipe to migrate Python codebases to Rust. The workflow is recursive and goal-seeking — it loops until 100% feature parity is achieved, with quality audit and silent degradation checks on every iteration.
When to Use
- Migrating a Python module, package, or CLI to Rust
- Porting a Python library to a standalone Rust crate
- Creating a Rust binary that replaces a Python tool
Core Principles
- Tests first — Python test coverage must be complete before any porting begins
- Zero tolerance — 100% parity required; partial results are not accepted
- Quality gates — Every iteration runs clippy, fmt, and a full test suite
- No silent degradation — Every feature, edge case, and error path must be preserved
- Iterative convergence — Module-by-module, loop until converged
Required Inputs
| Input | Example | Description | |
|---|---|---|---|
python_package_path | crates/amplihack-recipe/src | Path to the package to migrate | |
rust_target_path | rust/recipe-runner | Where to create the Rust project | |
rust_repo_name | amplihack-recipe-runner | GitHub repo name for the Rust project | |
rust_repo_org | rysweet | GitHub org or user for the repo |
Execution
Via Recipe Runner
Workflow Phases
Convergence Rules
- Each iteration processes one module at a time (core-out strategy)
- Up to 5 unrolled loops in the recipe, plus
max_depth: 8for sub-recipes - The recipe terminates when
convergence_status == "CONVERGED"or
iteration_number > max_iterations (default 30)
- If max iterations reached without convergence, the final summary reports
which modules are still incomplete
Recipe Location
The oxidizer recipe is at:
The recipe is the executable workflow — this skill is the discovery and activation layer. When investigating or customizing the workflow phases, agent prompts, or convergence rules, start with the recipe file above.
Effective Rust Compliance
The oxidizer workflow enforces idiomatic Rust practices aligned with the Effective Rust guide by David Drysdale. Key rules baked into every iteration:
Types (Items 1–6)
- Use Rust's type system to make invalid states unrepresentable (
enumwith data) - Use
Option<T>for optional values — never sentinel values like-1ornull - Use
Result<T, E>for fallible operations — never panic on expected errors - Use the newtype pattern for domain-specific semantics (units, IDs, validated strings)
- Prefer
From/Intoconversions overascasts - Use
thiserrorfor library error types,anyhowfor application error handling
Unsafe (Item 16)
- Avoid writing `unsafe` code — use standard library and crate abstractions instead
- If
unsafeis absolutely required (FFI), isolate it in a wrapper module with safety comments - Run Miri over any
unsafecode - Enable the
unsafe_op_in_unsafe_fnlint
Parallelism (Item 17)
- Prefer channels (
std::sync::mpsc) over shared state when possible - Use
Arc<Mutex<T>>for shared state — keep lock scopes small - Group related data under a single lock to prevent deadlocks
- Never invoke closures or return
MutexGuardwith locks held - Include deadlock detection in CI (
parking_lot::deadlock, ThreadSanitizer)
Tooling (Items 29, 31, 32)
cargo clippy -- -D warningson every iterationcargo fmt --checkon every iterationcargo docto verify documentation compilescargo-udepsto detect unused dependenciescargo-denyfor license and advisory checkscargo benchwithstd::hint::black_boxfor realistic benchmarks
What Success Looks Like
- Rust project builds cleanly (
cargo build) - All tests pass (
cargo test) - Zero clippy warnings (
cargo clippy -- -D warnings) - Formatted (
cargo fmt --check) - Feature parity matrix shows 100% coverage
- No silent degradation detected
- Zero
unsafeblocks (or justified, isolated, and Miri-tested) - Idiomatic Rust types — no sentinel values, no stringly-typed APIs
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingamplifier-bundle/skills/oxidizer-workflow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rysweet/amplihack-rs/oxidizer-workflow)