What problem does it solve?
Pretrained models and outdated examples generate obsolete Mojo syntax and incorrect idioms that lead to compile errors and subtle runtime bugs. This Skill provides a concise, up-to-date correction layer of syntax rules and conventions so generated or refactored Mojo is compile-ready and idiomatic.
Core Features & Use Cases
- Removed syntax mapping: lists canonical replacements such as alias → comptime, fn → def, let → var, inout → mut, and Stringable → Writable.
- Language conventions: enforces comptime usage, explicit raises annotations, std.-prefixed imports, Self-qualified struct parameters, correct string indexing and collection literal usage, and ownership/memory patterns.
- Practical use cases: update generated Mojo code to compile, translate projects from older Mojo variants or Python-like examples, and audit constructors, iterator protocols, and origin/memory annotations.
Quick Start
Convert my Mojo file to current syntax, replacing deprecated constructs, fixing imports and string indexing, and return a compile-ready version that follows the latest Mojo conventions.