OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add moonbitlang/skills --skill moonbit-spec-test-development
Create formal spec-driven MoonBit APIs and test suites. Use when asked to set up a spec.mbt, spec-driven tests, or a formal contract-first workflow (e.g., "set up a formal spec & test suite for Yaml in MoonBit"), including moon.mod.json/moon.pkg.json scaffolding and guidance to implement in separate files.
npx skills add moonbitlang/skills --skill moonbit-spec-test-development
Define a formal API contract in <pkg>_spec.mbt, write type-checked tests against it, and scaffold a minimal MoonBit module so moon check passes before implementation work begins.
moon new (preferred for new projects)moon new, fall back to the moon.mod.json and moon.pkg.json templates.<pkg>_spec.mbt)#declaration_only for all types/functions that will be implemented later.#declaration_only must still have a body: { ... }.pub(all) for types you need to construct in tests; keep pub for opaque types.<pkg>_easy_test.mbt, <pkg>_mid_test.mbt, and <pkg>_difficult_test.mbt (or similar) in the same package.@json.inspect(...) for complex values.moon check to confirm the spec + tests type-check.moon test only after some implementations existreferences/templates.md for scaffolding and file templates.