Dev

From Kevin-Liu-01/Claude-of-Tanks · View interactive version

Dev is an AI agent skill from the GitHub repository Kevin-Liu-01/Claude-of-Tanks. Maintain opt-in diagnostics, bounded traces, deterministic shot controls, and capture readiness gates.

How to use this skill

Skill file

claude-of-tanks / src/dev

Purpose

<!-- agent-docs:fill:purpose -->

Provide reproducible engineering evidence without adding diagnostics cost to

ordinary player boot or contaminating the behavior being measured.

Mental model & key files

<!-- agent-docs:fill:model -->

debugIntent.ts selects explicit QA intent; mainDiagnosticsRuntime.ts

installs telemetry and the debugSurface.ts live-access facade.

perfTrace.ts, debugTelemetry.ts, and combatTelemetry.ts own receipts.

perfDiagnosticsAccess.ts and driveTestAccess.ts keep heavy implementations

lazy. shotContract.ts, shotViews.ts, and shotRuntime.ts define staged

captures; mapCaptureReadiness.ts verifies actual sourced-texture completion.

battleHold.ts is __DEBUG.battleHold, the one control for a check that needs

a stable battle: set(true) (before beginSoloBattle/startBattle, armed until

set(false)) makes the page's solo battle hold still and alive; its bots stand

and never fire, the player takes no damage, and no verdict comes. The step's side

is game/devBattleHold.ts: absent from a public build (VITE_PUBLIC_BUILD=1, even

with ?debug=1), refused in a network battle, and off it leaves the step byte for

byte (devBattleHold.selftest.mjs). __DEBUG.flags carries no godMode or

freezeBots; nothing ever read them.

Patterns to follow / invariants

<!-- agent-docs:fill:patterns -->

inert production facades must not pull in the heavy diagnostic graph.

event payloads deliberately rather than retaining mutable references.

timeout; a rendered frame alone is not a ready-world receipt.

and the committed tools that consume them.

or mutate shot state; do not run such controls during another capture.

Common tasks → first action

<!-- agent-docs:fill:tasks -->

facades, and their selftests before checking a production build.

shotViews.selftest.mjs; read tools/SKILL.md and use the existing screenshot

or map-audit harness for native browser proof.

Gotchas

<!-- agent-docs:fill:gotchas -->

__DEBUG and __SHOTS are engineering interfaces, not ordinary player APIs.

An optional performance HUD failure must not erase the remaining diagnostic

surface. Screenshot-only readiness waits must not become production boot gates.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.