App

From Kevin-Liu-01/CoTFly · View interactive version

App is an AI agent skill from the GitHub repository Kevin-Liu-01/CoTFly. Maintain typed application composition, lazy owner access, frame wiring, and combat warm lifecycle.

How to use this skill

Skill file

claude-of-tanks / src/app

Purpose

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

Extract application-level wiring from src/main.ts without moving subsystem

policy into a second owner. Dependencies arrive through explicit typed ports.

Mental model & key files

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

mainContracts.ts adapts existing subsystem types for composition.

mainFrameRuntime.ts owns the rendered-frame transaction;

mainBattleHudRuntime.ts coordinates lazy HUD acquisition and visibility.

combatAimComposition.ts connects camera, reticle, physical aim, and spotting.

combatWarmComposition.ts owns renderer-lifetime warm caches and cancellation.

lazyRuntimeOwner.ts and checkedIntegrationPort.ts guard lazy integration.

Patterns to follow / invariants

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

retain a stale world/player instead of consulting the supplied owner.

one request; failed lazy construction remains retryable.

functions before activating a dynamically loaded integration.

path, including private targets and deferred preparation.

Common tasks → first action

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

engine/game warm-owner tests before browser timing captures.

checkedIntegrationPort.selftest.mjs, then npm run typecheck.

Gotchas

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

These modules coordinate owners; they do not replace simulation, HUD, camera,

or world lifecycle policy. A successful import is not proof that warm work

belongs to the current generation or that an adapter's runtime shape is valid.

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.