Skip to main content

writing-rewrite-rules

Stars13
Forks1
UpdatedApril 21, 2026 at 17:39

Use this skill when creating ONNX rewrite rules that transform parts of an ONNX model graph, such as replacing standard ops with custom or fused ops. Covers the onnxscript.rewriter RewriteRuleClassBase API, pattern matching with op functions, check/rewrite method conventions, file organization under src/mobius/rewrite_rules/, and testing patterns for verifying rule correctness.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly