Agent skill

Game Object Components

by autonomous-ai in autonomous-ai/openharness

A skill your agent uses when working with Phaser 4 game object components and the mixin system.

MITAuto-check passedGame Development

Install Game Object Components

skills CLI
$ npx skills add autonomous-ai/openharness --skill game-object-components -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install autonomous-ai/openharness game-object-components --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/autonomous-ai/openharness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/store/agents/phaser/skills/game-object-components .claude/skills/game-object-components && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
game-object-components
GitHub stars
1.1k
Token cost
~5.8k tokens
SKILL.md length
2,119 words
Files
2 (incl. references)
Skills in repo
100
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when working with Phaser 4 game object components and the mixin system.

  • Works in 7 steps: Components are mixed in at class… → Most setter methods return this for… → Many properties use getters/setters… → …
  • Working with Phaser 4 game object components and the mixin system
  • SKILL.md covers Quick Start, Core Concepts, Complete Component Reference and Factory Registration and…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Game Object Components is an agent skill from autonomous-ai/openharness. Use this skill when working with Phaser 4 game object components and the mixin system. Covers Transform, Alpha, Tint, Origin, Depth, Flip, Mask, GetBounds, Lighting, and other shared component behaviors. Triggers on: component, mixin, transform, mask, bounds, lighting.

Its SKILL.md is about 5.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/REFERENCE.md`).

It sits in Game Development, covering 3D graphics and WebGL. The repository describes itself as: The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across… The licence is MIT.

When your agent uses it

  • Working with Phaser 4 game object components and the mixin system
  • Tasks that involve 3D graphics and WebGL

Example prompts

  • “/game-object-components”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Components are mixed in at class creation, not per-instance.
  2. Most setter methods return this for chaining: sprite.setAlpha(0.5).setDepth(10).setPosition(100, 200).
  3. Many properties use getters/setters internally (e.g., alpha, depth, visible, scale, rotation). Setting alpha = 0 or scale = 0 clears…
  4. renderFlags is a bitmask: bit 0 = visible, bit 1 = alpha, bit 2 = scale, bit 3 = texture. All bits must be set for the object to render.
  5. Alpha vs AlphaSingle: Alpha supports per-corner alpha (WebGL), AlphaSingle only supports a single global alpha. Containers use AlphaSingle.
  6. Texture vs TextureCrop: TextureCrop extends Texture with setCrop() support. Sprites and Images use TextureCrop; some objects use plain…
  7. Filters and RenderSteps are v4-only, WebGL-only systems for post-processing.

What it can do on your machine

Read from SKILL.md and the folder at commit 50da5db. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Game Object Components loads about 5.8k tokens when it runs, and up to ~6.7k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 2,119 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~5.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from autonomous-ai/openharness at commit 50da5db, republished under its MIT licence (© autonomous-ai). 2,119 words, ~5,764 tokens.

Download SKILL.mdSave it as .claude/skills/game-object-components/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
game-object-components
description
Use this skill when working with Phaser 4 game object components and the mixin system. Covers Transform, Alpha, Tint, Origin, Depth, Flip, Mask, GetBounds, Lighting, and other shared component behaviors. Triggers on: component, mixin, transform, mask, bounds, lighting.

Phaser 4 -- Game Object Components Reference

Component mixins that provide shared behavior to all Game Objects: Alpha, BlendMode, Depth, Flip, GetBounds, Lighting, Mask, Origin, ScrollFactor, Size, Texture, TextureCrop, Tint, Transform, Visible, PathFollower, RenderNodes, RenderSteps, Filters, FilterList.

Quick Start

js
// Every Game Object gets its component methods via mixins.
// Just call them directly on any game object:
const sprite = this.add.sprite(400, 300, 'hero');

sprite.setAlpha(0.5);                          // Alpha
sprite.setBlendMode(Phaser.BlendModes.ADD);    // BlendMode
sprite.setDepth(10);                           // Depth
sprite.setFlip(true, false);                   // Flip
sprite.setOrigin(0, 0);                        // Origin
sprite.setScrollFactor(0);                     // ScrollFactor (HUD)
sprite.setDisplaySize(64, 64);                 // Size
sprite.setTexture('hero', 'walk-1');           // Texture
sprite.setTint(0xff0000);                      // Tint
sprite.setPosition(100, 200);                  // Transform
sprite.setVisible(false);                      // Visible
sprite.setScale(2);                            // Transform
sprite.setAngle(45);                           // Transform

// Per-corner alpha (WebGL only)
sprite.setAlpha(1, 0.5, 0.5, 1);

// Crop a texture region
sprite.setCrop(0, 0, 32, 32);

// Enable WebGL filters (post-processing)
sprite.enableFilters();
sprite.filters.internal.addBlur(1, 2, 2, 1);

// Lighting (WebGL only, v4 feature)
sprite.setLighting(true);

Core Concepts

The Mixin System

Phaser uses Phaser.Class with a Mixins array to compose Game Objects from reusable component objects. Each component is a plain JS object whose properties and methods are copied onto the class prototype. This is NOT prototypal inheritance -- it is property copying at class definition time.

js
// How Phaser defines Sprite internally:
var Sprite = new Class({
    Extends: GameObject,
    Mixins: [
        Components.Alpha,
        Components.BlendMode,
        Components.Depth,
        Components.Flip,
        Components.GetBounds,
        Components.Lighting,
        Components.Mask,
        Components.Origin,
        Components.RenderNodes,
        Components.ScrollFactor,
        Components.Size,
        Components.TextureCrop,
        Components.Tint,
        Components.Transform,
        Components.Visible,
        SpriteRender
    ],
    initialize: function Sprite (scene, x, y, texture, frame) { /* ... */ }
});
Key Rules
  1. Components are mixed in at class creation, not per-instance.
  2. Most setter methods return this for chaining: sprite.setAlpha(0.5).setDepth(10).setPosition(100, 200).
  3. Many properties use getters/setters internally (e.g., alpha, depth, visible, scale, rotation). Setting alpha = 0 or scale = 0 clears render flags, skipping rendering.
  4. renderFlags is a bitmask: bit 0 = visible, bit 1 = alpha, bit 2 = scale, bit 3 = texture. All bits must be set for the object to render.
  5. Alpha vs AlphaSingle: Alpha supports per-corner alpha (WebGL), AlphaSingle only supports a single global alpha. Containers use AlphaSingle.
  6. Texture vs TextureCrop: TextureCrop extends Texture with setCrop() support. Sprites and Images use TextureCrop; some objects use plain Texture.
  7. Filters and RenderSteps are v4-only, WebGL-only systems for post-processing.

Complete Component Reference

Alpha

Provides per-corner transparency. Used by Sprite, Image, Text, and most renderable objects.

MemberTypeDescription
alphanumber (get/set)Global alpha 0-1. Setting this also sets all four corners. Setting to 0 disables rendering. Default: 1
alphaTopLeftnumber (get/set)Top-left corner alpha. WebGL only.
alphaTopRightnumber (get/set)Top-right corner alpha. WebGL only.
alphaBottomLeftnumber (get/set)Bottom-left corner alpha. WebGL only.
alphaBottomRightnumber (get/set)Bottom-right corner alpha. WebGL only.
setAlpha(topLeft?, topRight?, bottomLeft?, bottomRight?)methodSet alpha. One arg = uniform. Four args = per-corner (WebGL). Returns this.
clearAlpha()methodResets alpha to 1. Returns this.
AlphaSingle

Simplified alpha with no per-corner support. Used by Container.

MemberTypeDescription
alphanumber (get/set)Alpha 0-1. Default: 1
setAlpha(value?)methodSet alpha. Returns this.
clearAlpha()methodResets alpha to 1. Returns this.
BlendMode

Controls how pixels are composited during rendering.

MemberTypeDescription
blendModenumber/string (get/set)Current blend mode. Accepts Phaser.BlendModes const, string, or integer.
setBlendMode(value)methodSet the blend mode. Returns this.

WebGL blend modes: NORMAL, ADD, MULTIPLY, SCREEN, ERASE. Canvas supports additional browser-dependent modes.

Depth

Controls rendering order (z-index). Higher depth renders on top.

MemberTypeDescription
depthnumber (get/set)Depth value. Setting it queues a depth sort. Default: 0
setDepth(value)methodSet depth. Returns this.
setToTop()methodMove to top of display list (no depth change). Returns this.
setToBack()methodMove to back of display list. Returns this.
setAbove(gameObject)methodMove above another Game Object in display list. Returns this.
setBelow(gameObject)methodMove below another Game Object in display list. Returns this.
Flip

Visual mirroring without affecting physics bodies.

MemberTypeDescription
flipXbooleanHorizontal flip state. Default: false
flipYbooleanVertical flip state. Default: false
setFlipX(value)methodSet horizontal flip. Returns this.
setFlipY(value)methodSet vertical flip. Returns this.
setFlip(x, y)methodSet both flip states. Returns this.
toggleFlipX()methodToggle horizontal flip. Returns this.
toggleFlipY()methodToggle vertical flip. Returns this.
resetFlip()methodReset both to false. Returns this.
GetBounds

Calculate positions and bounding rectangles regardless of origin.

MemberTypeDescription
getCenter(output?, includeParent?)methodCenter coordinate. Returns Vector2Like.
getTopLeft(output?, includeParent?)methodTop-left coordinate. Returns Vector2Like.
getTopCenter(output?, includeParent?)methodTop-center coordinate. Returns Vector2Like.
getTopRight(output?, includeParent?)methodTop-right coordinate. Returns Vector2Like.
getLeftCenter(output?, includeParent?)methodLeft-center coordinate. Returns Vector2Like.
getRightCenter(output?, includeParent?)methodRight-center coordinate. Returns Vector2Like.
getBottomLeft(output?, includeParent?)methodBottom-left coordinate. Returns Vector2Like.
getBottomCenter(output?, includeParent?)methodBottom-center coordinate. Returns Vector2Like.
getBottomRight(output?, includeParent?)methodBottom-right coordinate. Returns Vector2Like.
getBounds(output?)methodFull bounding rectangle. Returns Rectangle.

Set includeParent = true to factor in parent Container transforms.

Lighting (v4, WebGL only)

Enables light-based rendering with the Phaser 4 lighting system.

MemberTypeDescription
lightingbooleanWhether to use lighting. Default: false
selfShadowobject{ enabled, penumbra, diffuseFlatThreshold }. Self-shadow settings.
setLighting(enable)methodEnable/disable lighting. Returns this.
setSelfShadow(enabled?, penumbra?, diffuseFlatThreshold?)methodConfigure self-shadow. Pass null for enabled to use game config default. Returns this.
Mask (Canvas only in v4)

Geometry masking for Canvas renderer. In WebGL, use Filters.addMask() instead.

MemberTypeDescription
maskGeometryMaskThe current mask, or null.
setMask(mask)methodApply a GeometryMask. Canvas only. In WebGL, logs a warning. Returns this.
clearMask(destroyMask?)methodRemove the mask. Pass true to also destroy it. Returns this.
createGeometryMask(graphics?)methodCreate a GeometryMask from a Graphics/Shape object. Returns GeometryMask.
Origin

Controls the anchor point for position, rotation, and scale. Normalized 0-1.

MemberTypeDescription
originXnumberHorizontal origin. Default: 0.5 (center)
originYnumberVertical origin. Default: 0.5 (center)
displayOriginXnumber (get/set)Origin in pixels. Setting recalculates originX.
displayOriginYnumber (get/set)Origin in pixels. Setting recalculates originY.
setOrigin(x?, y?)methodSet origin (normalized). y defaults to x. Default: 0.5. Returns this.
setOriginFromFrame()methodSet origin from texture Frame pivot. Returns this.
setDisplayOrigin(x?, y?)methodSet origin in pixels. Returns this.
updateDisplayOrigin()methodRecalculate display origin cache. Returns this.
ScrollFactor

Controls how camera scrolling affects the object's rendered position.

MemberTypeDescription
scrollFactorXnumberHorizontal scroll factor. Default: 1
scrollFactorYnumberVertical scroll factor. Default: 1
setScrollFactor(x, y?)methodSet scroll factor. y defaults to x. Returns this.

Key values: 0 = fixed to camera (HUD element), 1 = moves with camera, 0.5 = parallax half-speed.

Size

Manages native and display dimensions.

MemberTypeDescription
widthnumberNative (un-scaled) width.
heightnumberNative (un-scaled) height.
displayWidthnumber (get/set)Scaled width. Setting adjusts scaleX.
displayHeightnumber (get/set)Scaled height. Setting adjusts scaleY.
setSize(width, height)methodSet native size. Does NOT affect rendered size. Returns this.
setDisplaySize(width, height)methodSet rendered size (adjusts scale). Returns this.
setSizeToFrame(frame?)methodSet size from a texture Frame. Returns this.
Texture

Gets and sets the texture and frame for rendering.

MemberTypeDescription
texturePhaser.Textures.TextureThe current Texture.
framePhaser.Textures.FrameThe current Frame.
setTexture(key, frame?, updateSize?, updateOrigin?)methodSet texture by key. Returns this.
setFrame(frame, updateSize?, updateOrigin?)methodSet frame by name, index, or Frame instance. Updates size and origin by default. Returns this.
TextureCrop

Extends Texture with cropping support. Used by Sprite and Image.

MemberTypeDescription
texturePhaser.Textures.TextureThe current Texture.
framePhaser.Textures.FrameThe current Frame.
isCroppedbooleanWhether cropping is active.
setTexture(key, frame?)methodSet texture by key. Returns this.
setFrame(frame, updateSize?, updateOrigin?)methodSet frame. Also updates crop UVs if cropped. Returns this.
setCrop(x?, y?, width?, height?)methodSet crop rectangle. Pass no args to clear. Accepts a Rectangle as first arg. Returns this.
Tint (WebGL only)

Applies color tinting to the texture via per-corner vertex colors.

MemberTypeDescription
tintnumber (get/set)Uniform tint color (reads tintTopLeft). Default: 0xffffff
tintTopLeftnumberTop-left vertex tint. Default: 0xffffff
tintTopRightnumberTop-right vertex tint. Default: 0xffffff
tintBottomLeftnumberBottom-left vertex tint. Default: 0xffffff
tintBottomRightnumberBottom-right vertex tint. Default: 0xffffff
tintModenumberTint blend mode. Default: Phaser.TintModes.MULTIPLY
isTintedboolean (readonly)True if any tint or mode is set.
setTint(topLeft?, topRight?, bottomLeft?, bottomRight?)methodSet tint colors. One arg = uniform. Returns this.
setTintMode(mode)methodSet tint mode (v4). Modes: MULTIPLY, FILL, ADD, SCREEN, OVERLAY, HARD_LIGHT. Returns this.
clearTint()methodReset to white + MULTIPLY. Returns this.

v4 change: setTintFill() is removed. Use setTint(color).setTintMode(Phaser.TintModes.FILL) instead.

Show full SKILL.md (927 more words)Show less
Transform

Position, scale, rotation, and coordinate transforms.

MemberTypeDescription
xnumberX position. Default: 0
ynumberY position. Default: 0
znumberZ position (NOT rendering order; use depth). Default: 0
wnumberW position. Default: 0
scalenumber (get/set)Uniform scale. Get returns average of scaleX and scaleY.
scaleXnumber (get/set)Horizontal scale. Default: 1
scaleYnumber (get/set)Vertical scale. Default: 1
anglenumber (get/set)Rotation in degrees (clockwise, 0 = right).
rotationnumber (get/set)Rotation in radians.
setPosition(x?, y?, z?, w?)methodSet position. y defaults to x. Returns this.
copyPosition(source)methodCopy x/y/z/w from a Vector-like object. Returns this.
setRandomPosition(x?, y?, width?, height?)methodRandomize position within area. Returns this.
setRotation(radians?)methodSet rotation in radians. Returns this.
setAngle(degrees?)methodSet rotation in degrees. Returns this.
setScale(x?, y?)methodSet scale. y defaults to x. Returns this.
setX(value?)methodSet x. Returns this.
setY(value?)methodSet y. Returns this.
setZ(value?)methodSet z. Returns this.
setW(value?)methodSet w. Returns this.
getLocalTransformMatrix(tempMatrix?)methodGet local transform matrix. Returns TransformMatrix.
getWorldTransformMatrix(tempMatrix?, parentMatrix?)methodGet world transform including parent Containers. Returns TransformMatrix.
getLocalPoint(x, y, point?, camera?)methodConvert world coords to local space. Returns Vector2.
getWorldPoint(point?, tempMatrix?, parentMatrix?)methodGet world position factoring parent containers. Returns Vector2.
getParentRotation()methodSum of all parent container rotations in radians.
Visible

Controls whether the Game Object renders. Invisible objects still run update logic.

MemberTypeDescription
visibleboolean (get/set)Visibility state. Default: true
setVisible(value)methodSet visibility. Returns this.
PathFollower

Manages following a Phaser.Curves.Path using an internal tween.

MemberTypeDescription
pathPhaser.Curves.PathThe Path being followed.
rotateToPathbooleanAuto-rotate to face path direction. Default: false
pathRotationOffsetnumberRotation offset in degrees when rotateToPath is true.
pathOffsetVector2Position offset from path coordinates.
pathVectorVector2Current point on the path.
pathDeltaVector2Distance traveled since last update.
pathTweenTweenThe tween driving path movement.
setPath(path, config?)methodSet a new Path. Returns this.
setRotateToPath(value, offset?)methodEnable auto-rotation. Returns this.
isFollowing()methodReturns true if actively following.
startFollow(config?, startAt?)methodStart following. config can be duration (number) or PathConfig. Returns this.
pauseFollow()methodPause movement. Returns this.
resumeFollow()methodResume movement. Returns this.
stopFollow()methodStop following. Returns this.
RenderNodes, RenderSteps, Filters, FilterList (v4, WebGL only)

For RenderNodes, RenderSteps, and FilterList details, see the filters-and-postfx skill and references/REFERENCE.md.

Key points: Call enableFilters() on game objects before accessing filters. Cameras have filters by default. Use filters.internal for object-local effects and filters.external for screen-space effects.

For a full component-to-game-object matrix, see references/REFERENCE.md.

Factory Registration and Display List

Custom Game Object Factory Registration

Register custom game objects on the factory so they can be created via this.add.myObject():

js
class LaserBeam extends Phaser.GameObjects.Sprite {
    constructor(scene, x, y) {
        super(scene, x, y, 'laser');
    }
}

Phaser.GameObjects.GameObjectFactory.register('laserBeam', function (x, y) {
    const beam = new LaserBeam(this.scene, x, y);
    this.displayList.add(beam);
    return beam;
});

// Now usable in any scene:
const laser = this.add.laserBeam(100, 200);
Factory (this.add) vs Creator (this.make)

this.add creates the object AND adds it to the display list. this.make creates the object but does NOT add it -- useful for off-screen preparation or deferred display.

js
// Added to display list immediately
const visible = this.add.sprite(100, 100, 'hero');

// Created but NOT on the display list
const offscreen = this.make.sprite({ key: 'hero', x: 100, y: 100 });

// Add it later when ready
this.add.existing(offscreen);
GetAdvancedValue for Flexible Config

GetAdvancedValue resolves static values, random arrays, randInt/Float ranges, and callbacks from config objects:

js
// Static value
{ speed: 100 }

// Random from array
{ speed: [100, 200, 300] }

// Random integer range
{ speed: { randInt: [50, 150] } }

// Random float range
{ speed: { randFloat: [0.5, 1.5] } }

// Callback
{ speed: function () { return Math.random() * 100; } }
Display List Ordering

Objects added later render on top of earlier objects. Control ordering with:

js
// Depth-based ordering (higher = on top, triggers sort)
sprite.setDepth(10);

// Display list position (no depth change)
sprite.setToTop();
sprite.setToBack();
sprite.setAbove(otherSprite);
sprite.setBelow(otherSprite);

When both depth and display list position are used, depth takes priority after the next sort pass.

Gotchas

  1. alpha=0 prevents rendering entirely: Setting alpha to 0 clears a render flag bit. The object is not drawn at all, not merely transparent. Same applies to scale = 0 and visible = false.

  2. Flip does not affect physics: Flipping is rendering-only. Physics bodies remain unchanged. Account for this in collision code.

  3. ScrollFactor and physics: Physics collisions use world position. A scroll factor other than 1 offsets where the texture renders but not where the body is. For HUD elements with scroll factor 0, avoid adding physics bodies.

  4. depth vs display list order: setDepth() queues a sort and is the primary z-ordering tool. setToTop(), setAbove(), etc. reorder the display list without changing depth. If you mix both, depth takes priority after the next sort.

  5. Mask component is Canvas-only in v4: For WebGL masking, use enableFilters() then filters.internal.addMask(). The setMask() method logs a warning in WebGL.

  6. setTintFill is removed in v4: Use setTint(color).setTintMode(Phaser.TintModes.FILL) instead.

  7. Tint modes in v4: Tint mode is now separate from tint color. Available modes: MULTIPLY (default), FILL, ADD, SCREEN, OVERLAY, HARD_LIGHT.

  8. displayWidth/displayHeight adjusts scale: Setting displayWidth or displayHeight modifies scaleX/scaleY. It does NOT change width/height.

  9. setSize vs setDisplaySize: setSize() changes internal dimensions (used for frames, physics). setDisplaySize() changes the rendered size by adjusting scale.

  10. Origin default is 0.5: All Game Objects default to center origin. Use setOrigin(0, 0) for top-left positioning. Text and BitmapText instead default to top-left positioning.

  11. Transform.z is NOT depth: The z property on Transform is for custom use. Rendering order is controlled by depth (Depth component) or display list position.

  12. Filters are expensive: Each object with active filters requires extra draw calls. Use renderFilters = false to temporarily disable. Internal filters are cheaper than external.

Source File Map

FileDescription
src/gameobjects/components/index.jsComponent registry, exports all components
src/gameobjects/components/Alpha.jsPer-corner alpha mixin
src/gameobjects/components/AlphaSingle.jsSingle-value alpha mixin
src/gameobjects/components/BlendMode.jsBlend mode mixin
src/gameobjects/components/Depth.jsDepth/z-order mixin
src/gameobjects/components/Flip.jsVisual flip mixin
src/gameobjects/components/GetBounds.jsBounds calculation mixin
src/gameobjects/components/Lighting.jsv4 lighting mixin
src/gameobjects/components/Mask.jsCanvas geometry mask mixin
src/gameobjects/components/Origin.jsOrigin/anchor mixin
src/gameobjects/components/ScrollFactor.jsCamera scroll factor mixin
src/gameobjects/components/Size.jsDimensions mixin
src/gameobjects/components/Texture.jsTexture/frame assignment mixin
src/gameobjects/components/TextureCrop.jsTexture with crop support mixin
src/gameobjects/components/Tint.jsVertex color tinting mixin
src/gameobjects/components/Transform.jsPosition/scale/rotation mixin
src/gameobjects/components/Visible.jsVisibility mixin
src/gameobjects/components/PathFollower.jsPath-following mixin
src/gameobjects/components/RenderNodes.jsv4 WebGL render node mixin
src/gameobjects/components/RenderSteps.jsv4 WebGL render step mixin
src/gameobjects/components/Filters.jsv4 WebGL filter system mixin
src/gameobjects/components/FilterList.jsv4 filter list class (add effects)
src/gameobjects/components/TransformMatrix.js2D transform matrix utility

Related skills: sprites-and-images.md, custom-game-objects.md

© autonomous-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in store/agents/phaser/skills/game-object-components of autonomous-ai/openharness.

  • SKILL.md
  • references/REFERENCE.md

Open the folder on GitHubat commit 50da5db

Compare with similar skills

Game Object Components next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Game Object Components compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Game Object Components this skillautonomous-ai/openharness1.1k—~5.8kAutomated safety check: PassMIT
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k2 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.4k—~2.2kAutomated safety check: PassMIT
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 2 repos~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.4k GitHub stars~2.2k tokensUpdated 10 days ago
    Game DevelopmentAuto-check passed
  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 6 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Threejs World Generation

    calesthio/OpenMontage

    Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.

    65k GitHub stars~2k tokensUpdated 4 days ago
    Game DevelopmentAuto-check passed

More from autonomous-ai/openharness

All 100 skills in this repo
  • G-code Slicer Tool

    autonomous-ai/openharness

    Slices 3D mesh files into printer-profiled plain G-code through real slicer CLIs, with backend discovery, input inspection, dry runs and static validation.

    1.1k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Home Assistant Automation Builder

    autonomous-ai/openharness

    Turns a home-automation request into standard, testable automations.yaml, run against Home Assistant Core's real triggers and verified with its own trace tool.

    1.1k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Score Music Composer

    autonomous-ai/openharness

    Turns a musical brief into LilyPond concert-pitch music, checked parts for each instrument and a playable practice pack.

    1.1k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • OrcaSlicer 3MF and G-code Workflow

    autonomous-ai/openharness

    Turns an STL and explicit printer and material requirements into compared OrcaSlicer plans, an editable 3MF project, checked G-code and a portable handoff.

    1.1k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Sheets and Docs Report Builder

    autonomous-ai/openharness

    Builds an editable DOCX report, a formula-driven XLSX workbook and a fresh LibreOffice PDF preview from one structured source file, then checks them together.

    1.1k GitHub stars~708 tokensUpdated today
    Auto-check passed
  • Bambu Labs

    autonomous-ai/openharness

    Dry-run, upload, and cautiously initiate local Bambu Lab print jobs from validated plain .gcode, using Bambu LAN FTPS/MQTT handoffs.

    1.1k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check: warnings

Questions about Game Object Components

What does Game Object Components do?

A skill your agent uses when working with Phaser 4 game object components and the mixin system. Game Object Components is an agent skill from autonomous-ai/openharness. Use this skill when working with Phaser 4 game object components and the mixin system.

When should I use Game Object Components?

Game Object Components fits situations like: working with Phaser 4 game object components and the mixin system; tasks that involve 3D graphics and WebGL.

How do I install Game Object Components in Claude Code?

Run `npx skills add autonomous-ai/openharness --skill game-object-components -a claude-code`. Or copy the skill folder (store/agents/phaser/skills/game-object-components in autonomous-ai/openharness) into .claude/skills/game-object-components in your project. Claude Code loads it when a task matches its description.

How do I install Game Object Components in Codex?

Run `npx skills add autonomous-ai/openharness --skill game-object-components -a codex`. Or copy the skill folder (store/agents/phaser/skills/game-object-components in autonomous-ai/openharness) into .agents/skills/game-object-components in your project. Codex loads it when a task matches its description.

Can I use Game Object Components in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add autonomous-ai/openharness --skill game-object-components -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/game-object-components, .gemini/skills/game-object-components, .github/skills/game-object-components and .opencode/skills/game-object-components in your project.

What does Game Object Components need to run?

SKILL.md names no scripts, command-line tools or credentials: Game Object Components is instructions for the agent only.

Does Game Object Components access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Game Object Components safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Game Object Components use?

Game Object Components is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Game Object Components use?

About 5.8k tokens (SKILL.md is roughly 23k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 964 tokens, read only when the agent opens those files.

What are the alternatives to Game Object Components?

Skills that share tags, products or a category with Game Object Components: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.4k stars) and Game Asset Generator (htdt/godogen, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Game Object Components?

autonomous-ai (a GitHub organization) maintains it in autonomous-ai/openharness, which has 1,149 GitHub stars. The repository holds 100 skills in this directory. The repository was last updated on October 8, 2026.

Source: autonomous-ai/openharness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.