Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for modern web-based game development. Covers PlayCanvas, Babylon.js Havok, Three.js/R3F Rapier & Jolt Physics, Fixed-Timestep Accumulators, Zero-GC Pooling, ECS (bitECS/Miniplex), Spatial Audio (HRTF), and WebTransport networking / Panduan ahli pengembangan game web modern dan efisien.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
Connects and orchestrates with relevant domain skills:
web-3d-graphics-expert — Visual rendering layer (WebGPU, Three.js, Babylon.js, PlayCanvas).glsl-shader-expert — Custom gameplay shaders, damage flashes, VFX materials.webxr-ar-vr-expert — Spatial controls and VR/AR controller tracking.realtime-collaboration-expert — Low-latency multiplayer state synchronization (WebRTC / WebTransport).performance-web-vitals — Frame budgeting (16.6ms for 60fps, 8.3ms for 120fps) and eliminating Garbage Collection stalls.wasm-edge-computing-expert — Compiling custom Rust/C++ simulation modules to WASM.Production-grade guidance for engineering commercial-quality 2D and 3D web games running at steady 60 to 144+ FPS. Enforces strict game architectural patterns: Fixed-Timestep Accumulators with render interpolation, WebAssembly Physics Engines (Rapier 3D, Jolt Physics, Havok), Zero-GC Object Pooling to eliminate JavaScript garbage collection stutters, Entity Component System (ECS) architectures, Web Audio API 3D Spatial Sound (HRTF), and WebTransport / WebRTC low-latency netcode.
Activate this skill when the user is:
@dimforge/rapier3d, jolt-physics, @babylonjs/havok, or @react-three/rapier.bitECS or miniplex.| Engine / Stack | Dimension | Physics Backend | Key Strengths |
|---|---|---|---|
| PlayCanvas Engine | 3D | Ammo.js / Rapier WASM | Complete production game engine, tiny runtime (~200KB), mobile-first 60fps, built-in sound & input. |
| Babylon.js + Havok | 3D | Havok Physics WASM | AAA physics simulation, native sub-stepping, character controllers, convex decomposition. |
| Three.js / R3F + Rapier / Jolt | 3D | Rapier 3D (Rust) / Jolt (C++) | Modular, massive ecosystem, best for React/Vue indie games and procedural worlds. |
| LittleJS | 2D | Built-in lightweight physics | Micro-size (<50KB), hyper-fast hybrid WebGL/2D canvas, ideal for 2D platformers & game jams. |
| PixiJS v8 | 2D | Matter.js / Rapier 2D | Next-gen WebGPU 2D rendering pipeline, thousands of animated sprites at 144 FPS. |
| Needle Engine | 3D | PhysX / Rapier | Export directly from Unity/Blender into Three.js with full component lifecycles. |
CRITICAL RULE: Never tie physics updates directly to
requestAnimationFramedelta time. A variable delta causes non-deterministic physics, tunneling, and jitter on 120Hz/144Hz monitors.
alpha to interpolate render transforms smoothly between the previous and current physics state.export class GameLoop {
private accumulator = 0;
private lastTime = performance.now();
private readonly FIXED_TIMESTEP = 1 / 60; // 60Hz fixed physics step
private readonly MAX_FRAME_TIME = 0.25; // Clamp to prevent "spiral of death" during lag
constructor(
private updatePhysics: (dt: number) => void,
private render: (alpha: number) => void
) {}
public start() {
this.lastTime = performance.now();
requestAnimationFrame(this.tick);
}
private tick = (currentTime: number) => {
let frameTime = (currentTime - this.lastTime) / 1000;
this.lastTime = currentTime;
// Clamp huge lags (e.g., user changed browser tab)
if (frameTime > this.MAX_FRAME_TIME) {
frameTime = this.MAX_FRAME_TIME;
}
this.accumulator += frameTime;
// Execute fixed updates
while (this.accumulator >= this.FIXED_TIMESTEP) {
this.updatePhysics(this.FIXED_TIMESTEP);
this.accumulator -= this.FIXED_TIMESTEP;
}
// Alpha is the leftover fractional progress towards the next physics step [0.0, 1.0)
const alpha = this.accumulator / this.FIXED_TIMESTEP;
this.render(alpha);
requestAnimationFrame(this.tick);
};
}
Lightweight, determinism-friendly, native support in React Three Fiber (@react-three/rapier):
import { Physics, RigidBody, CuboidCollider } from '@react-three/rapier';
export function GamePhysicsWorld({ children }: { children: React.ReactNode }) {
return (
<Physics gravity={[0, -9.81, 0]} timeStep="vary">
{/* Player Dynamic Capsule */}
<RigidBody position={[0, 2, 0]} enabledRotations={[false, false, false]} colliders="ball">
<mesh>
<sphereGeometry args={[0.5]} />
<meshStandardMaterial color="dodgerblue" />
</mesh>
</RigidBody>
{/* Static Floor */}
<RigidBody type="fixed">
<CuboidCollider args={[20, 0.5, 20]} position={[0, -0.5, 0]} />
</RigidBody>
{children}
</Physics>
);
}
jolt-physics)The AAA open-source physics engine used in titles like Horizon Forbidden West. Best for massive simulations (>2,000 rigid bodies) and advanced ragdolls in vanilla Three.js or Babylon.js.
Physics Best Practice: ALWAYS use primitive colliders (
Sphere,Box,Capsule) for moving dynamic bodies. NEVER useTrimesh(triangle mesh) for dynamic objects;Trimeshshould only be used for static world terrain.
CRITICAL RULE: In games, memory allocation (
new Vector3(),new Bullet()) inside the tick loop triggers V8 Garbage Collection (GC) pauses every few seconds, dropping frames from 60 to 45 FPS.
// BAD: Allocates a new vector every frame
const dir = new THREE.Vector3().subVectors(target, source).normalize();
// GOOD: Reuses module-level scratch vector
const _scratchVec = new THREE.Vector3();
_scratchVec.subVectors(target, source).normalize();
export class ObjectPool<T> {
private pool: T[] = [];
constructor(
private factory: () => T,
private reset: (item: T) => void,
initialSize = 50
) {
for (let i = 0; i < initialSize; i++) {
this.pool.push(this.factory());
}
}
public acquire(): T {
return this.pool.length > 0 ? this.pool.pop()! : this.factory();
}
public release(item: T): void {
this.reset(item);
this.pool.push(item);
}
}
// 1. First-Person / Third-Person Mouse Look
export function setupPointerLock(canvas: HTMLCanvasElement, onLook: (dx: number, dy: number) => void) {
canvas.addEventListener('click', () => {
if (document.pointerLockElement !== canvas) {
canvas.requestPointerLock();
}
});
window.addEventListener('mousemove', (e) => {
if (document.pointerLockElement === canvas) {
onLook(e.movementX, e.movementY);
}
});
}
// 2. Gamepad API with Deadzone Normalization
export function pollGamepad(deadzone = 0.15) {
const gamepads = navigator.getGamepads ? navigator.getGamepads() : [];
const gp = gamepads[0];
if (!gp) return null;
const filterAxis = (val: number) => (Math.abs(val) > deadzone ? val : 0);
return {
moveX: filterAxis(gp.axes[0]),
moveY: filterAxis(gp.axes[1]),
lookX: filterAxis(gp.axes[2]),
lookY: filterAxis(gp.axes[3]),
buttonJump: gp.buttons[0]?.pressed ?? false,
buttonAction: gp.buttons[1]?.pressed ?? false
};
}
export class SpatialAudioManager {
private ctx = new AudioContext();
private listener = this.ctx.listener;
public updateListenerPosition(pos: { x: number; y: number; z: number }, forward: { x: number; y: number; z: number }, up = { x: 0, y: 1, z: 0 }) {
if (this.listener.positionX) {
this.listener.positionX.value = pos.x;
this.listener.positionY.value = pos.y;
this.listener.positionZ.value = pos.z;
this.listener.forwardX.value = forward.x;
this.listener.forwardY.value = forward.y;
this.listener.forwardZ.value = forward.z;
this.listener.upX.value = up.x;
this.listener.upY.value = up.y;
this.listener.upZ.value = up.z;
}
}
public createSpatialSound(audioBuffer: AudioBuffer, pos: { x: number; y: number; z: number }) {
const source = this.ctx.createBufferSource();
source.buffer = audioBuffer;
const panner = this.ctx.createPanner();
panner.panningModel = 'HRTF'; // High-fidelity Head-Related Transfer Function
panner.distanceModel = 'inverse';
panner.refDistance = 1;
panner.maxDistance = 1000;
panner.rolloffFactor = 1;
panner.positionX.value = pos.x;
panner.positionY.value = pos.y;
panner.positionZ.value = pos.z;
source.connect(panner);
panner.connect(this.ctx.destination);
source.start();
}
}
For fast-paced real-time action games:
x, y, z, vx, vy, vz).<a name="bahasa-indonesia"></a>
Terhubung dan mengorkestrasi skill domain yang relevan:
web-3d-graphics-expert — Lapisan visual rendering (WebGPU, Three.js, Babylon.js, PlayCanvas).glsl-shader-expert — Shader kustom untuk efek visual, kilatan luka, dan partikel game.webxr-ar-vr-expert — Kontrol spasial dan pelacakan kontroler VR/AR.realtime-collaboration-expert — Sinkronisasi state multiplayer real-time (WebRTC / WebTransport).performance-web-vitals — Manajemen frame budget (16.6ms untuk 60fps) dan pencegahan Garbage Collection stall.wasm-edge-computing-expert — Kompilasi modul simulasi C++/Rust kustom ke WebAssembly.Panduan produksi untuk merekayasa game web komersial 2D dan 3D dengan target stabil di 60 hingga 144+ FPS. Menerapkan arsitektur game modern: Fixed-Timestep Accumulator dengan interpolasi render, Physics Engine berbasis WebAssembly (Rapier 3D, Jolt Physics, Havok), Zero-GC Object Pooling untuk mencegah lonjakan Garbage Collector JavaScript, arsitektur ECS (Entity Component System), Audio Spasial 3D Web Audio API (HRTF), dan Netcode WebTransport / WebRTC berlatensi rendah.
Aktifkan skill ini ketika pengguna:
@dimforge/rapier3d, jolt-physics, @babylonjs/havok, atau @react-three/rapier.bitECS atau miniplex.Fixed-Timestep Accumulator Loop (Wajib):
requestAnimationFrame. Perubahan refresh rate monitor (60Hz, 120Hz, 144Hz) akan merusak konsistensi fisika.alpha untuk menginterpolasikan posisi render grafis secara mulus.Mesin Fisika WASM (Rapier / Jolt / Havok):
Manajemen Memori Zero-GC:
new Vector3(), objek peluru) setiap frame memicu Garbage Collection di browser yang menyebabkan frame drop berkala.Kontrol Responsif:
movementX dan movementY.Audio Spasial 3D (HRTF):
'HRTF' untuk audio 3 dimensi realistis berdasarkan jarak dan arah.Netcode Modern (WebTransport):
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm.
日本語の概要は準備中です。原文の説明を表示しています。