melonjs-renderables SKILL.md skillA
melonjs-renderables 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-renderables@git:20261105.7570a25Pins git:20261105.7570a25 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- melonjs/melonjs
- Path
packages/melonjs/skills/melonjs-renderables/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261105.7570a25, committed Nov 5, 2026
- First version recorded
- Sep 20, 2026
- Size
- 16,014 bytes
- Repository stars
- 6,441
- License
- MIT
Use this skill when subclassing Renderable, writing a custom draw() method, handling pointer or click events on game objects, applying post effects and shaders, or controlling draw order. Covers the pos-relative draw contract, isKinematic and input, addPostEffect vs the deprecated shader property, and z-ordering. Triggers on: Tween, easing, animate, Renderable, extends Renderable, draw(, update(, isKinematic, pointerEvent, registerPointerEvent, onClick, addPostEffect, removePostEffect…
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
# Renderables, input and effects
> Subclassing `Renderable`, custom drawing, receiving pointer events, and
> applying post effects — with the traps that produce silently wrong output
> rather than an error.
Everything here is a **silent failure**: the code runs, nothing throws, and the
result is wrong. Those are the cases worth memorising, because nothing in the
type signatures warns you.
## 1. A custom `draw()` must position itself from `this.pos`
The renderer is **not** pre-translated to the renderable's position when `draw()`
is called. `Container.draw` translates by the *container's* own `pos` and then
calls `child.preDraw` / `draw` / `postDraw`; `preDraw` never translates by the
child's `pos`. Read `this.pos` and draw relative to it.
```js
class Marker extends Renderable {
draw(renderer) {
// ✗ draws at the parent container's origin, not at the marker
renderer.fillRect(0, 0, this.width, this.height);
// ✓
renderer.fillRect(this.pos.x, this.pos.y, this.width, this.height);
}
}
```
The symptom is an object that renders correctly at position (0, 0) and appears
stuck at the top-left as soon as you move it.
…Read the whole file at its exact version.
How to install
mdr add melonjs/melonjs/melonjs-renderables@sha256:c030d409f014f66fThe line at the top of this page pins the label git:20261105.7570a25, 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_4me2vlgh5ve46chh)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Sep 20, 2026 and Nov 5, 2026, about one every 8 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261105.7570a25 latest | 2026-11-05 | 7570a25 | 16,014 B | A | view · diff |
| git:20261030.3d5fa8a | 2026-10-30 | 3d5fa8a | 15,438 B | A | view · diff |
| git:20261025.d9abca5 | 2026-10-25 | d9abca5 | 15,355 B | A | view · diff |
| git:20261024.d7db994 | 2026-10-24 | d7db994 | 15,119 B | A | view · diff |
| git:20261011.ea10090 | 2026-10-11 | ea10090 | 13,140 B | A | view · diff |
| git:20261004.ffe5321 | 2026-10-04 | ffe5321 | 12,818 B | A | view · diff |
| git:20260920.3ba74e4 | 2026-09-20 | 3ba74e4 | 12,702 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (16014 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
- pass: No script tag
Source
melonjs/melonjs · 6,441 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_4me2vlgh5ve46chh GET https://markdownregistry.com/api/v1/resolve?ref=melonjs/melonjs/melonjs-renderables GET https://markdownregistry.com/api/v1/blob/c030d409f014f66f9eaf27c015b2fca2074dd9b9d65f693bed4a9755a72296ed
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.