Agent skill
mbt-wasip1-tools
Build small MoonBit WASIp1 CLI tools using the peter-jerry-ye/wasi library, focused on simple read/write tasks (echo, cat, wc, simple file ops). Use when creating or updating CLI examples, scripts, or skills for this repo.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/mbt-wasip1-tools-moonbit-community-wasip1
SKILL.md
MoonBit WASIp1 Tools
Use the examples
- Copy a project from
assets/and modify it. - Each example is a complete MoonBit project with a README.
- Build with
moon build -C <example-dir>and run withwasmtime run --dir host::guest <wasm>.
Path resolution (WASIp1)
- There is no cwd. All paths resolve against preopened directories.
- Resolution uses longest-prefix matching on preopen names.
- Relative paths must match a preopen prefix (for example,
foo/barrequires a preopen namedfoo). - Absolute paths only work when a preopen name starts with
/(for example,--dir /host::/). - If no prefix matches, fail immediately. Do not fall back to trial-and-error.
Unified stdio
@wasi/stdio.stdinimplements@sync_io.Readerand@io.Reader.@wasi/stdio.stdoutand@wasi/stdio.stderrimplement@sync_io.Writerand@io.Writer.
References
references/api.mdsummarizes the core I/O and fs APIs.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?