一键导入
phase-package
Create distributable packages including .mojopkg files and archives. Use during package phase to prepare components for distribution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create distributable packages including .mojopkg files and archives. Use during package phase to prepare components for distribution.
用 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 | phase-package |
| description | Create distributable packages including .mojopkg files and archives. Use during package phase to prepare components for distribution. |
| mcp_fallback | none |
| category | phase |
| phase | Package |
Create distributable packages including Mojo packages (.mojopkg), archives, and installation procedures.
# Build Mojo package
pixi run mojo build -o packages/module.mojopkg shared/module/
# Create distribution archive
tar -czf dist/ProjectOdyssey-v0.1.0.tar.gz packages/ examples/ README.md
# Test installation
pixi run mojo run -I packages test_import.mojo
.mojopkg filesInput (module source):
shared/tensor/
├── __init__.mojo
├── ops.mojo
└── types.mojo
Output (packaged module):
packages/
├── tensor.mojopkg
├── nn.mojopkg
└── utils.mojopkg
Distribution archive:
ProjectOdyssey-v0.1.0/
├── packages/
├── examples/
├── docs/
├── README.md
├── LICENSE
└── INSTALL.md
Mojo package build:
# Single module
mojo build -o packages/tensor.mojopkg shared/tensor/
# All modules (in loop or script)
for module in shared/*/; do
mojo build -o packages/$(basename $module).mojopkg "$module"
done
Archive creation:
# Tar.gz (Linux/Mac)
tar -czf dist/ProjectOdyssey-v0.1.0.tar.gz packages/ examples/ docs/
# Zip (cross-platform)
zip -r dist/ProjectOdyssey-v0.1.0.zip packages/ examples/ docs/
Before marking package complete:
/packages/<module>.mojopkg/dist/<version>.tar.gz, .zip| Error | Fix |
|---|---|
| Build fails | Check syntax, verify all files in module |
| Import fails | Verify __init__.mojo exports, check paths |
| Archive corrupted | Recreate archive, verify contents |
| Installation fails | Check permissions, test script paths |
| Missing files | Verify all deliverables before packaging |
CLAUDE.md - "Package Phase" in 5-phase workflow.github/workflows/ - Example CI workflowspixi.toml - Build configuration and tasksKey Principle: Package only what's been tested and approved. No untested code in releases.