/all-skills:whamm-dslfrom all-skills
Guide for writing .mm monitor scripts in the whamm! DSL, a DTrace-inspired language for WebAssembly instrumentation. Covers match rules, predicates, variables, and probes.
Ships in all-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
.mm Monitor LanguageA .mm script is the instrumentation program whamm! injects into a WebAssembly binary (or compiles for engine-support). Each script contains global declarations followed by one or more probes. whamm! statically analyses match rules to decide which probes apply at each site, folding away constant guards before injection.
For installing whamm! and running instrumented modules, load the companion whamm skill in this plugin.
A .mm file contains, in order:
use declarations — use lib; imports a named library.report var, var, etc. declared at file scope.name(args) -> ret { .. } (NOT YET IMPLEMENTED).provider:package:event:mode / predicate / { actions }
The predicate is optional. Without it: provider:package:event:mode { actions }.
Hierarchy: wasm (provider) → package → event → mode.
| Package | Events | Modes |
|---|---|---|
opcode | any opcode name or glob | before, after, alt |
func | (any function) | entry, exit (unwind planned) |
block | end | (none) |
| (none) | begin, end, report | (none — top-level probes) |
Globbing examples:
wasm:opcode:*:before # all opcodes, before
wasm::*if:before # if + br_if (empty package = wildcard)
wasm:opcode:*load*|*store*:before # all memory loads and stores
wasm:opcode:call|return_call:before
Type bounds narrow polymorphic args: wasm:opcode:call(arg0: i32):before matches only call sites where arg0 is i32.
Full event and bound-variable tables: see references/events.md.
wasm:opcode:call:before / pc == 25 && arg0 == 1 / {
count++;
}
whamm! performs constant folding on static vars (pc, fid, imm0, …). At a site where pc != 25, the probe is not injected at all. At pc == 25 the dynamic guard arg0 == 1 is emitted inline.
Modes:
before — inject before the opcode executes.after — inject after; result vars res0, res1, … hold the opcode's outputs.alt — replace the opcode; call drop_args() to discard its input args.entry / exit — inject at function entry or exit.| Kind | Declared as | Lifetime | Typical use |
|---|---|---|---|
var | var x: T; or var x: T = v; | Reinitialised on each probe invocation | Temporaries |
unshared var | unshared var x: T; | One instance per match site; retained across visits | Per-callsite counters |
report var | report var x: T; | Alias for report unshared var; printed at program end via WASI | Output accumulators |
frame var | frame var x: T; | Stored on the function frame; shared between func:entry and func:exit | Entry→exit state |
shared var | shared var x: T; | Single instance across ALL sites | NOT YET IMPLEMENTED |
Variables declared inside a probe body behave as unshared var by default.
Full type syntax — ints, floats, str, tuples, maps: see references/language.md.
Count every WebAssembly opcode executed:
report var count: u32;
wasm:opcode:*:before {
count++;
}
report var is global and printed automatically when the instrumented module exits (via WASI). No wasm:report block required for simple scalars.
The bound-variable lists in this skill are derived from the whamm documentation. Per /core:anti-fabrication, confirm the exact variables available at a given match rule with whamm info --rule "<rule>" at the installed version rather than assuming — the authoritative set is what the binary reports.
references/language.md — types, var kinds with examples, operators, strings, tuples, maps; functions (planned)references/events.md — full provider hierarchy, available vs planned, all bound-variable tablesreferences/libraries.md — use, whamm_core built-ins, string memory interop, @static/@init, wasm:report overridereferences/examples.md — annotated .mm scripts: instruction count, branch monitor, call graph, cache simulator, string interopCompanion skill for install and CLI: whamm (same plugin).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins in one repository ship this exact skill · first indexed Aug 22, 2026
108 skills in this plugin
/accessibilityGuide for implementing web accessibility (WCAG). Use when designing UI components, reviewing interfaces for accessibility, or ensuring compliance with W3C WAI standards./actTest GitHub Actions locally using act. Use when debugging workflows locally, testing workflow changes before pushing, or troubleshooting action failures./actionsCreate and configure GitHub Actions. Use when building custom actions, setting up runners, implementing security practices, or publishing to the marketplace./agent-loopGeneric epic-to-PR agent workflow (codename Forge) with 4-phase execution, a 6-tier hierarchy, and paired-team fan-out. Use when coordinating any feature delivery, working an issue or epic ("work epic <id>", "work issue <id>", "use Forge on the next bees ready item", "forge <id>"), picking up an epic in a fresh session (decomposing path) or with pre-existing issues (dispatching path), implementing a multi-step task that benefits from plan→test→implement→review phases, asking clarifying questions before decomposing, forming a team and assigning models per tier, or orchestrating multi-agent workflows. Loads on casual feature requests too — not only when the word "epic" appears.npx claudepluginhub vinnie357/claude-skills --plugin all-skillsOther plugins' skills for the same job