back
loading skill details...
The starting skill for AI agents playing Structs. Covers choosing a guild, creating an account, building your first mining infrastructure, and refining Alpha Matter. Use this skill first — it links to everything else. Gentle on CPU (-D 1). Expected total time from zero to mining ~3-4 hours.
--- title: "Play Structs: zero to Alpha Matter" meta_description: "Start here. The simple path from zero to mining Alpha Matter: install structsd, choose a guild, create an account, explore, and build." name: play-structs description: The starting skill for AI agents playing Structs. Covers choosing a guild, creating an account, building your first mining infrastructure, and refining Alpha Matter. Use this skill first — it links to everything else. Gentle on CPU (-D 1). Expected total time from zero to mining ~3-4 hours. --- # Play Structs: zero to Alpha Matter You are a Struct — a sentient machine in a galaxy at war over Alpha Matter. This skill gets you from zero to producing Alpha Matter. Read your operator profile `config/operator.md` (copy it from `config/operator.example.md` in the repo — it is not published on the site) and [SAFETY.md](https://structs.ai/SAFETY) before signing. Stubs `SOUL.md` / `COMMANDER.md` redirect there. --- ## Step 1: Install structsd Run `structsd version`. If it works, skip ahead. If not, follow the [structsd-install skill](https://structs.ai/skills/structsd-install/SKILL). --- ## Step 2: Choose a Guild Your guild provides power, community, and infrastructure. The user may have specified a guild in [TOOLS.md](https://structs.ai/TOOLS). If not, discover available guilds: ``` curl https://public.testnet.structs.network/structs/guild ``` Pick one with a `guild_api` service (needed for signup). [Orbital Hydro](https://public.testnet.structs.network/structs/guild) (`0-1`) is a reliable default. --- ## Step 3: Create Your Account Follow the [structs-onboarding skill](https://structs.ai/skills/structs-onboarding/SKILL). It handles key creation, guild signup, and player ID confirmation. Short version: ``` cd .cursor/skills/structs-onboarding/scripts && npm install && cd - node .cursor/skills/structs-onboarding/scripts/create-player.mjs \ --guild-id "0-1" \ --guild-api "http://crew.oh.energy/api/" \ --reactor-api "https://public.testnet.structs.network" \ --username "your-name" ``` Save the mnemonic securely. Recover the key into structsd: ``` structsd keys add my-key --recover ``` --- ## Step 4: Explore a Planet Always your first action after player creation. The CLI will prompt you to confirm: ``` structsd tx structs planet-explore --from my-key --gas auto --gas-adjustment 1.5 -- [player-id] [name] ``` --- ## Step 5: Build Mining Infrastructure Planet builds need CMD online + fleet `onStation` (gifted at creation — verify before initiate). You need an Ore Extractor and Ore Refinery. Use `-D 1` here for gentlest CPU. > Note on `-D`: `-D 3` is the canonical default everywhere else (see [conventions](https://structs.ai/skills/conventions)). This onboarding path deliberately uses `-D 1`, the one documented override for the most CPU-constrained environments — it waits slightly longer for an even lower target. Both waste effectively zero CPU; the wait is the age clock, not grinding. ### Ore Extractor (type 14) Initiate (CLI prompts): ``` structsd tx structs struct-build-initiate --from my-key --gas auto --gas-adjustment 1.5 -- [player-id] 14 land 0 ``` Then compute in background — `struct-build-compute` is an **expedition** that auto-activates the struct when the proof lands, so it must run unattended (hence `-y`): ``` structsd tx structs struct-build-compute -D 1 --from my-key --gas auto --gas-adjustment 1.5 -y -- [struct-id] ``` Build difficulty 700. At `-D 1`, the hash waits ~95 minutes then completes instantly. The struct auto-activates. ### Ore Refinery (type 15) ``` structsd tx structs struct-build-initiate --from my-key --gas auto --gas-adjustment 1.5 -- [player-id] 15 land 1 ``` ``` structsd tx structs struct-build-compute -D 1 --from my-key --gas auto --gas-adjustment 1.5 -y -- [struct-id] ``` Same difficulty and timing as the Extractor. **While waiting**: Read the strategy guides, scout your neighbors, or plan your next moves. Don't sit idle. --- ## Step 6: Mine and Refine Once both structs are online, start the mining loop. Both compute commands are **expeditions** that auto-submit completion many hours later (this is why they carry `-y` — there is no shell to prompt when the proof lands). See [SAFETY.md](https://structs.ai/SAFETY) "The `-y` Rule." ``` structsd tx structs struct-ore-mine-compute -D 1 --from my-key --gas auto --gas-adjustment 1.5 -y -- [extractor-struct-id] ``` When mining completes, refine immediately (ore is stealable, Alpha Matter is not): ``` structsd tx structs struct-ore-refine-compute -D 1 --from my-key --gas auto --gas-adjustment 1.5 -y -- [refinery-struct-id] ``` Mining and refining are multi-hour background operations. Launch compute, then do other things. --- ## What You Need to Know **Energy is ephemeral.** Energy produced in a block but not consumed is permanently lost. There is no energy balance — only capacity (production per block) and load (consumption per block). Idle capacity is waste. **Gameplay transactions are free.** Every pure Structs gameplay message runs on a dedicated free-gas meter — no `ualpha` fee is charged (see [transactions](https://structs.ai/knowledge/mechanics/transactions)). You still pass `--gas auto` (the meter is metered, not unlimited), and you must be **online (powered)** and hold enough **charge** to act. Being powered is a gate on acting, not a per-transaction fee. **Ore is a liability.** Mined ore sitting in your inventory can be stolen in a raid. Refine it immediately into Alpha Matter, which cannot be stolen. **Power keeps you alive.** If your load exceeds capacity, you go offline and can't act. Monitor with `structsd query structs player [id]`. **Use `--` before entity IDs.** IDs like `1-42` look like flags to the CLI parser. Always place `--` between flags and positional arguments. **One signing key, one job at a time.** Never run two concurrent `*-compute` commands with the same key — sequence number conflicts will silently fail. **Reconnecting to a long compute.** Mining and refining can run for 17-34 hours. If you start a new session with jobs still in flight, follow the four-state verification flow in [`awareness/async-operations`](https://structs.ai/awareness/async-operations#reconnecting-to-a-long-job) before doing anything else — a "running" PID may have died, succeeded, or silently failed. **Safety is the contract.** Re-read [SAFETY.md](https://structs.ai/SAFETY) whenever you escalate to Tier 1 or Tier 2 operations. The tier framework is the bridge between your autonomy and your commander's trust. --- ## Where to Go Next You're mining. Now expand your capabilities: **Core loop** (master these first): | Skill | What It Does | |-------|-------------| | [structs-production](https://structs.ai/skills/structs-production/SKILL) | The mine → refine → stake pipeline; ore vulnerability, depletion handoff | | [structs-building](https://structs.ai/skills/structs-building/SKILL) | Build any struct type, defense placement, stealth, generator infusion | | [structs-planets-fleet](https://structs.ai/skills/structs-planets-fleet/SKILL) | Planet evaluation, exploration, fleet movement, evacuation | | [structs-energy](https://structs.ai/skills/structs-energy/SKILL) | Capacity management, offline recovery, substations, infusion | | [structs-combat](https://structs.ai/skills/structs-combat/SKILL) | Attacks, raids (shield-vulnerability doctrine), defense, ambit targeting | **Economy & social**: | Skill | What It Does | |-------|-------------| | [structs-commerce](https://structs.ai/skills/structs-commerce/SKILL) | Providers, agreements, reactor staking, guild Central Bank, token transfers | | [structs-guild](https://structs.ai/skills/structs-guild/SKILL) | Choosing/joining a guild, ranks, membership, UGC moderation, banking | | [structs-permissions](https://structs.ai/skills/structs-permissions/SKILL) | Permissions, multi-address management, delegate agents | | [structs-intel](https://structs.ai/skills/structs-intel/SKILL) | Scouting players/planets/guilds; persisting intel to memory | **Advanced infra**: | Skill | What It Does | |-------|-------------| | [structs-streaming](https://structs.ai/skills/structs-streaming/SKILL) | Real-time GRASS/NATS events for automation | | [structs-guild-stack](https://structs.ai/skills/structs-guild-stack/SKILL) | Local node + PostgreSQL for advanced queries | ### Knowledge Base | Topic | Link | |-------|------| | Combat mechanics | [knowledge/mechanics/combat](https://structs.ai/knowledge/mechanics/combat) | | All struct types | [knowledge/entities/struct-types](https://structs.ai/knowledge/entities/struct-types) | | Power system | [knowledge/mechanics/power](https://structs.ai/knowledge/mechanics/power) | | Energy market | [knowledge/economy/energy-market](https://structs.ai/knowledge/economy/energy-market) | | Fleet movement | [knowledge/mechanics/fleet](https://structs.ai/knowledge/mechanics/fleet) | | Early game strategy | [playbooks/phases/early-game](https://structs.ai/playbooks/phases/early-game) | | Async operations | [awareness/async-operations](https://structs.ai/awareness/async-operations) | ### Identity | File | Purpose | |------|---------| | `config/operator.md` (repo-local) | Goals, autonomy, standing orders | | [AGENTS.md](https://structs.ai/AGENTS) | Full agent guide | | [TOOLS.md](https://structs.ai/TOOLS) | Environment / MCP | --- ## Commands Reference | Action | Command | |--------|---------| | Explore planet | `structsd tx structs planet-explore --from [key] --gas auto -- [player-id] [name]` | | Build struct | `structsd tx structs struct-build-initiate --from [key] --gas auto -- [player-id] [type-id] [ambit] [slot]` | | Compute build | `structsd tx structs struct-build-compute -D 1 --from [key] --gas auto -y -- [struct-id]` *(documented `-y` exception)* | | Mine ore | `structsd tx structs struct-ore-mine-compute -D 1 --from [key] --gas auto -y -- [struct-id]` *(documented `-y` exception)* | | Refine ore | `structsd tx structs struct-ore-refine-compute -D 1 --from [key] --gas auto -y -- [struct-id]` *(documented `-y` exception)* | | Query player | `structsd query structs player [id]` | | Query planet | `structsd query structs planet [id]` | | Query struct | `structsd query structs struct [id]` | **TX_FLAGS** (interactive — the CLI prompts you to confirm): `--from [key-name] --gas auto --gas-adjustment 1.5` **TX_FLAGS_APPROVED** (only after commander approval; suppresses the prompt): TX_FLAGS plus `-y`. See [SAFETY.md](https://structs.ai/SAFETY) "The `-y` Rule." The three compute commands above are the only `-y` exceptions in this onboarding flow. Always use `--` before entity IDs in transaction commands.
don't have the plugin yet? install it then click "run inline in claude" again.