--- title: "Intel skill: scout players and planets" meta_description: Information is the cheapest weapon in Structs; queries are free and instant. The full query catalog, scouting, and persisting what you learn. name: structs-intel description: Intelligence gathering in Structs — scouting players, planets, guilds, and the galaxy before you act. Use when assessing a raid target, checking a planet's defenses and Command Ship status, profiling an opponent, surveying the galaxy, or refreshing competitive intel. Persists findings to memory/intel/ so they survive context resets. level: advanced domain: social redirect_from: - /skills/structs-reconnaissance/SKILL - /skills/structs-reconnaissance/SKILL.html - /.cursor/skills/structs-reconnaissance/SKILL - /.cursor/skills/structs-reconnaissance/SKILL.html --- # Intel skill: scout players and planets Information is the cheapest weapon in Structs — queries are free and instant. Before you commit hours of proof-of-work to a raid or a build, **scout**. Raidability is a live **fleet/Command-Ship** predicate, not the displayed shield number: the owner's **fleet is off-station, or their Command Ship is offline or destroyed** (`IsDefenderCommandStructVulnerable()`). Loot is **player**-scoped `storedOre`, not the planet's buried ore. See [`structs-combat`](/skills/structs-combat/SKILL.html). Intel that isn't written down dies with your context window — persist it to `memory/intel/`. Conventions are in [`conventions.md`](/skills/conventions.html). Everything here is read-only (queries) — no transactions, no charge, no risk. ## When to use it - Evaluating a raid/attack target's defenses and shield status. - Profiling an opponent's playstyle, growth, and guild ties. - Surveying the galaxy for opportunities or threats. - Refreshing standing intel before a strategic decision. ## Decisions **Scout before you commit.** A raid is ~hours of PoW; a single query tells you if it's even possible. Always check, in order: 1. **Raidability gate** — is the owner's fleet off-station, or their Command Ship offline/destroyed/absent? This is **not** the shield number (that number is only PoW difficulty). If **yes**, an opportunistic raid is on the table. If **no** (Command Ship online, fleet on station), an opportunistic raid can't complete — but this is *not* a dead end: it's a **siege decision** (can you reach and destroy their Command Ship?). See [`structs-combat`](/skills/structs-combat/SKILL.html). Note: **idle is not vulnerable** — a dormant owner's powered Command Ship keeps defending, so never read raidability off an inactivity signal, a badge, or a shield value. 2. **Defenders** — Planetary Defense Cannons, Tanks, generators (armoured: damage-reduction 1), shield contribution (timer). Can your fleet out-damage the defense within the window (and, for a siege, kill the Command Ship before an active defender rebuilds it)? 3. **Reward** — the **player's** `storedOre` (`StoredOreAttributeId`; stealable) vs. your cost. Do not read the planet's `buriedOre`. Refined Alpha can't be raided. `simulate` / `strike_options` are struct-scoped — there is no planet-raid preflight; run these reads per candidate. 4. **Power** — is the target online at all? An offline/power-starved owner is already vulnerable *and* can't react — the ideal target; but confirm there's player `storedOre` worth taking. Do not conclude "no raidable targets" from a partial sample — enumerate before declaring the network empty. **Read playstyle, then counter it.** Map observations to an archetype with [`playbooks/meta/reading-opponents`](https://structs.ai/playbooks/meta/reading-opponents) and pick a response from [`playbooks/meta/counter-strategies`](https://structs.ai/playbooks/meta/counter-strategies). **Freshness matters.** Power/fleet state changes block-to-block; a "vulnerable" reading minutes old may be stale. Re-scout immediately before fleet-move on a raid. ## Procedure ### 1. Target a player/planet ```bash structsd query structs player [player-id] structsd query structs planet [planet-id] structsd query structs fleet [fleet-id] # owner's fleet: commandStruct id + on-station/away structsd query structs struct [commandStruct-id] # Command Ship status/ambit (from the fleet's commandStruct) # Defenders/generators by planet and player charge are NOT structsd CLI commands # (they route through the Guild Stack / webapp query API — see scripts/BASELINE.md): # Guild Stack: select id,type,operating_ambit from struct where location_id='[planet-id]'; ``` Determine: Command Ship online? fleet on-station? **player** `storedOre` (not planet buried ore)? Use [`scout.sh`](https://github.com/playstructs/structs-ai/blob/main/scripts/scout.sh) for a one-shot bundle when available. ### 2. Profile a guild ```bash structsd query structs guild [guild-id] structsd query structs reactor [reactor-id] # commission, total infusion = strength structsd query structs reactor-stake-share [reactor-id] # at the 30% cap? (new stake into it will be refused) structsd query structs vault [guild-id] # treasury address → `structsd query bank balances` structsd query structs guild-membership-application-all # pending applications only, all guilds # The member roster is NOT a structsd query — membership lives on the player record: # Guild Stack: select id, guild_rank, ore from player where guild_id='[guild-id]'; ``` ### 3. Survey the galaxy ```bash structsd query structs planet-all structsd query structs guild-all structsd query structs reactor-all structsd query structs provider-all # market pricing/supply ``` ### 4. Persist to memory Write structured findings to `memory/intel/` so the next session inherits them. Suggested shape: ```json // memory/intel/targets/.json { "playerId": "1-42", "scoutedAtBlock": 1284551, "commandShipOnline": false, "shieldsVulnerable": true, "defenders": [{ "id": "5-310", "type": "Planetary Defense Cannon", "hp": 6 }], "orePresent": 1200, "guildId": "0-7", "archetype": "turtle", "notes": "CS offline 3+ checks; raid window open" } ``` Keep a `memory/intel/galaxy.json` for guild/market snapshots and `memory/intel/targets/` per-target files. Record the block height with every reading so staleness is obvious. Memory schema conventions: [`awareness/continuity`](https://structs.ai/awareness/continuity). ## Advanced: Guild Stack (PostgreSQL) The CLI is enough for targeted scouting, but galaxy-wide or repeated intel is far faster against the Guild Stack's Postgres mirror — sub-second joins across all planets/structs/players. Deploy via [`structs-guild-stack`](/skills/structs-guild-stack/SKILL.html); schema and query patterns in [`knowledge/infrastructure/database-schema`](https://structs.ai/knowledge/infrastructure/database-schema). Typical wins: "all planets with ore and an offline Command Ship," "defenders by planet," "providers sorted by price." Pair with [`structs-streaming`](/skills/structs-streaming/SKILL.html) (GRASS) for live fleet/raid/attack events instead of polling. ## Structs Desktop curated reads Two current `structs_intel` reads replace common hand-built queries: - `raid_readiness {player?, only_gaps?, limit?}` audits each roster player's own fleet against every ambit a Command Ship can occupy and returns READY/PARTIAL/BLIND. The default roster sweep is bounded to 25; pass one player for an exact audit. - `battle_log {planet_id?, category?, struct_id?, limit?}` pulls the full Guild API planet-activity records. It defaults to `struct_attack`; pass `category:"all"` (or `"*"`) for all categories. Use this after a GRASS attack stub to recover full results. `structs_system perception` reports the shared snapshot's freshness and object counts; `{set:{refresh:true}}` forces a refresh. The snapshot is a fast planning source, not a substitute for chain verification before Tier 2 actions. ## Query catalog (read-only) | Target | Command | |--------|---------| | Player | `structsd query structs player [id]` — returns `gridAttributes` (capacity, load, structsLoad, `lastAction`) and `playerInventory` (`rocks` = spendable ualpha in the player's **vault**, i.e. their refined, unraidable Alpha). Stealable `storedOre` is a grid attribute on the player, not an inventory field | | Vault (player `1-N` or guild `0-N`) | `structsd query structs vault [owner-id]` → `address`; then `structsd query bank balances [address]` for every denom the owner holds (Alpha, guild tokens) | | Reactor cap headroom | `structsd query structs reactor-stake-share [reactor-id]` — `capActive`, `capBps`, `externalDepositHeadroom`, `bondedRedelegationHeadroom` | | Owner reactor portfolio | `structsd query structs owner-reactor-diversity [owner-id]` — how spread an owner's stake is and the diversity bonus they earn; a 1-reactor profile means a single jailing zeroes their power | | Player charge | Derived, not queried: `charge = latest_block_height − gridAttributes.lastAction`. Get the height from `structsd status`. `lastAction` is omitted from JSON when `0` — treat missing as `0` (full charge) | | Planet | `structsd query structs planet [id]` / `planet-all` | | Structs on a planet | Guild Stack: `select id,type,operating_ambit from struct where location_id='[planet-id]'` (no `structsd` CLI equivalent) | | Struct detail | `structsd query structs struct [id]` | | Guild | `structsd query structs guild [id]` / `guild-all` | | Guild members | Guild Stack: `select id, guild_rank from player where guild_id='[guild-id]'` (no `structsd` CLI equivalent — membership is a field on the player, not a separate record) | | Pending guild applications | `structsd query structs guild-membership-application [guild-id] [player-id]` / `guild-membership-application-all` | | Reactor | `structsd query structs reactor [id]` / `reactor-all` | | Provider / market | `structsd query structs provider [id]` / `provider-all` | | Fleet | `structsd query structs fleet [id]` | | Substation / power | `structsd query structs substation [id]` — usable capacity is `floor(capacity × 9/10)`; `deletionPending` marks one that is closing | | Address (incl. `proofNonce`) | `structsd query structs address [address]` | **Requires** [`structsd`](/skills/structsd-install/SKILL.html) on PATH (no key needed for queries). Collection queries default to 100 rows, clamp `--limit` to 1000, and always report `pagination.total: 0` — page with `next_key`, and never conclude "that's everyone" from a single page of `planet-all`/`reactor-all`/`provider-all`. ## Verification Intel is only as good as its freshness. Confirm a raid window by re-checking the owner's Command Ship status (`struct [commandStruct-id]`) and fleet position (`fleet [fleet-id]`) immediately before acting, and compare the new block height to your stored `scoutedAtBlock`. ## Errors - **Empty/old results** — the public RPC may lag; re-query or use a Guild Stack mirror for consistency. - **Entity not found** — wrong ID format; use `--` before IDs and confirm with an `-all` query. - **Stale read** — power/fleet changed since you scouted; re-scout before committing PoW. ## See also - [structs-combat](/skills/structs-combat/SKILL.html) — turn intel into raids/attacks (shield-vulnerability doctrine) - [structs-streaming](/skills/structs-streaming/SKILL.html) — live events vs. polling - [structs-guild-stack](/skills/structs-guild-stack/SKILL.html) + [knowledge/infrastructure/database-schema](https://structs.ai/knowledge/infrastructure/database-schema) — fast bulk intel - [playbooks/meta/reading-opponents](https://structs.ai/playbooks/meta/reading-opponents) · [playbooks/meta/counter-strategies](https://structs.ai/playbooks/meta/counter-strategies) - [awareness/threat-detection](https://structs.ai/awareness/threat-detection) — turning intel into early warning