From moonbit-skills
Creates formal spec-driven MoonBit APIs and test suites. Sets up spec.mbt, type-checked tests, and module scaffolding for contract-first workflow.
How this skill is triggered — by the user, by Claude, or both
Slash command
/moonbit-skills:moonbit-spec-test-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.npx claudepluginhub moonbitlang/skills --plugin moonbit-skillsExtracts formal API specs and test suites from existing MoonBit implementations. Enables spec-driven testing and documentation of public API surface.
Generates OpenAPI 3.0/3.1 specs and Pact consumer contracts from API code, designs, or schemas for documentation, testing, and code gen.