Adding a MoonBit Package Dependency
SkillDev toolsAdding MoonBit package dependencies to a Golem project. Use when the user asks to add a mooncakes dependency, library, or package to a MoonBit project.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Adding a MoonBit Package Dependency skill
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/moonbit/golem-add-moonbit-package/SKILL.md and read by ahel’s review.
Overview
MoonBit projects manage dependencies through the moon.mod.json file at the project root. Dependencies are published on mooncakes.io and installed with the moon CLI.
Steps
- Edit
moon.mod.json— add the package to the"deps"section - Run
moon install— download and install the dependency - Use the package — import it in your
.mbtfiles
Adding a Dependency
Edit moon.mod.json and add the package under the "deps" object with a version constraint:
{
"name": "my-org/my-project",
"version": "0.1.0",
"deps": {
"example/json-utils": "0.2.0"
}
}
Then install:
moon install
Version Constraints
Specify the version as a string in moon.mod.json. Use the exact version published on mooncakes.io.
Using the Dependency
After installation, reference the package in your moon.pkg.json file's "import" section and use it in your .mbt source files.
In moon.pkg.json:
{
"import": [
"example/json-utils"
]
}
Key Constraints
- Only packages published on mooncakes.io can be added as dependencies
- Ensure the package is compatible with the
wasm/wasm-gcbackend — some MoonBit packages may only support native or JS targets - After adding a dependency, always run
moon installbeforegolem build - Check the package's documentation on mooncakes.io for usage examples and API reference
Signals
- GitHub stars
- 2k
- Forks
- 212
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
golem-add-moonbit-package- Source
- github.com/golemcloud/golem