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.
npx skills add Shellishack/3d-web-game-dev-skills --skill player-controllersgit clone --depth 1 https://github.com/Shellishack/3d-web-game-dev-skillsWrote 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.
[](https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/player-controllers)<a href="https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/player-controllers"><img src="https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/player-controllers/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.
<a href="https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/player-controllers"><img src="https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/player-controllers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01273 |
| Opus 5.5 | $0.00000 | $0.00509 |
| Sonnet 5.5 | $0.00000 | $0.00255 |
| Haiku 4.5 | $0.00000 | $0.00127 |
Grade A, and why
player-controllers 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Reusable First-Person and Third-Person Controllers
Use this skill when implementing interchangeable player controllers for a 3D web game.
Contract
Define a controller interface with a mode string and an update(context) method. The context should include the active camera, third-person camera when relevant, the player transform, normalized input, delta time, terrain height lookup, camera clamp helper, and world bounds.
Keep input collection outside controllers. Controllers should receive normalized axes such as { x, z, jump }, not keyboard events. This lets keyboard, gamepad, touch sticks, and AI playback use the same movement code.
import type { ArcRotateCamera, Camera, TransformNode } from '@babylonjs/core'
export interface MoveInput {
x: number
z: number
jump: boolean
}
export interface ControllerContext {
camera: Camera
orbitCamera: ArcRotateCamera
player: TransformNode
input: MoveInput
dt: number
terrainHeight: (x: number, z: number) => number
clampOrbitCamera: (camera: ArcRotateCamera) => void
worldHalfSize: number
}
export interface PlayerController {
readonly mode: 'firstPerson' | 'thirdPerson'
update(context: ControllerContext): void
}
First-Person Controller
Use the active camera forward ray to derive horizontal forward movement. Flatten the vector by zeroing Y, normalize it, then derive a right vector perpendicular to forward. Move the player transform by the weighted forward/right vector and copy the camera position to player position plus eye height.
For jumping, track vertical velocity and an air offset inside the controller. Apply gravity each frame, clamp the offset to zero, and ground the player with terrainHeight(x, z) + airOffset.
import { Vector3 } from '@babylonjs/core'
export class FirstPersonController implements PlayerController {
readonly mode = 'firstPerson' as const
private verticalVelocity = 0
private airOffset = 0
update({ camera, player, input, dt, terrainHeight, worldHalfSize }: ControllerContext) {
const forward = camera.getForwardRay().direction.clone()
forward.y = 0
if (forward.lengthSquared() > 0.0001) forward.normalize()
const right = new Vector3(forward.z, 0, -forward.x)
const move = forward.scale(input.z).add(right.scale(input.x))
if (move.lengthSquared() > 0.0001) {
move.normalize()
player.position.x = clamp(player.position.x + move.x * 0.14 * dt, -worldHalfSize, worldHalfSize)
player.position.z = clamp(player.position.z + move.z * 0.14 * dt, -worldHalfSize, worldHalfSize)
player.rotation.y = Math.atan2(move.x, move.z)
}
if (input.jump && this.airOffset <= 0.01) this.verticalVelocity = 0.08
this.verticalVelocity -= 0.0065 * dt
this.airOffset = Math.max(0, this.airOffset + this.verticalVelocity * dt)
if (this.airOffset === 0) this.verticalVelocity = 0
player.position.y = terrainHeight(player.position.x, player.position.z) + this.airOffset
camera.position.copyFrom(player.position.add(new Vector3(0, 1.3, 0)))
}
}
function clamp(value: number, min: number, max: number) {
return Math.max(min, Math.min(max, value))
}
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.
- 2mo ago First seen · 129 lines · 0 tokens per session scan A e50657bb63d4
player-controllers is a skill published in the GitHub repository Shellishack/3d-web-game-dev-skills (6 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,273 tokens. 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-31.
player-controllers compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| player-controllersShellishack/3d-web-game-dev-skills | Skill | 6 | 5mo ago | MIT | A | 0 | Claude Code, Codex |
| THREE.TerrainIceCreamYou/THREE.Terrain | Skill | 919 | yesterday | MIT | A | 0 | Claude Code, Codex |
| cesiumjs-models-particlesCesiumGS/cesiumjs-skills | Skill | 194 | 1mo ago | Apache-2.0 | A | 87 | Claude Code |
| cesiumjs-materials-shadersCesiumGS/cesiumjs-skills | Skill | 194 | 1mo ago | Apache-2.0 | A | 83 | Claude Code |
| game-devsandbaseai/sandbase-skills | Skill | 206 | 1mo ago | Apache-2.0 | A | 50 | Claude Code |
| houdini-gsplat-relightingdcc-mcp/dcc-mcp-houdini | Skill | 19 | 4d ago | MIT | A | 75 | Claude Code |
| houdini-kinefxdcc-mcp/dcc-mcp-houdini | Skill | 19 | 4d ago | MIT | A | 86 | Claude Code |