What problem does it solve?
This Skill eliminates incorrect or outdated Mojo code generation by providing concise, up-to-date syntax corrections and conventions so generated or human-written Mojo is compilation-ready and idiomatic.
Core Features & Use Cases
- Syntax modernization: Replace removed constructs (alias, fn, let, etc.) with current equivalents (comptime, def, var) and enforce explicit raises and ownership conventions.
- Practical conventions: Enforce std-prefixed imports, string byte-indexing rules, origin annotations, iterator and memory idioms, and common decorator usage.
- Use Cases: Translating projects to Mojo, reviewing AI-generated Mojo code, writing Mojo GPU or runtime code, and preparing examples that must compile with recent Mojo toolchains.
Quick Start
Use the mojo-syntax skill to convert deprecated Mojo constructs in the provided code into modern, compilation-ready Mojo syntax.