TechTree

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

TechTree is an AI agent skill from the GitHub repository Kevin-Liu-01/Claude-of-Tanks. Maintain the read-only national tech trees the Garage draws - tree data, lineage, tiers as columns and the connector layout.

How to use this skill

Skill file

claude-of-tanks / src/techTree

Purpose

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

The thirteen national tech trees the Garage's tech-tree screen draws (src/ui/techTree.ts): every production vehicle

once, its lines as rows and tiers as columns, twin builds on one node and a special lane under the lines. The view is

read-only and presentational: every vehicle is available, and nothing here grants, locks or costs anything.

Mental model & key files

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

(src/vehicles/tier.ts) is separate and untouched.

the repository); edit them only by regenerating, then re-pin the receipt.

its node), rootOf and validateTree.

through a node or two parents' connectors crossing or overlapping. The screen draws exactly these routes.

Patterns to follow / invariants

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

opener, never by a boot module.

Common tasks → first action

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

A new vehicle or a moved node: regenerate the nation files, then run node src/techTree/techTree.selftest.mjs and

re-pin the content hash it reports. A drawing fault: layoutProblems(tree) names the connector.

Gotchas

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

The receipt checks the trees against TANK_CATALOGS.production: a vehicle added to the fleet without a node fails it.

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.