一键导入
mojo-lint-syntax
Validate Mojo syntax against current v0.26.1+ standards. Use to catch syntax errors before compilation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate Mojo syntax against current v0.26.1+ standards. Use to catch syntax errors before compilation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run section orchestrators to coordinate multi-component workflows. Use when starting work on a section.
Validate agent YAML frontmatter and configuration. Use before committing agent changes or in CI.
Reply to PR review comments using the correct GitHub API endpoint. Use when responding to inline code review feedback (not gh pr comment).
Run Mojo tests using mojo test command. Use when executing tests or verifying test coverage.
Track implementation progress against plan. Use to monitor component delivery and identify blockers.
Check agent configuration coverage across hierarchy levels and phases. Use to ensure complete agent system coverage.
| name | mojo-lint-syntax |
| description | Validate Mojo syntax against current v0.26.1+ standards. Use to catch syntax errors before compilation. |
| category | mojo |
| mcp_fallback | none |
Validate Mojo code against v0.26.1+ syntax standards.
# Validate single executable file (with main())
mojo build -I . file.mojo
# Build entire package (for library files)
mojo package shared
# Format code (fixes many syntax issues)
pixi run mojo format .
# Check for deprecated patterns
grep -r "inout self\|@value\|DynamicVector\|->" *.mojo | grep -v "result\|fn"
IMPORTANT: Library files with relative imports CANNOT be validated using mojo build - use mojo package instead.
Deprecated Patterns:
inout self → ✅ out self in __init__, ✅ mut self in methods@value → ✅ @fieldwise_init with trait listDynamicVector → ✅ List-> (T1, T2) → ✅ -> Tuple[T1, T2]Constructor Issues:
__init__ (must be out self)Copyable, Movable)Type Issues:
Ownership Issues:
^ for non-copyable typesvar parameter incorrectlymojo build -I . file.mojopixi run mojo format to auto-fix stylemojo package shared for library filesReport syntax issues with:
| Problem | Solution |
|---|---|
| Compiler not found | Verify mojo is installed and in PATH |
| Module not found | Add -I . flag to include current directory |
| Encoding issues | Convert file to UTF-8 |
| Version mismatch | Check mojo version against v0.26.1+ |
| Large files | Process one file at a time |
Before committing Mojo code:
mojo build__init__ use out self (not mut self)^ operator