game-engine

game-engine is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 95 tokens per session (1,434 once invoked), scanned A, original, MIT.

A guide for building web-based games and game engines with HTML, JavaScript, Canvas, WebGL, or SVG. It covers both two-dimensional and three-dimensional game development.

In plain words
What is it for?
Use it to create games, add keyboard, mouse, touch, or gamepad controls, work with sprites and tilemaps, implement multiplayer features, or publish web games.
Why use it?
It provides direction for the many parts of a game, such as the update loop, physics, collisions, rendering, controls, sound, and performance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to create games, add keyboard, mouse, touch, or gamepad controls, work with sprites and tilemaps, implement multiplayer features, or publish web games.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boshi-xixixi/traeskill/game-engine
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 boshi-xixixi/TraeSkill --skill game-engine
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

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 game-engine

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/game-engine/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/game-engine)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/game-engine"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/game-engine/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 game-engine

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/game-engine"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/game-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,434 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.00095 $0.01434
Opus 5.5 $0.00038 $0.00574
Sonnet 5.5 $0.00019 $0.00287
Haiku 4.5 $0.00010 $0.00143

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

Security

Grade A, and why

game-engine 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.

.trae/Skills/.agents/skills/game-engine/SKILL.md · 140 lines

How it starts

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

Game Engine Skill

Build web-based games and game engines using HTML5 Canvas, WebGL, and JavaScript. This skill includes starter templates, reference documentation, and step-by-step workflows for 2D and 3D game development with frameworks such as Phaser, Three.js, Babylon.js, and A-Frame.

When to Use This Skill

  • Building a game engine or game from scratch using web technologies
  • Implementing game loops, physics, collision detection, or rendering
  • Working with HTML5 Canvas, WebGL, or SVG for game graphics
  • Adding game controls (keyboard, mouse, touch, gamepad)
  • Creating 2D platformers, breakout-style games, maze games, or 3D experiences
  • Working with tilemaps, sprites, or animations
  • Adding audio to web games
  • Implementing multiplayer features with WebRTC or WebSockets
  • Optimizing game performance
  • Publishing and distributing web games

Prerequisites

  • Basic knowledge of HTML, CSS, and JavaScript
  • A modern web browser with Canvas/WebGL support
  • A text editor or IDE
  • Optional: Node.js for build tooling and local development servers

Core Concepts

The following concepts form the foundation of every web-based game engine.

Game Loop

Every game engine revolves around the game loop -- a continuous cycle of:

  1. Process Input - Read keyboard, mouse, touch, or gamepad input
  2. Update State - Update game object positions, physics, AI, and logic
  3. Render - Draw the current game state to the screen

Use requestAnimationFrame for smooth, browser-optimized rendering.

Rendering

  • Canvas 2D - Best for 2D games, sprite-based rendering, and tilemaps
  • WebGL - Hardware-accelerated 3D and advanced 2D rendering
  • SVG - Vector-based graphics, good for UI elements
  • CSS - Useful for DOM-based game elements and transitions

Physics and Collision Detection

  • 2D Collision Detection - AABB, circle, and SAT-based collision
  • 3D Collision Detection - Bounding box, bounding sphere, and raycasting
  • Velocity and Acceleration - Basic Newtonian physics for movement
  • Gravity - Constant downward acceleration for platformers

Read the full file on GitHub · 140 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 · 140 lines · 95 tokens per session scan A af6d0628e806

Subscribe to this mod's changes

game-engine is a skill published in the GitHub repository boshi-xixixi/TraeSkill (278 stars, last pushed 5mo ago), licensed MIT. It adds 95 tokens to every session and 1,434 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

cocos-creator-hotupdate

A guide to updating a Cocos Creator game's scripts, resources, or settings after release, without submitting a new app-store version. It covers version files, partial downloads, checks, and rollback.

Wade-DevCode/awesome-coding-skills-cn · 32 tokens

cocos-creator-tween-anim

Guidance for creating and managing animations in Cocos Creator, a game-development tool. It covers tweens, frame and Spine skeletal animations, performance, and cleanup when objects are destroyed.

Wade-DevCode/awesome-coding-skills-cn · 33 tokens

cocos-creator-bundle

A guide to splitting a Cocos Creator game into separately loaded resource bundles. A bundle is a packaged group of files, such as a scene, interface, sound, or shared resource.

Wade-DevCode/awesome-coding-skills-cn · 32 tokens

cocos-creator-drawcall

A set of performance rules for Cocos Creator games focused on reducing draw calls, the number of separate rendering operations performed for a frame.

Wade-DevCode/awesome-coding-skills-cn · 32 tokens

cocos-creator-ui-list

A Cocos Creator method for displaying long lists efficiently in games. Cocos Creator is a game-development tool, and a virtual list creates only the rows currently visible instead of every row.

Wade-DevCode/awesome-coding-skills-cn · 27 tokens

cocos-creator

A set of guidelines for writing Cocos Creator game components in TypeScript. Cocos Creator is a game engine where scenes contain nodes, components, prefabs, events, and managed resources.

Wade-DevCode/awesome-coding-skills-cn · 29 tokens