Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add KilledByAPixel/LittleJS-AI --skill littlejs-conventionsgit clone --depth 1 https://github.com/KilledByAPixel/LittleJS-AIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/killedbyapixel/littlejs-ai/littlejs-conventions)<a href="https://agentmods.dev/skills/killedbyapixel/littlejs-ai/littlejs-conventions"><img src="https://agentmods.dev/badge/skills/killedbyapixel/littlejs-ai/littlejs-conventions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/killedbyapixel/littlejs-ai/littlejs-conventions"><img src="https://agentmods.dev/badge/skills/killedbyapixel/littlejs-ai/littlejs-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00214 | $0.02951 |
| Opus 5.5 | $0.00086 | $0.01180 |
| Sonnet 5.5 | $0.00043 | $0.00590 |
| Haiku 4.5 | $0.00021 | $0.00295 |
Grade A, and why
littlejs-conventions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LittleJS engine conventions
Rules for the LittleJS engine's global API style: call engineInit, vec2, drawTile, etc. directly — no LJS. prefix, no ES-module imports (unless the project already uses the ESM build).
Startup and structure
engineInit(gameInit, gameUpdate, gameUpdatePost, gameRender, gameRenderPost, imageSources)starts the engine — define all five callbacks even if some are empty.gameInitmay beasync; the engine awaits it (putawait box2dInit()at the top of a Box2D game).- Model entities as classes extending
EngineObject— the engine updates, moves, collides, and renders them automatically every frame:
class Player extends EngineObject
{
constructor(pos)
{
super(pos, vec2(1), tile(0), 0, CYAN); // pos, size, tileInfo, angle, color
}
update()
{
this.velocity = keyDirection().scale(.2); // arrows/WASD move the player
// engine applies physics (velocity, gravity, collision) after update()
// no super.update() call is needed
}
}
Spawn once in gameInit with new Player(vec2(0)); it draws itself — no manual draw call. Customize visuals via this.tileInfo / this.color / this.angle, or override render().
- Persisted settings/stats: use
readSaveData/writeSaveData(localStorage-backed, JSON-serialized) — don't hand-roll localStorage. Save data is always an object.readSaveDatareturns{...yourDefault, ...whatWasStored}, so a scalar default spreads to nothing:readSaveData('best', 0)yields{}, not0, and the next arithmetic on it isNaNwith no error. Always pass and read an object —readSaveData('save', {best:0}).best— and write the whole object back withwriteSaveData('save', {best:score}). - 3D is built into the engine (1.19+) — use it, not three.js.
new Render3DPlugin;at the top ofgameInitcreates therender3Dglobal and draws the scene every frame; nothing to import, no CDN. Never declarerender3Dyourself, and keep WebGL on (nosetGLEnable(false)) — the 3D scene draws on the engine's WebGL canvas with 2D and HUD draws over it. Objects arenew EngineObject3D(pos3D, mesh, tileInfo, color)withpos3D/rotation3D/scale3D/velocity3D; meshes come from builders (buildBox,buildSphere,buildCylinder,buildGrid, ...). Aim the camera withrender3D.camera.orbit(target, distance, yaw, pitch),.lookAt(target), or.follow(target, offset, percent)fromgameUpdatePost. The engine still has aThreeJSPluginas well; only use it when the user asks for three.js by name.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago Changed · +3 lines 5619ed1f6d9b
- 26d ago Changed · +1 lines 7b2191d7f7c0
- 1mo ago Changed 3a19cd8cb9da
- 1mo ago Changed · +6 lines 76b1cdbc8702
- 2mo ago Changed · +3 lines 117f4323b96a
- 3mo ago First seen · 65 lines · 214 tokens per session scan A dc8b6e34150d
littlejs-conventions is a skill published in the GitHub repository KilledByAPixel/LittleJS-AI (91 stars, last pushed 10d ago), licensed MIT. It adds 214 tokens to every session and 2,951 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
littlejs-conventions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| littlejs-conventionsKilledByAPixel/LittleJS-AI | Skill | 91 | 10d ago | MIT | A | 214 | Claude Code |
| hearth-codeechoo19/hearth | Skill | 41 | 1mo ago | MIT | A | 88 | Claude Code |
| pixi-vnDRincs-Productions/pixi-vn | Skill | 158 | today | LGPL-2.1 | A | 178 | Claude Code, Codex |
| cppG1Joshi/Agent-Skills | Skill | 15 | 1mo ago | MIT | A | 65 | Claude Code, Codex |
| gpt-proscasella/codex-gpt-pro | Skill | 5 | 7mo ago | MIT | A | 130 | Codex |
| jupyter-notebookNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 18 | Claude Code, Codex |
| effect-developmentpingdotgg/t3code | Skill | 84k | today | MIT | A | 29 | Claude Code, Codex |