xiaohongshu
xiaohongshu
analyze-wast
Analyze WebAssembly test (WAST) files to debug compilation issues and create regression tests. Use when the user asks to debug or analyze WAST test failures, investigate compilation bugs in wasmoon, or when encountering test failures in spec/*.wast files. Triggers include "analyze wast", "debug w...
Full skill instructions
Debug WebAssembly test files by reproducing issues, analyzing compilation stages, and creating regression tests.
Run the test to observe failures:
./install.sh
./wasmoon test <wast_file_path>
If user provides only a filename (e.g., "elem.wast"), automatically prefix with spec/.
Record:
Use the explore command to examine IR, VCode, and machine code:
./wasmoon explore <wast_file_path> --stage ir vcode mc
Available stages:
ir - Intermediate Representation (SSA form)vcode - Virtual code (platform-independent)mc - Machine code (ARM64 assembly)What to check:
Create a minimal test case:
.wat file./wasmoon test <file>.wast # JIT mode
./wasmoon test --no-jit <file>.wast # Interpreter mode
Locate relevant code:
**/*lowering*.mbt)Write a MoonBit test in testsuite/ to prevent regressions:
test "descriptive_test_name" {
let source =
#|(module
#| (func (export "test") (result i32)
#| i32.const 42
#| )
#|)
let result = compare_jit_interp(source, "test", [])
inspect(result, content="matched")
}
Key points:
#| for multiline WAT sourcecompare_jit_interp(source, func_name, args) runs both JIT and interpreterinspect(result, content="matched") verifies they produce the same output[I32(value)], [I64(value)], [F32(value)], [F64(value)]Test file naming:
<feature>_test.mbtconversions_test.mbt, call_indirect_test.mbtRun the test:
moon test -p testsuite -f <test_file>.mbt
For segfaults or unexplained crashes:
lldb -- ./wasmoon test <file>.wast
(lldb) run
# After crash:
(lldb) bt # View backtrace
# Build and install
moon build && ./install.sh
# Run WAST test
./wasmoon test spec/<file>.wast
# View compilation stages
./wasmoon explore <file>.wat --stage ir vcode mc
# Test with interpreter
./wasmoon test --no-jit <file>.wast
# Run single MoonBit test
moon test -p testsuite -f <test>.mbt
# Debug with LLDB
lldb -- ./wasmoon test <file>.wast
Explain findings to the user, including:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience