ワンクリックで
phaser-development
Best practices for building performant 2D web games with Phaser 3, React integration, and TypeScript.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Best practices for building performant 2D web games with Phaser 3, React integration, and TypeScript.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Verified contract addresses for major Ethereum protocols across mainnet and L2s. Use this instead of guessing or hallucinating addresses. Includes Uniswap, Aave, Compound, Aerodrome, GMX, Pendle, Velodrome, Camelot, SyncSwap, Lido, Rocket Pool, 1inch, Permit2, MakerDAO/sDAI, EigenLayer, Across, Chainlink CCIP, Yearn V3, USDC, USDT, DAI, ENS, Safe, Chainlink, and more. Always verify addresses against a block explorer before sending transactions.
Deep EVM smart contract security audit system. Use when asked to audit a contract, find vulnerabilities, review code for security issues, or file security issues on a GitHub repo. Covers 500+ non-obvious checklist items across 19 domains via parallel sub-agents. Different from the security skill (which teaches defensive coding) — this is for systematically auditing contracts you didn't write.
DeFi legos and protocol composability on Ethereum and L2s. Major protocols per chain — Aerodrome on Base, GMX/Pendle on Arbitrum, Velodrome on Optimism — plus mainnet primitives (Uniswap, Aave, Compound, Curve). How they work, how to build on them, and how to combine them. Use when building DeFi integrations, choosing protocols on a specific L2, designing yield strategies, or composing existing protocols into something new.
The essential mental models for building onchain — focused on what LLMs get wrong and what humans need explained. "Nothing is automatic" and "incentives are everything" are the core messages. Use when your human is new to onchain development, when they're designing a system, or when they ask "how does this actually work?" Also use when YOU are designing a system — the state machine + incentive framework catches design mistakes before they become dead code.
Deprecated: this skill has moved to addresses.
Deprecated: this skill has moved to building-blocks.
| name | Phaser Development |
| description | Best practices for building performant 2D web games with Phaser 3, React integration, and TypeScript. |
Phaser 3 is a fast, free, and open-source HTML5 game framework. This skill provides guidance for architecting complex 2D games, specifically integrated with modern React/TypeScript stacks.
Always manage the game instance lifecycle. In React, use useRef for the container and useEffect to initialize/destroy.
const gameRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const config = { ... };
const game = new Phaser.Game(config);
return () => game.destroy(true);
}, []);
Scenes are the building blocks. Use multiple scenes for overlays (UI, Hud).
preload(): Load assets (images, audio, json).create(): Initialize objects, input, and animations.update(time, delta): Main game loop logic.String(value) for numbers to satisfy strict linting.Enable interactivity via .setInteractive().
object.setInteractive().on('pointerdown', (pointer) => {
// Handle click/touch
});
Use Tweens for smooth transitions instead of manual update math where possible.
scene.tweens.add({
targets: object,
alpha: 0,
duration: 1000,
onComplete: () => object.destroy()
});
Pass callbacks from React props to the Phaser Scene via the scene init or data parameter.
const PhaserGame = ({ onEvent }) => {
useEffect(() => {
class MyScene extends Phaser.Scene {
create() {
this.events.on('custom-event', onEvent);
}
}
}, [onEvent]);
};
scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH }.onComplete or Scene shutdown.input.setPollAlways() for smoother mouse tracking if needed, but be mindful of CPU.SceneData.Phaser.GameObjects.Sprite).any in scene events by typing the event emitter.