phaser-pixi-2d-games

phaser-pixi-2d-games is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 86 tokens per session (1,774 once invoked), scanned A, original, Apache-2.0.

A guide to making 2D web games with Phaser or PixiJS in TypeScript. Phaser is a complete game framework, while PixiJS mainly draws graphics, so the surrounding game systems differ.

In plain words
What is it for?
Use it to organise scenes, game objects, physics, input, assets, animation, scaling, and cleanup in Phaser or PixiJS projects.
Why use it?
It helps choose the right library and keeps game rules separate from rendering code, making those rules easier to test and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to organise scenes, game objects, physics, input, assets, animation, scaling, and cleanup in Phaser or PixiJS projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/phaser-pixi-2d-games
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 makifbaysal/tasktrooper --skill phaser-pixi-2d-games
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

Made for: Claude Code, Codex.

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 phaser-pixi-2d-games

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/phaser-pixi-2d-games/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/phaser-pixi-2d-games)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/phaser-pixi-2d-games"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/phaser-pixi-2d-games/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 phaser-pixi-2d-games

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/phaser-pixi-2d-games"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/phaser-pixi-2d-games.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,774 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.
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.00086 $0.01774
Opus 5.5 $0.00034 $0.00710
Sonnet 5.5 $0.00017 $0.00355
Haiku 4.5 $0.00009 $0.00177

Measured 4d ago against content hash 926a77e7689f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

phaser-pixi-2d-games 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 4d 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.

catalog/agents/game-developer/skills/phaser-pixi-2d-games/SKILL.md · 122 lines

How it starts

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

Phaser and PixiJS 2D Games

Overview

Phaser is a game framework: scenes, game objects, input, physics, audio, tweens, a loader and a scale manager. PixiJS is a fast 2D renderer: display objects, textures and a ticker — scenes, physics, input mapping and audio are yours to add. Pick by what the repository already uses; never put both in one game.

Core principle: The engine draws and dispatches; rules live in plain TypeScript modules with no engine import, so Vitest can run them (web-game-performance-and-testing).

Phaser: structure

// main.ts
new Phaser.Game({
  type: Phaser.AUTO,
  parent: "game",
  backgroundColor: "#101018",
  scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, width: 1280, height: 720 },
  physics: { default: "arcade", arcade: { gravity: { x: 0, y: 900 }, debug: false } },
  scene: [BootScene, PreloadScene, GameScene, HudScene],
});
// GameScene.ts — the scene wires engine objects to plain rules
export class GameScene extends Phaser.Scene {
  private player!: Player;
  private bullets!: Phaser.Physics.Arcade.Group;
  private rules!: CombatRules;                       // plain TS, no Phaser import

  constructor() { super("Game"); }

  create(data: { seed: number }): void {
    this.rules = new CombatRules(definitions.combat, mulberry32(data.seed ?? Date.now()));
    this.player = new Player(this, 200, 500);
    this.bullets = this.physics.add.group({ classType: Bullet, maxSize: 64, runChildUpdate: true });
    this.physics.add.overlap(this.bullets, this.enemies, (b, e) => this.onHit(b as Bullet, e as Enemy));
    this.scene.launch("Hud");                        // HUD as a parallel scene listening to events
    this.events.once(Phaser.Scenes.Events.SHUTDOWN, () => this.cleanup());
  }

  update(_time: number, deltaMs: number): void {
    this.rules.tick(deltaMs / 1000);                  // Phaser's delta is milliseconds
    this.player.applyIntent(this.input.keyboard!, deltaMs / 1000);
  }

  private fire(x: number, y: number): void {
    const b = this.bullets.get(x, y) as Bullet | null;  // reuse from the pool; null when maxSize reached
    b?.launch(600);
  }

  private cleanup(): void {
    this.game.events.off("settings-changed", this.applySettings, this);
  }
}

Read the full file on GitHub · 122 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. 4d ago First seen · 122 lines · 86 tokens per session scan A 926a77e7689f

Subscribe to this mod's changes

phaser-pixi-2d-games is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 86 tokens to every session and 1,774 once invoked, about $0.0003 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-10-09.