new-littlejs-game

new-littlejs-game is a skill for Claude Code from KilledByAPixel/LittleJS-AI. It costs 211 tokens per session (4,616 once invoked), scanned A, original, MIT.

A starter project for a complete playable game using the LittleJS game engine. It opens directly from disk in a browser without a server and includes a basic playable loop.

In plain words
What is it for?
Use it to start a new game such as Pong, Breakout, a card game, or a platformer when no other game engine or framework is specified.
Why use it?
It removes the initial setup work needed to begin a new game project. The description does not cover editing an existing game.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Part of the littlejs plugin — 4 skills shipped together

Good fit Use it to start a new game such as Pong, Breakout, a card game, or a platformer when no other game engine or framework is specified.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/killedbyapixel/littlejs-ai/new-littlejs-game
Install

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.

Any agent
npx skills add KilledByAPixel/LittleJS-AI --skill new-littlejs-game
Clone the repo
git clone --depth 1 https://github.com/KilledByAPixel/LittleJS-AI

Made for: Claude Code.

Or install littlejs, the plugin that ships this one along with the rest of its 4 skills.

Wrote 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.

agentmods badge for new-littlejs-game

README.md
[![agentmods](https://agentmods.dev/badge/skills/killedbyapixel/littlejs-ai/new-littlejs-game/github.svg)](https://agentmods.dev/skills/killedbyapixel/littlejs-ai/new-littlejs-game)
Your own site
<a href="https://agentmods.dev/skills/killedbyapixel/littlejs-ai/new-littlejs-game"><img src="https://agentmods.dev/badge/skills/killedbyapixel/littlejs-ai/new-littlejs-game/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.

agentmods 80×15 button for new-littlejs-game

Your own site · 80×15
<a href="https://agentmods.dev/skills/killedbyapixel/littlejs-ai/new-littlejs-game"><img src="https://agentmods.dev/badge/skills/killedbyapixel/littlejs-ai/new-littlejs-game.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 211 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 178
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00211 $0.04616
Opus 5 $0.00105 $0.02308
Sonnet 5 $0.00042 $0.00923
Haiku 4.5 $0.00021 $0.00462

Measured 12d ago against content hash 437815923a49, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

new-littlejs-game 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 12d 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.

skills/new-littlejs-game/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

new-littlejs-game

Scaffold a new playable LittleJS game by copying the closest example game out of this plugin, then pulling gameplay patterns from the closest feature template. The tables below are the answers — don't re-explore the plugin on each new game.

Plugin root: ${CLAUDE_SKILL_DIR}/../.. — referred to as <plugin> below. It contains dist/ (engine builds), examples/ (starter game folders), templates/ (feature references + helper modules), and build.mjs. Treat <plugin> as read-only: never write into it, never scaffold inside it — it is replaced wholesale on plugin updates.

When to invoke

  • The user typed /littlejs:new-littlejs-game (or /new-littlejs-game).
  • The user asks to start/create/build a NEW game ("make a card game", "let's build a platformer"). Offer it conversationally if they're clearly starting fresh.
  • NOT for editing/extending an existing game — just edit it directly.
  • This takes priority over general brainstorming or design-exploration workflows. If another skill wants to interrogate requirements first, scaffold the playable game anyway and let the user redirect from something running. "Make me a game" is a request for a game, not for a design conversation.

Step 0 — Pick the scaffold mode

Two modes; check once:

  • Repo mode — the working directory is a clone of the LittleJS-AI repo (it has examples/emptyGame/ and reference.md). Scaffold into examples/<name>/ with ../../ script paths, exactly as the repo's own games do. Do NOT copy engine/template files — the clone already has them.
  • Standalone mode (the normal case for plugin users) — any other directory. Copy everything the game needs from <plugin> into the project so it is fully self-contained. If the working directory is empty (or only has dotfiles/README), scaffold directly into it; otherwise create ./<name>/ and scaffold there.

Step 1 — Up to 3 quick questions (never blocking)

  1. Game name (camelCase, e.g. memoryMatch) — the folder name in repo mode, the zip/title name in standalone mode. If they don't care, propose one.
  2. Core mechanic / genre in one line — enough to pick the template (Step 2).
  3. Does it need a title/pause menu now or later? (decides whether to wire menus.js from the start.)

Read the full file on GitHub · 210 lines

Changes

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.

  1. 12d ago First seen · 210 lines · 211 tokens per session scan A 437815923a49

Subscribe to this mod's changes

new-littlejs-game is a skill published in the GitHub repository KilledByAPixel/LittleJS-AI (78 stars, last pushed 6d ago), licensed MIT. It adds 211 tokens to every session and 4,616 once invoked, about $0.0011 per session on Opus 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.