Agent skill
portable-safe-skills
Create portable, safe Codex skills focused on file or I/O operations under WASIp1 constraints. Use when authoring skills that must be portable across environments and avoid unsafe assumptions about paths, preopens, or stdio.
Install this agent skill to your Project
npx add-skill https://github.com/moonbit-community/wasip1/tree/main/skills/portable-safe-skills
SKILL.md
Portable and Safe Skills
Use skill-creator
- Follow the
skill-creatorworkflow for skill structure, naming, and packaging. - Keep SKILL.md short and move detailed content to
references/orassets/.
Required dependency
- Use
mbt-wasip1-toolsfor concrete CLI patterns (echo, wc, read/write) and example project structure.
Constraints to document
- WASIp1 path resolution uses longest-prefix matching against preopen names. No cwd. No fallback.
- Absolute paths only work if a preopen named
/(or starting with/) exists. - Stdio is unified:
@wasi/stdiovalues implement both sync and async reader/writer traits.
Minimal workflow
- Start from an
assets/example inmbt-wasip1-tools. - Keep logic simple and deterministic; only I/O is async.
- Document the required
wasmtime run --dir host::guestusage and expected preopens. - Add a README to each example with build/run commands.
- Package the skill using the
skill-creatorguidelines when done.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
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.
evolving-workflow
Templates for building parallel AI agent workflows in MoonBit. Includes patterns for simple fan-out processing and multi-phase orchestration with automatic retry and validation.
codex-parallel-subagents
[DEPRECATED] Run multiple AI agent threads in parallel with bounded concurrency. Use evolving-workflow instead.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?