wasm-build
Skill2 starsChanged 4 months agoMITView on GitHub
Use when compiling to WebAssembly, choosing Wasm targets, target-selection, validation, WASI Preview 1, WASI Preview 2 / Component Model, browser Wasm, WIT, wasm-bindgen, Emscripten, wasi-sdk, Wasmtime, WasmEdge, Extism, Spin, jco, or diagnosing WebAssembly build failures.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to help plan, build, repair, validate, diagnose, and document WebAssembly workflows across supported languages, …
- Very specific: line 28
If a build fails, classify it with references/failure-diagnosis.md before changing commands, flags, dependency files, target triples, or …
- Distinctive: line 30
When a build path succeeds, recommend documentation updates for build command, validation command, runtime command, toolchain …
- Very specific: line 34
Use references/target-selection.md for environment, artifact, runtime, and host decisions.
- Distinctive: line 42
BUILD: When the current user asks to build, compile, or test Wasm, inspect first, plan, then run project-local build and validation …
- Distinctive: line 45
REPAIR: When the current user asks to fix or make the project reproducible, inspect first, plan, then modify only project files justified …
- Distinctive: line 75
Run helper scripts only when useful and safe.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
wasm-build
Use this skill to help plan, build, repair, validate, diagnose, and document WebAssembly workflows across supported languages, environments, artifact models, and runtimes, including build failure diagnosis. This skill is not a compiler, build system, package manager, runtime adapter, or toolchain installer.
Workflow
- Classify the current user intent as PLAN, BUILD, REPAIR, or VALIDATE using
references/execution-intent.md. - Inspect repository evidence before choosing a build path. Prefer
scripts/inspect-wasm-project.mjswhen a machine-readable report helps. - Detect the source language, toolchain hints, and existing build metadata.
- Identify or clarify the intended execution environment, artifact type, and runtime/host. Treat these as separate dimensions; categories can overlap.
- Choose a compatible toolchain and check available prerequisites.
- Produce a Wasm Build Plan from
assets/build-plan.template.mdbefore modifying project files or executing generated commands. - Execute according to intent and the approval boundary.
- Validate generated or existing artifacts using
references/runtime-validation.mdand, when useful,scripts/inspect-wasm-artifact.mjs. - If a build fails, classify it with
references/failure-diagnosis.mdbefore changing commands, flags, dependency files, target triples, or runtime config. - When a build path succeeds, recommend documentation updates for build command, validation command, runtime command, toolchain prerequisites, target assumptions, and known limitations.
Use references/target-selection.md for environment, artifact, runtime, and
host decisions. Use references/language-recipes.md for language-specific
commands and gotchas.
Intent Modes
- PLAN: Inspect and produce a Wasm Build Plan. Do not modify files, run builds, or install tools.
- BUILD: When the current user asks to build, compile, or test Wasm, inspect first, plan, then run project-local build and validation commands if existing prerequisites are available.
- REPAIR: When the current user asks to fix or make the project reproducible, inspect first, plan, then modify only project files justified by the plan.
- VALIDATE: Inspect existing
.wasmartifacts with the allowlisted validator behavior. Do not rebuild unless the user explicitly asks.
Approval Rule
You may inspect files and produce a build plan without approval. Explicit current user instructions to build, compile, repair, modify, validate, or otherwise perform explicitly requested execution authorize the requested project-local action after inspection and planning. Do not ask for redundant approval for that same project-local action.
Asking for help, diagnosis, guidance, or a plan does not authorize mutation or
execution. In those cases, you must not modify project files. Installing
project-external prerequisites, global tools, system packages, source-language
targets, or modifying anything outside the requested project still requires
explicit approval. Artifact inspection of an already provided .wasm file is
allowed only through the safe allowlisted behavior of
scripts/inspect-wasm-artifact.mjs.
References
references/execution-intent.mdreferences/target-selection.mdreferences/language-recipes.mdreferences/failure-diagnosis.mdreferences/runtime-validation.md
Run helper scripts only when useful and safe. They must remain read-only and must not execute project scripts or install dependencies.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

