Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

melonJS Game Testing

Checks a melonJS game really works in a headless browser by reading its console, renderer and screenshots.

Claude's review

8/10 Specific melonJS verification method: headless run, console noise vs real warnings, renderer awareness, input driving and a symptom table.

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

Use this skill to check that a melonJS game actually works before saying it does: running it in a headless browser, reading the console the engine writes, finding out which renderer the run got, driving the keyboard and the pointer, reading the game's state from outside, and taking a screenshot. Covers what a clean run looks like, the console lines that are noise, and why a game that passes on a software renderer has not been checked on a GPU. Triggers on: test the game, check it works, verify, does it run, headless, Playwright, Puppeteer, screenshot, console errors, end-to-end test, e2e, smoke test, automated test, CI, debug, nothing happens, blank screen, black screen, it does not work.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: melonjs-testing
description: "Use this skill to check that a melonJS game actually works before saying it does: running it in a headless browser, reading the console the engine writes, finding out which renderer the run got, driving the keyboard and the pointer, reading the game's state from outside, and taking a screenshot. Covers what a clean run looks like, the console lines that are noise, and why a game that passes on a software renderer has not been checked on a GPU. Triggers on: test the game, check it works, verify, does it run, headless, Playwright, Puppeteer, screenshot, console errors, end-to-end test, e2e, smoke test, automated test, CI, debug, nothing happens, blank screen, black screen, it does not work."
license: MIT
---

# Checking that a game works

> Most melonJS mistakes are silent: the game starts, logs nothing in red, and
> draws the wrong thing or nothing. Code that compiles has therefore told you
> very little. Run the game, read what the engine printed, and look at a
> frame, before reporting that it works.

## Run it in a headless browser

A scaffolded project is a Vite project: `npm run dev` serves it and prints the
address. Open that address with a browser automation library and collect what
the page says. With Playwright:

```js
import { chromium } from "playwright";

const browser = await chromium.launch();
const page = await browser.newPage();

const lines = [];
page.on("console", (m) => lines.push(`[${m.type()}] ${m.text()}`));
page.on("pageerror", (e) => lines.push(`[pageerror] ${e}`));

await page.goto("http://localhost:5173/");
// the game is ready once init() has resolved (see below for `app`)
await page.waitForFunction(() => globalThis.app?.isInitialized === true);

await page.locator("canvas").screenshot({ path: "frame.png" });
console.log(lines.join("\n"));
await browser.close();
```

Collect **every** console message, whatever its type, and uncaught errors
through `pageerror`. Filtering on `error` alone misses the engine's own
...

From melonjs's repository, MIT licence.

Related skills

  • Checked

    Godot game optimisation

    Profiles a Godot game and fixes common slowdowns in draw calls, physics and memory so it runs more smoothly.

    by jame581 1k
    7/101 credit
  • Checked

    Game Audio Mixing

    Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Game camera tuning

    Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Game Enemy AI

    Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Blender asset optimisation

    Cuts Blender assets down to each platform's budget with LODs, decimation and texture atlases before export.

    by EL4CTEO 3.8k
    7/101 credit
  • Checked

    Three.js game UI

    Designs HUDs, menus, pause screens and touch controls for Three.js games that read well on any screen.

    by majidmanzarpour 3.3k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added