structs-power
Installation
SKILL.md
Structs Power
Important: Entity IDs containing dashes (like 3-1, 4-5) are misinterpreted as flags by the CLI parser. All transaction commands in this skill use -- before positional arguments to prevent this.
Procedure
- Assess power state — Query player:
structsd query structs player [id]. Compute:availablePower = (capacity + capacitySecondary) - (load + structsLoad). Ifload + structsLoad > capacity + capacitySecondary, player goes OFFLINE (cannot act). Player passive draw: 25,000 mW. - Create substation — First create allocation from reactor/generator:
structsd tx structs allocation-create --allocation-type static|dynamic|automated|provider-agreement TX_FLAGS -- [source-id] [power]. The--controllerflag accepts a PlayerId (e.g.,1-42). If omitted, the creating player is the default controller. Then:structsd tx structs substation-create TX_FLAGS -- [owner-id] [allocation-id]. - Connect power —
structsd tx structs substation-allocation-connect -- [substation-id] [allocation-id]to add source.structsd tx structs substation-allocation-disconnect -- [substation-id] [allocation-id]to remove. - Connect players —
structsd tx structs substation-player-connect -- [substation-id] [player-id]to draw power.structsd tx structs substation-player-disconnect -- [substation-id] [player-id]to remove. - Migrate players —
structsd tx structs substation-player-migrate TX_FLAGS -- [source-substation-id] [dest-substation-id] [player-id,player-id2,...]. - Manage allocations — Update:
structsd tx structs allocation-update -- [allocation-id] [new-power]. Delete:structsd tx structs allocation-delete -- [allocation-id]. - Delete substation —
structsd tx structs substation-delete -- [substation-id](disconnect allocations/players first).