← All skills

momoka

Create or initialize MoonBit modules, upgrade their dependencies, bump module versions, configure defaults, or install MoonBit toolchains using Momoka through moonx.

$ files
SKILL.md
SKILL.md

Momoka

CommandUse
moonx kokic/momoka -- new <path>Create a module in a new directory.
moonx kokic/momoka -- init [path]Initialize an existing directory; defaults to ./.
moonx kokic/momoka -- upgrade [path...]Upgrade dependencies to their latest versions in one or more module directories; defaults to ./.
moonx kokic/momoka -- bump [path...]Increment the patch version in moon.mod for one or more module directories; defaults to ./.
moonx kokic/momoka -- evol [path...]Run upgrade, then bump, then moon check for one or more module directories; defaults to ./.
moonx kokic/momoka -- cfgConfigure saved defaults interactively.
moonx kokic/momoka -- cfg --showPrint saved defaults.
moonx kokic/momoka -- stableInstall the stable MoonBit toolchain.
moonx kokic/momoka -- nightlyInstall the nightly MoonBit toolchain.

new and init derive the module name from the username and directory basename. They reject existing output files; do not delete those files to force initialization. upgrade processes directories in the supplied order; each must contain moon.mod. bump reads version = "x.y.z" from moon.mod and increments z; it processes directories in the supplied order and leaves every other line unchanged. evol upgrades dependencies, bumps the patch version, then runs moon check, forwarding the check output.

Module options

Pass these options to new or init:

OptionMeaningBuilt-in fallback
--username, -uModule owner and repository usernamePrompt and save
--license, -lModule license identifierApache-2.0
--hostRepository hosting domaingithub.com
--target, -tGenerated module's preferred targetnative

Omitted options use saved preferences from ~/.momoka/preferred.json, then the built-in fallbacks above.

SeekMoon sandbox

Commands such as moonx kokic/momoka -- cfg that write outside the module directory are rejected. Pass equivalent options directly to new or init instead of saving preferences. Explicitly supply --username to avoid prompting for and saving a username to ~/.momoka/preferred.json.

moonx kokic/momoka -- init ./mod --username alice --license MIT --host github.com --target native

Skill
Author
Name
kokic/momoka
Version
0.7.2
Published
10 days ago
Download
Download ZIP

SHA-256

3e04ba2b8e5b4f3fac80591b5309c6b50985b0ee74ca27d57a4869b62baba02e

Powered by MoonBit

Site sourceReport issueModulesSkillsBuild queueStatistics

© 2026 mooncakes.io