What problem does it solve?
This Skill helps you consolidate gale's accumulated CPU and GPU optimization work into cleaner building blocks without sacrificing the measured performance edge or the discipline needed to keep it.
Core Features & Use Cases
- Refactor planning: Organize the codebase around a clearer Sim and Device abstraction while preserving the current solver behavior.
- Performance protection: Keep benchmark baselines, profiling gates, and correctness checks intact during the migration from prototype structure to production structure.
- Workflow discipline: Apply the hard-won rules from prior optimization sessions to avoid comparing mismatched algorithms, misleading measurements, and incomplete validation.
- Use case: When splitting a dense solver implementation into reusable CPU and GPU building blocks, this Skill helps you decide the order of changes and the guardrails required to keep results stable.
Quick Start
Use the gale v2 refactor skill to review the current design, align the refactor plan with docs/gale-v2-refactor.md, and propose the next implementation step without regressing the benchmark baseline.