Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

debug-php-wasm-main-module

Skill by WordPress

Diagnoses crashes in the main PHP.wasm binary, including Asyncify, JSPI, WASM memory growth and runtime trap errors. Written for developers working on PHP WebAssembly builds.

  • Score 78
  • 2k stars
  • GPL-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install debug-php-wasm-main-module

Built from the published package, never by AI.

git clone --depth 1 https://github.com/WordPress/wordpress-playground /tmp/wordpress-playground && mkdir -p ~/.claude/skills && cp -r /tmp/wordpress-playground/.agents/skills/debug-php-wasm-main-module ~/.claude/skills/debug-php-wasm-main-module

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install debug-php-wasm-main-module in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an assistant patterns for debugging crashes in the main PHP.wasm binary. It maps common error messages, such as unreachable, memory access out of bounds, null function or signature mismatch, and SuspendError, to likely causes. It explains how Asyncify and JSPI behave and which functions need instrumentation.

The skill also covers WASM memory growth bugs, tracing the WASM-JS boundary, and test setup gotchas. It lists testing commands and a diagnostic cheat sheet. It is aimed at developers who build or test PHP.wasm and need to investigate RuntimeError or other WASM-related crashes.

Written from the project's SKILL.md and checked against it.

What it can do

  • Asyncify error diagnosisMaps Asyncify error messages to likely missing ASYNCIFY_ONLY functions.
  • JSPI error diagnosisExplains SuspendError messages and how JS frames and JSPI_EXPORTS cause them.
  • Memory growth debuggingDescribes how memory.grow() detaches typed arrays and how to avoid stale references.
  • WASM-JS boundary tracingShows how to inspect JS imports, exports and compiled glue to trace execution.
  • Test infrastructure gotchasLists test pitfalls such as silent errors, unhandled rejections and deprecation notices.
  • Testing commandsLists commands for running PHP-version-specific tests and increasing stack trace depth.

What you need

  • Node.js with the --experimental-wasm-jspi flag for JSPI testing
  • Vitest test setup
  • Docker, for the Dockerfile replace.sh fix
  • A PHP.wasm source build

Try asking

  • Debug this RuntimeError: unreachable in my PHP.wasm Asyncify build
  • Explain why I get SuspendError: trying to suspend JS frames
  • Trace why my PHP.wasm file writes are silent no-ops after memory grows

Good to know

  • Covers the main PHP.wasm binary, not other modules
  • The Asyncify allocation fix applies to Asyncify builds only, not JSPI
  • JSPI bugs stay hidden unless Vitest runs with the JSPI flag

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/debug-php-wasm-main-module/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to debug-php-wasm-main-module

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

debug-php-wasm-main-module: common questions

What errors does this skill help debug?

It covers Asyncify errors such as unreachable and memory access out of bounds, JSPI SuspendError messages, WASM memory growth bugs, and runtime traps.

Why do different PHP versions show different errors for the same bug?

The source says a single missing ASYNCIFY_ONLY function produces different WASM error types depending on the PHP version, because each version compiles the same opcode handler to different WASM code.

Why does my JSPI test seem to run the asyncify build?

The source says that without the --experimental-wasm-jspi flag, wasm-feature-detect returns false and getPHPLoaderModule silently loads the asyncify build.

How do I install debug-php-wasm-main-module?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is debug-php-wasm-main-module free?

The code is published under the GPL-2.0 licence. The service it connects to may have its own pricing.

Is debug-php-wasm-main-module safe to use?

It scores 78 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to debug-php-wasm-main-module?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

debug-php-wasm-main-module Install

Add to stack

Loading.