melonjs-loading-assets SKILL.md skillB
melonjs-loading-assets from melonjs/melonjs is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add melonjs/melonjs/melonjs-loading-assets@git:20261106.62cc59fPins git:20261106.62cc59f in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- melonjs/melonjs
- Path
packages/melonjs/skills/melonjs-loading-assets/SKILL.md- Versions recorded
- 9
- Latest version
- git:20261106.62cc59f, committed Nov 6, 2026
- First version recorded
- Sep 12, 2026
- Size
- 23,461 bytes
- Repository stars
- 6,441
- License
- MIT
Use this skill for loading and managing game assets in melonJS — the resource descriptor format, the full asset type list, preload versus load, retrieving loaded assets, base URLs and cross-origin settings, and the loading screen. Triggers on: loader, loader.preload, loader.load, resources, getImage, getJSON, getTMX, getGLTF, getVideo, getFont, setBaseURL, setOptions, crossOrigin, withCredentials, credentials, cookies, authenticated assets, CORS, asset, preload, LOADER_COMPLETE, loading…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Loading assets
## The resource descriptor
Every asset is `{ name, type, src }` plus type-specific extras:
```js
import { loader } from "melonjs";
await loader.preload([
{ name: "tiles", type: "image", src: "data/img/tiles.png" },
{ name: "map1", type: "tmx", src: "data/map/map1.tmx" },
{ name: "tileset", type: "tsx", src: "data/map/tileset.tsx" },
{ name: "sfx", type: "audio", src: "data/sfx/" },
{ name: "font", type: "fontface", src: "data/font/PressStart2P.ttf" },
{ name: "atlas", type: "json", src: "data/img/atlas.json" },
]);
```
`preload()` has been awaitable since 19.8. The callback form still works and
takes a third argument to suppress the built-in loading screen:
```js
loader.preload(resources, onLoaded, /* switchToLoadState */ false);
```
## The type list
The type strings are melonJS-specific — this is not a generic loader:
| type | for |
|---|---|
| `"image"` | textures, sprite sheets, normal maps |
| `"json"` | data, texture-atlas descriptors, collision shapes from a shape editor |
| `"tmx"` / `"tsx"` | Tiled maps and external tilesets |
| `"audio"` | sound — **`src` is a directory**, see below |
…Read the whole file at its exact version.
How to install
mdr add melonjs/melonjs/melonjs-loading-assets@sha256:2d67fe52a2f3519eThe line at the top of this page pins the label git:20261106.62cc59f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_clkckcxgvr5u7g2h)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 9 versions of this file, between Sep 12, 2026 and Nov 6, 2026, about one every 7 days. Its first recorded version is graded A and its latest B.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261106.62cc59f latest | 2026-11-06 | 62cc59f | 23,461 B | B | view · diff |
| git:20261102.8d1fb28 | 2026-11-02 | 8d1fb28 | 22,006 B | B | view · diff |
| git:20261028.73bca6f | 2026-10-28 | 73bca6f | 19,850 B | A | view · diff |
| git:20261028.c045d2d | 2026-10-28 | c045d2d | 19,831 B | A | view · diff |
| git:20261021.ce5ddcd | 2026-10-21 | ce5ddcd | 19,751 B | A | view · diff |
| git:20261019.b31051f | 2026-10-19 | b31051f | 15,055 B | A | view · diff |
| git:20260920.3ba74e4 | 2026-09-20 | 3ba74e4 | 13,954 B | A | view · diff |
| git:20260916.2094415 | 2026-09-16 | 2094415 | 13,916 B | A | view · diff |
| git:20260912.e58c42f | 2026-09-12 | e58c42f | 12,355 B | A | view |
Audit of the latest version
- fail: No script tag (matched: <script)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (23461 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
melonjs/melonjs · 6,441 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_clkckcxgvr5u7g2h GET https://markdownregistry.com/api/v1/resolve?ref=melonjs/melonjs/melonjs-loading-assets GET https://markdownregistry.com/api/v1/blob/2d67fe52a2f3519e5e70cf746da48bf360138cd88ed94797bfbb773c532dad02
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.