algo-rewrite - Rewrite algorithms through adversarial validation
Rewrites a whole codebase into a sibling v2 through contract extraction, adversarial refutation, benchmarks, testing, verification, and parity audits.
Tags
Updated: 2026-11-27Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Inventory algorithms and data flows
- Extract component contract cards
- Triage correctness and performance
- Generate greenfield replacement ideas
- Refute ideas with adversarial checks
- Compare survivors with benchmarks
- Build red-first v2 components
- Run differential and property tests
- Verify boundaries and concurrency
- Audit feature parity
Inputs
- Target codebase
- Invocation options
- Language toolkit
- Test-practice guidance
- ASK-gate decisions
Outputs
- Sibling v2 codebase
- Contract cards
- Benchmark results
- Differential and property tests
- Verification findings
- Feature parity audit
- Run status and report
Requirements
- Access to the target codebase
- Language toolchain
- Benchmark and test execution
- Required file and process permissions
- Test-practice skill
- Language toolkit or setup derivation
