fix-bug

Reproduce Moon-based bugs, diagnose root causes, create regression tests, and submit PRs.

29|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/Milky2018/wasmoon --skill fix-bug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-bug
Source: https://github.com/Milky2018/wasmoon/tree/main/.claude/skills/fix-bug
Command: npx skills add https://github.com/Milky2018/wasmoon --skill fix-bug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the chaos of manual debugging by providing a structured workflow that automatically creates regression tests and prepares pull requests.

Core Features & Use Cases

  • Reproduction & Analysis: Automatically reproduces bugs and analyzes root causes across WASM compilation stages.
  • Regression Prevention: Creates comprehensive tests before implementing fixes to ensure issues never return.
  • Use Case: When you encounter a failing test or error message, this Skill guides you through systematic investigation, fix implementation, and documentation.

Quick Start

Fix the bug in the failing test 'spec/conversions.wast' by following the systematic workflow.

Frequently Asked Questions about fix-bug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I systematically fix bugs in MoonBit and WebAssembly projects?

Systematic bug fixing involves reproducing the issue, analyzing root causes across WASM compilation stages, creating regression tests before implementing fixes, and submitting documented pull requests. This Skill automates that workflow to ensure reproducibility and prevent regressions.

How do I create regression tests when fixing bugs?

Regression tests are comprehensive test cases created before implementing a fix to verify the bug exists and ensure it never returns. This Skill guides you through test generation based on the bug's reproduction steps and root cause, then validates your fix against those tests.

What's the best way to diagnose bugs in WebAssembly code?

Effective diagnosis requires analyzing error messages, tracing root causes through WASM compilation stages, and reproducing the issue consistently. This Skill automates reproduction and root-cause analysis to identify where failures originate in your WASM workflow.

Can I use this for failing tests in WAST files?

Yes, this Skill handles failing tests in WAST (WebAssembly Script Text) files and other error messages across WASM and MoonBit workflows. It guides you through investigation, fix implementation, and test verification for these specific file formats.

Why should I create tests before fixing bugs?

Tests written before fixes verify the bug exists and serve as regression guards after patching. This approach ensures fixes are minimal, correct, and traceable, reducing the risk of introducing new issues while addressing the original problem.

Does this Skill work with user-reported bugs and crash reports?

Yes, this Skill applies to user-reported bugs, error messages, failing tests, crashes, and reproductions. It standardizes the investigation and fix workflow across different bug types and reporting formats in WASM and MoonBit projects.