moonbit-refactoring

Community

Idiomatic MoonBit code refactoring

AuthorHaoxincode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the process of improving MoonBit code quality by making it more idiomatic, maintainable, and efficient, reducing technical debt and enhancing developer productivity.

Core Features & Use Cases

  • API Minimization: Shrinks public APIs to essential exports, improving modularity.
  • Code Transformation: Converts free functions to methods and encourages fluent chaining.
  • Pattern Matching: Promotes the use of expressive pattern matching over simple functions.
  • Idiomatic Constructs: Guides adoption of view types, loop invariants, and explicit qualification.
  • Use Case: Refactor a large MoonBit module to split it into smaller, more focused packages, making the codebase easier to understand and manage.

Quick Start

Use the moonbit-refactoring skill to convert the free function reader_next into a method on the Reader type.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: moonbit-refactoring
Download link: https://github.com/Haoxincode/MoonBash/archive/main.zip#moonbit-refactoring

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.