What problem does it solve? Integrating FlagGems portable compiler kernels into a torch-fl accelerator backend is error-prone: environment mismatches, non-idempotent codegen, RNG state bugs, and inflated support claims from routing tables that were never measured. This Skill provides a rigorous, step-by-step workflow to enable and validate FlagGems operator routing with real hardware evidence. ## Core Features & Use Cases - Environment Isolation and Discovery: Records torch, FlagGems, and Triton versions, isolates vendor compiler environments, and runs torchgen-based discovery via codegen_ops.py without leaking a second PyTorch into the build. - Idempotent Code Generation: Verifies the generator produces identical patches across runs and regenerates wrappers, registration, and platform conf files together. - Measured Correctness Validation: Runs config consistency tests, RNG state probes, and a per-overload CPU-referenced survey producing STRICT, BASIC_ONLY, FAILED, or UNTESTED verdicts. - Use Case: After bringing up a new Ascend or MUSA platform, use this Skill to route operators to FlagGems, measure per-overload correctness on hardware, and update operator-support documentation with honest evidence. ## Quick Start Use the flaggems-integration skill to enable FlagGems routing on my accelerator platform and validate the operator support with the overload survey.