スキル一覧に戻る
mvillmow

mojo-build-package

by mvillmow

Training framework written in Mojo

11🍴 4📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: mojo-build-package description: "Build Mojo packages (.mojopkg files) for distribution. Use when creating distributable libraries or during packaging phase." mcp_fallback: none category: mojo agent: test-engineer user-invocable: false

Mojo Build Package Skill

Build compiled Mojo packages for distribution and reuse.

When to Use

  • Creating distributable libraries
  • Packaging phase of development
  • Preparing for package installation
  • Building modular components

Quick Reference

# Build single package
mojo package src/tensor -o packages/tensor.mojopkg

# Build and test
./scripts/build_package.sh tensor --test

# Build all packages
./scripts/build_all_packages.sh

Workflow

  1. Verify structure - Check __init__.mojo exists
  2. Build package - Run mojo package or script
  3. Test imports - Verify package can be imported
  4. Verify exports - Check __all__ in __init__.mojo

Mojo-Specific Notes

  • Every package needs __init__.mojo entry point
  • Export public API in __all__ list
  • Packages compile to .mojopkg binary format
  • No circular dependencies allowed

Error Handling

ErrorCauseSolution
Missing __init__.mojoNo package entry pointAdd __init__.mojo to package dir
Circular dependencyModules depend on each otherRefactor to break cycle
Export not foundMissing from __all__Add name to __all__ list
Build failedSyntax errors in moduleFix syntax before building

References

  • .claude/shared/mojo-guidelines.md - Function definition patterns
  • Package metadata template: templates/package_toml.toml

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です