Src

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

Src is an AI agent skill from the GitHub repository Kevin-Liu-01/CoTFly. Navigate browser boot and shared source contracts while preserving subsystem and bundle boundaries.

How to use this skill

Skill file

claude-of-tanks / src

Purpose

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

Compose the game and its public pages from independently owned subsystems.

Use the nearest child SKILL.md for implementation details; this directory's

root files supply boot wiring and small shared contracts.

Mental model & key files

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

main.ts wires strict typed lifecycle owners from app/, game/, and the

rendering subsystems. runtimeTypes.ts defines unvalidated runtime and JSON

boundary values, not domain models. productStats.ts supplies dependency-free

totals and template tokens; authorship.ts supplies first-party attribution.

analytics.ts is deferred public-page telemetry, separate from game boot.

Read docs/SYSTEMS.md and docs/DECISIONS.md for cross-subsystem contracts.

Patterns to follow / invariants

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

their state, lifecycle, or gameplay policy.

belongs to presentation. Rendering does not authorize combat outcomes.

keep domain-specific types with their actual owner.

do not pull fleet/map builders into lightweight public or boot modules.

Common tasks → first action

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

affected lifecycle owner's selftest.

npm run attribution:check.

use package.json for current full build/test commands.

Gotchas

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

src/docs/ is the player-facing manual implementation; repository docs/

contains engineering documentation. Public pages must not import game boot,

and the latency-sensitive game entry must not schedule public analytics.

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.