Skip to content

cogna-dev/moonbit-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

moonbit-skill

An agent skill for writing, building, and testing MoonBit code.

What this skill does

Guides AI agents through MoonBit development tasks:

  • Writing idiomatic MoonBit code (types, traits, error handling, pattern matching)
  • Organising projects with moon.mod.json and moon.pkg
  • Using moon CLI commands (build, test, fmt, info, ide)
  • Testing with snapshot tests and spec-driven development
  • Common patterns and pitfalls

Structure

moonbit-skill/
├── SKILL.md                          # Main skill: workflow, core language, quick reference
└── references/
    ├── language-fundamentals.md      # Traits, generics, closures, async, FFI basics
    ├── tooling.md                    # All moon CLI and moon ide commands
    ├── testing.md                    # Snapshot tests, spec-driven dev, test organisation
    └── patterns.md                   # Idiomatic patterns, anti-patterns

The skill follows Progressive Disclosure:

  1. Metadata (name + description in SKILL.md frontmatter) — always loaded
  2. SKILL.md body — loaded when the skill triggers; covers the most common cases
  3. references/ files — loaded on demand for deeper topics

Installing

Claude Code

Run /plugin in the CLI, select Add Marketplace, and input the marketplace URL.

Manual

Add this repository as a submodule or copy SKILL.md and the references/ directory into your project's skills folder.

License

Apache 2.0 — see LICENSE.

About

Agent skill for MoonBit programming language

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors