actions-and-utilities

actions-and-utilities is a skill for Claude Code, Codex from phaserjs/phaser. It costs 50 tokens per session (4,649 once invoked), scanned A, original, MIT.

A collection of Phaser 4 helpers for arranging and changing groups of game objects. Phaser 4 is a JavaScript framework for making games, and game objects are things such as sprites or other items shown in a scene.

In plain words
What is it for?
Use it to place objects in grids or circles, spread values such as transparency across them, move many objects by set amounts, and work with groups of objects.
Why use it?
It avoids repeating the same positioning or property-changing code for every object in a group.

Skill for Claude CodeCodex

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

Good fit Use it to place objects in grids or circles, spread values such as transparency across them, move many objects by set amounts, and work with groups of objects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaserjs/phaser/actions-and-utilities
About the project

Phaser is an open-source 2D game framework for creating HTML5 games that run in desktop and mobile web browsers with Canvas or WebGL rendering. JavaScript and TypeScript developers use it to build browser games and games distributed through platforms such as YouTube, Discord, Reddit, and Twitch. The catalogue skills support coding-agent workflows for Phaser projects.

phaserjs/phaser · 40,485 stars · on GitHub · phaser.io

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 phaserjs/phaser --skill actions-and-utilities
Clone the repo
git clone --depth 1 https://github.com/phaserjs/phaser

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 actions-and-utilities

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaserjs/phaser/actions-and-utilities/github.svg)](https://agentmods.dev/skills/phaserjs/phaser/actions-and-utilities)
Your own site
<a href="https://agentmods.dev/skills/phaserjs/phaser/actions-and-utilities"><img src="https://agentmods.dev/badge/skills/phaserjs/phaser/actions-and-utilities/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 actions-and-utilities

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaserjs/phaser/actions-and-utilities"><img src="https://agentmods.dev/badge/skills/phaserjs/phaser/actions-and-utilities.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,649 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. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00050 $0.04649
Opus 5.5 $0.00020 $0.01860
Sonnet 5.5 $0.00010 $0.00930
Haiku 4.5 $0.00005 $0.00465

Measured 1mo ago against content hash afcda5352302, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

actions-and-utilities 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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/actions-and-utilities/SKILL.md · 344 lines

How it starts

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

Phaser 4 -- Actions & Utility Functions

Phaser.Actions namespace for batch operations on Game Object arrays, plus Phaser.Utils.Array, Phaser.Utils.Objects, and Phaser.Utils.String helper functions.

Related skills: ../groups-and-containers/SKILL.md, ../sprites-and-images/SKILL.md


Quick Start

// Create 20 sprites and batch-position them in a grid
const sprites = [];
for (let i = 0; i < 20; i++) {
    sprites.push(this.add.sprite(0, 0, 'gem'));
}

// Arrange into a 5x4 grid
Phaser.Actions.GridAlign(sprites, {
    width: 5,
    height: 4,
    cellWidth: 64,
    cellHeight: 64,
    x: 100,
    y: 100
});

// Fade alpha from 0 to 1 across all sprites
Phaser.Actions.Spread(sprites, 'alpha', 0, 1);

// Offset each sprite's x by 10, with a step of 2 per item
Phaser.Actions.IncX(sprites, 10, 2);

// Works with Groups too
const group = this.add.group({ key: 'star', repeat: 11 });
Phaser.Actions.PlaceOnCircle(group.getChildren(), new Phaser.Geom.Circle(400, 300, 200));

Core Concepts

The Actions Pattern

Every Action in Phaser.Actions follows the same pattern:

  1. First argument is always an array of Game Objects (or any objects with the required public properties like x, y, alpha, etc.).
  2. Returns the same array, enabling chaining or pass-through.
  3. Works with Groups by passing group.getChildren().
  4. Actions do NOT store state. They are one-shot batch operations.

PropertyValueSet and PropertyValueInc

Most Set/Inc actions delegate to two core functions:

  • PropertyValueSet(items, key, value, step, index, direction) -- Sets items[i][key] = value + (i * step).
  • PropertyValueInc(items, key, value, step, index, direction) -- Adds items[i][key] += value + (i * step).

The step parameter adds an incremental offset per item. The index and direction parameters control iteration start point and order (1 = forward, -1 = backward).

Geometry-Based Placement

Actions like PlaceOnCircle, PlaceOnLine, RandomRectangle, etc. accept Phaser geometry objects (Phaser.Geom.Circle, Phaser.Geom.Line, etc.), NOT Game Object shapes. If using a Phaser.GameObjects.Circle, pass its .geom property instead.

Read the full file on GitHub · 344 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. 1mo ago First seen · 344 lines · 50 tokens per session scan A afcda5352302

Subscribe to this mod's changes

actions-and-utilities is a skill published in the GitHub repository phaserjs/phaser (40,485 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 4,649 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

phaser3-engineer

!cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat…

buiphucminhtam/forgewright · 71 tokens

THREE.Terrain

Use this guide when an agent must build, modify, inspect, or document a terrain scene with THREE.Terrain. The library creates heightmapped Three.js terrain and provides procedural generators, filters, material blending, decoration tools, grass, image conversion, analysis, and seeded randomness.

IceCreamYou/THREE.Terrain · 0 tokens

onejs-setup-and-overview

Use this skill whenever the user wants to build or set up user interface in a Unity project using OneJS, React, TypeScript, or JSX, e.g. 'add a main menu to my game', 'build a settings screen', 'make a HUD', 'set up OneJS', 'my OneJS panel is blank', 'the UI is not hot reloading'. Covers confirming OneJS is installed…

Singtaa/OneJS · 211 tokens

ai-game-world-design

Complete mastery guide for designing and building AI-powered game worlds — procedural world generation, NPC behavior trees, LLM-driven dialogue systems, emergent storytelling, economy simulation, player modeling, and real-time difficulty adaptation. Covers the full stack from world-building fundamentals to integrating…

nirholas/three.ws · 88 tokens

PuerTS Agent Development Guide

Guide for developing LLM agents based on PuerTsAgent framework — covers resource directory structure, system-prompt, skills, builtin modules, and best practices.

Tencent/puerts · 39 tokens

Install PuerTS for Unity

Guide for downloading and installing PuerTS UPM packages into a Unity project — covers version selection, package dependencies, download/extract and git URL installation methods, and Editor Assistant setup.

Tencent/puerts · 44 tokens