Loading...
Loading...
Clones, analyzes, plans, and migrates legacy codebases (C++, Fortran, Java, Python, C, Shell) from a GitHub URL or local directory to a modern, high-performance, deterministic, 100% Safe Rust architecture, tracking live telemetry across every task bucket, test failure/fix cycle, and Profile-Guided Optimization (PGO) stage, and producing a first-person AI storytelling report and interactive HTML infographic. Use when migrating a GitHub repository or local codebase to Rust, porting legacy C++, Fortran, Python, or Java workloads to memory-safe Rust, designing Struct-of-Arrays (SoA) or SIMD Rust architectures, or optimizing Rust ports with LLVM PGO. Don't use for unrelated non-Rust refactoring or single-line syntax questions.
npx skill4agent add google/skills migrate-to-rustscripts/telemetry.py{github_url}{codebase_path}clippyscripts/telemetry.pymigration_telemetry.json#![forbid(unsafe_code)]0cargo clippyproptest>= 95%migration_telemetry.jsonN--max-abs-errorlegacy_baselinesafe_rustsoa_simdpgo_ltollvm-profdatamigration_infographic.htmlscripts/telemetry.py render-infographic- [ ] Stage 0: Acquire repo, initialize `migration_telemetry.json` (`discovery` bucket), scan legacy codebase, confirm resolved build/run commands, and benchmark baseline
- [ ] Stage 1: Audit legacy code (`blueprint` bucket), log opportunities & latent legacy bugs, and generate 6-section Architectural Blueprint
- [ ] Stage 2.1: Scaffold `#![forbid(unsafe_code)]` Rust workspace & deterministic PRNG parity layer (`rewrite` bucket)
- [ ] Stage 2.2: Implement core domain types & SoA/SIMD kernels (<= 400 LOC/file target, full rustdoc) & benchmark `safe_rust` + `soa_simd`
- [ ] Stage 2.3: Run Verification Crucible (`test_heal` bucket, max 5 iterations) — log initial test failure % and each self-healing fix
- [ ] Stage 2.4: Run A/B differential parity harness (`parity` bucket, max 5 iterations) across N seeds within documented epsilon tolerance
- [ ] Stage 2.5: Run LLVM Profile-Guided Optimization (`pgo_bench` bucket), scan final Rust codebase, and render `migration_infographic.html`| Parameter | Placeholder | Resolution Strategy |
|---|---|---|
| Source Input | | Accept a GitHub URL ( |
| Original Language / Framework | | Auto-detect from file extensions and build files ( |
| Baseline Run Command | | Identify from |
| Telemetry Ledger | | Initialized via |
~/rust_migrations/{repo_name}git clone {github_url} ~/rust_migrations/{repo_name}scripts/telemetry.py init --telemetry "{workspace_dir}/migration_telemetry.json" --project-name "{project_name}" --legacy-lang "{legacy_language}"discoveryscripts/telemetry.py scan-codebase --phase before{baseline_run_command}-O3Releasescripts/telemetry.py log-benchmark --stage legacy_baselineblueprintscripts/telemetry.py start-bucket --bucket blueprintscripts/telemetry.py log-opportunityrewriterewritescripts/telemetry.py start-bucket --bucket rewrite#![forbid(unsafe_code)]src/lib.rssrc/main.rs<= 400//!///safe_rustsoa_simdscripts/telemetry.py log-benchmarktest_healtest_healscripts/telemetry.py start-bucket --bucket test_healproptestcargo test --all-targetscargo test --doccargo clippy --all-targetsscripts/telemetry.py log-test-run00parityparityscripts/telemetry.py start-bucket --bucket parityN{baseline_run_command}scripts/telemetry.py log-parity-runpgo_benchpgo_benchscripts/telemetry.py start-bucket --bucket pgo_benchRUSTFLAGS="-Cprofile-generate=./pgo-data"llvm-profdataRUSTFLAGS="-Cprofile-use=./pgo-data/merged.profdata"lto = "fat"-Ctarget-cpu=nativellvm-profdatapgo_ltoscripts/telemetry.py log-benchmark --stage pgo_ltoscripts/telemetry.py scan-codebase --phase aftersrc/<= 400unsafescripts/telemetry.py log-spotlightscripts/telemetry.py set-storypgo_bench{skill_dir}SKILL.mdpython3 "{skill_dir}/scripts/telemetry.py" render-infographic \
--telemetry "{workspace_dir}/migration_telemetry.json" \
--out "{output_dir}/migration_infographic.html" \
--scope-summary "{short_summary_of_ported_modules}"migration_infographic.htmlscripts/telemetry.py