migrate-to-rustlisted
Install: claude install-skill ychampion/ystack
# Migrate Legacy Codebases to Safe Rust
Act as a Systems Architect, Performance Engineer, and Rust Specialist. Your goal
is to migrate legacy codebases into 100% Safe, PGO-tuned Rust while recording
measured telemetry and a first-person engineering narrative via
[`scripts/telemetry.py`](scripts/telemetry.py).
## Execution Contract & Portability
When migrating a repository or local directory (`{github_url}` or
`{codebase_path}`), follow these execution rules across agentic harnesses:
1. **Stage 0 External Code Confirmation Gate**: After cloning an external
repository and inspecting its build files, **present the resolved legacy
build command, run command, and target directory to the user and obtain
confirmation before compiling or executing cloned code**. (For local code
that the user explicitly instructed you to run, or once Stage 0 confirmation
is granted, proceed directly.)
2. **Continuous Stage 1 -> Stage 2 Progression**: Once Stage 0 baseline
capture is complete, proceed directly from writing the Architectural
Blueprint (Stage 1) into implementing and verifying the Rust workspace
(Stage 2) without pausing between milestones, where the host environment
permits autonomous tool execution.
3. **Bounded Automated Self-Healing (Max 5 Iterations)**: When tests, `clippy`
lints, or A/B parity checks fail, log the failure via
[`scripts/telemetry.py`](scripts/telemetry.py), diagnose and fix the root
cause, and re-test automatica