Provides authoritative, up-to-date guidance for writing Mojo code that interoperates with Python: importing modules, converting types, building Python extension modules, and common gotchas. It consolidates practical patterns (e.g., PythonObject usage, explicit py= conversions), example code for collections and exception handling, and instructions for exporting Mojo types and functions as Python extension modules.
Use this skill when authoring Mojo code that needs to call existing Python libraries, return Mojo types into Python, or expose Mojo functions/types as Python modules. Also valuable when building extension modules (.so) or when handling nuanced conversion rules between Mojo and Python during integration testing.
Agents that can interpret code and developer docs (Copilot-style/code assistants, Claude Code, Copilot, Cursor). This skill is primarily developer-facing and benefits agents that produce or review code.
This skill has not been reviewed by our automated audit pipeline yet.