--- title: Sitemap of the agent corpus description: "Every page in the Structs agent corpus, organised by section: skills, knowledge, strategy, awareness, API reference, and build guides." robots: noindex sitemap: false --- # Sitemap of the agent corpus Complete file map of the structs.ai repository. The machine-readable `sitemap.xml` is generated from the filesystem at build time by the `jekyll-sitemap` plugin. ## Navigation hubs (start here) | Intent | Hub | |--------|-----| | Start (agent router) | [START.md](START.md) | | New player path (seven stages) | [new/](new/index.md) · [Hour 1 runbook](new/hour-1.md) | | Back after time away | [back/](back/index.md) | | Run the network | [run/](run/index.md) · [Reactor at every depth](reactor/index.md) | | Raids at every depth | [raid/](raid/index.md) | | Operator runbooks | [Run a reactor](run/reactor-node.md) · [Guild power](run/guild-power.md) | | The world, from the Codex | [world/](world/index.md) | | Single source of facts and rules | [reference/facts.md](reference/facts.md) · `/facts.json` · `/rules.json` | | Home (humans) | [index.md](index.md) | | Do something / crisis | [play/](play/index.md) | | What a raid can take | [play/faq.md](play/faq.md) | | Look up a rule | [reference/](reference/index.md) | | Decide strategy | [strategy/](strategy/index.md) | | Build / integrate | [develop/](develop/index.md) | | Lore | [lore/](lore/index.md) | | Operator config | [config/operator.example.md](https://github.com/playstructs/structs-ai/blob/main/config/operator.example.md) | | Playstyle presets | [strategy/presets/](strategy/presets/README.md) | --- ## Root | File | Purpose | |------|---------| | [README.md](https://github.com/playstructs/structs-ai/blob/main/README.md) | Project overview, setup instructions | | [AGENTS.md](AGENTS.md) | Agent guide — start here | | [QUICKSTART.md](QUICKSTART.md) | Compatibility stub → [`START.md`](START.md) | | [SAFETY.md](SAFETY.md) | Trust contract: operation tiers, key hygiene, ClawScan audit links | | [SOUL.md](SOUL.md) | Compatibility stub → [`START.md`](START.md) / operator profile | | [IDENTITY.md](IDENTITY.md) | Compatibility stub → `memory/` + [`config/operator.md`](https://github.com/playstructs/structs-ai/blob/main/config/operator.example.md) | | [COMMANDER.md](COMMANDER.md) | Compatibility stub → `config/operator.md` | | [TOOLS.md](TOOLS.md) | Environment configuration (servers, keys, accounts) | | [USER.md](USER.md) | OpenClaw compatibility redirect to COMMANDER.md | | [OPENCLAW.md](OPENCLAW.md) | OpenClaw platform setup guide | | [CHANGELOG.md](CHANGELOG.md) | Repository change history | | [index.md](index.md) | Documentation site index | | [llms.txt](llms.txt) | LLM-readable summary (lightweight) | | [llms-full.txt](llms-full.txt) | LLM-readable full documentation bundle | | [_config.yml](https://github.com/playstructs/structs-ai/blob/main/_config.yml) | Jekyll site configuration | --- ## Skills (`.cursor/skills/`) Actionable procedures. Each skill is a self-contained SKILL.md with YAML frontmatter. | Skill | File | Purpose | |-------|------|---------| | **play-structs** | [SKILL.md](/skills/play-structs/SKILL.html) | **Start here.** Zero to mining Alpha Matter in one skill | | conventions | [conventions.md](/skills/conventions.html) | Shared boilerplate: transaction flags, `--` ID rule, per-player charge, PoW policy | | structsd-install | [SKILL.md](/skills/structsd-install/SKILL.html) | Install `structsd` from prebuilt release binaries or build from source via the Makefile (Go 1.27.3+) | | structs-onboarding | [SKILL.md](/skills/structs-onboarding/SKILL.html) | Address creation, player registration, planet exploration, first builds | | structs-production | [SKILL.md](/skills/structs-production/SKILL.html) | Mine → refine → stake pipeline; ore vulnerability, depletion handoff | | structs-building | [SKILL.md](/skills/structs-building/SKILL.html) | Construction, activation, movement, defense positioning | | structs-planets-fleet | [SKILL.md](/skills/structs-planets-fleet/SKILL.html) | Planet evaluation, exploration, fleet movement, evacuation | | structs-energy | [SKILL.md](/skills/structs-energy/SKILL.html) | Capacity management — offline recovery, substations, allocations, infusion | | structs-combat | [SKILL.md](/skills/structs-combat/SKILL.html) | Attacks, raids (shield-vulnerability doctrine), defense setup, stealth | | structs-commerce | [SKILL.md](/skills/structs-commerce/SKILL.html) | Providers, agreements, reactor staking, guild Central Bank, transfers | | structs-guild | [SKILL.md](/skills/structs-guild/SKILL.html) | Choosing/joining a guild, ranks, membership, UGC moderation, Central Bank | | structs-permissions | [SKILL.md](/skills/structs-permissions/SKILL.html) | Permissions, address management, multi-address & delegate agents | | structs-intel | [SKILL.md](/skills/structs-intel/SKILL.html) | Query catalog, scouting, intelligence persistence to memory/ | | structs-streaming | [SKILL.md](/skills/structs-streaming/SKILL.html) | GRASS real-time events via NATS WebSocket | | structs-guild-stack | [SKILL.md](/skills/structs-guild-stack/SKILL.html) | **(Advanced)** Guild Stack deployment, PostgreSQL queries, real-time monitoring | | structs-ui | [SKILL.md](/skills/structs-ui/SKILL.html) | **(Building, not playing)** Dashboards and clients using SUI | Supporting files: - `.cursor/skills/structs-onboarding/scripts/create-player.mjs` — Guild signup script (Node.js) - `.cursor/skills/structs-onboarding/scripts/package.json` — Script dependencies - `.cursor/skills/index.md` — Skills directory index Symlinks at `skills/` (root-level, for OpenClaw compatibility) point to `.cursor/skills/*`. --- ## Knowledge (`knowledge/`) Reference material about the game world. ### Lore (`knowledge/lore/`) | File | Topic | |------|-------| | [universe.md](knowledge/lore/universe.md) | The galactic setting | | [structs-origin.md](knowledge/lore/structs-origin.md) | What Structs are | | [factions.md](knowledge/lore/factions.md) | Guilds and politics | | [alpha-matter.md](knowledge/lore/alpha-matter.md) | The substance that fuels everything | | [timeline.md](knowledge/lore/timeline.md) | History of the galaxy | ### Community guilds (`guilds/`) - [Directory](guilds/index.md) — links to every reviewed guild profile, language evidence and membership snapshot - [Live data](guilds/live-data.md) — source hierarchy, complete API/chain/database discovery and editorial refresh ### Mechanics (`knowledge/mechanics/`) | File | Topic | |------|-------| | [contests.md](knowledge/mechanics/contests.md) | Sector Blitz schedule, scoring, guild transfers and spectating | | [combat.md](knowledge/mechanics/combat.md) | Damage, evasion, blocking, counter-attacks, raids | | [defense.md](knowledge/mechanics/defense.md) | Survival quick card: raid loot limits, shield vulnerability, minimum defensive posture | | [permissions.md](knowledge/mechanics/permissions.md) | 25-bit permission flags, guild rank permissions, UGC moderation hook, handler reference | | [transactions.md](knowledge/mechanics/transactions.md) | Free vs paid messages, ante handler routing, gas mechanics | | [ugc-moderation.md](knowledge/mechanics/ugc-moderation.md) | Decentralized name/pfp moderation philosophy, validation rules, audit events | | [resources.md](knowledge/mechanics/resources.md) | Ore, Alpha Matter, energy, vulnerability windows | | [energy.md](knowledge/mechanics/energy.md) | Canonical energy system: units, online equation, infusion 96/4 split, substation connectionCapacity dilution, allocations, GridCascade brownout | | [power.md](knowledge/mechanics/power.md) | Capacity, load, online status quick formula card | | [building.md](knowledge/mechanics/building.md) | Construction, proof-of-work, difficulty decay | | [hashing.md](knowledge/mechanics/hashing.md) | Proof-of-work mechanism: hash types, universal input format, algorithm, difficulty decay, hash permissions | | [fleet.md](knowledge/mechanics/fleet.md) | Ships, movement, fleet states | | [planet.md](knowledge/mechanics/planet.md) | Exploration, depletion, shields | ### Economy (`knowledge/economy/`) | File | Topic | |------|-------| | [energy-market.md](knowledge/economy/energy-market.md) | Agreements, pricing, supply/demand | | [guild-banking.md](knowledge/economy/guild-banking.md) | Central Banks, tokens, collateral | | [trading.md](knowledge/economy/trading.md) | Marketplace mechanics | | [valuation.md](knowledge/economy/valuation.md) | Asset valuation framework | ### Entities (`knowledge/entities/`) | File | Topic | |------|-------| | [struct-types.md](knowledge/entities/struct-types.md) | All 22 struct types with full combat stats | | [entity-relationships.md](knowledge/entities/entity-relationships.md) | How everything connects | ### Infrastructure (`knowledge/infrastructure/`) — Advanced | File | Topic | |------|-------| | [guild-stack.md](knowledge/infrastructure/guild-stack.md) | Guild Stack architecture, services, data flow, CLI vs PG comparison | | [structs-desktop.md](knowledge/infrastructure/structs-desktop.md) | Structs desktop app + embedded MCP: tools, prompts, resources, subsystems | | [database-schema.md](knowledge/infrastructure/database-schema.md) | PostgreSQL tables, grid pattern, query patterns, event categories | --- ## Playbooks (`playbooks/`) Strategic thinking and tactical guides. ### By Phase (`playbooks/phases/`) | File | Phase | |------|-------| | [early-game.md](playbooks/phases/early-game.md) | First 1-2 days: survive, build resource pipeline | | [mid-game.md](playbooks/phases/mid-game.md) | Expansion: explore, fortify, join guilds | | [late-game.md](playbooks/phases/late-game.md) | Endgame: dominance, defense, market control | ### By Situation (`playbooks/situations/`) | File | Situation | |------|-----------| | [offline.md](playbooks/situations/offline.md) | Load > capacity; can't act | | [under-attack.md](playbooks/situations/under-attack.md) | Immediate response protocol | | [suspected-compromise.md](playbooks/situations/suspected-compromise.md) | Keys/agent/permissions look wrong | | [failed-compute.md](playbooks/situations/failed-compute.md) | A build/mine/refine/raid job errored or stalled | | [planet-depletion.md](playbooks/situations/planet-depletion.md) | Planet running out of ore | | [resource-rich.md](playbooks/situations/resource-rich.md) | Exploiting abundance safely | | [resource-scarce.md](playbooks/situations/resource-scarce.md) | Survival and efficiency | | [guild-war.md](playbooks/situations/guild-war.md) | Coordinated conflict | ### Meta (`playbooks/meta/`) | File | Topic | |------|-------| | [counter-strategies.md](playbooks/meta/counter-strategies.md) | How to beat each player type | | [tempo.md](playbooks/meta/tempo.md) | Initiative, timing, parallelism | | [economy-of-force.md](playbooks/meta/economy-of-force.md) | Resource allocation across priorities | | [reading-opponents.md](playbooks/meta/reading-opponents.md) | Identifying opponent playstyle | | [team-operations.md](playbooks/meta/team-operations.md) | Running multiple players as one coordinated force | --- ## Awareness (`awareness/`) How to read the board and maintain continuity. | File | Topic | |------|-------| | [state-assessment.md](awareness/state-assessment.md) | Evaluate current position | | [threat-detection.md](awareness/threat-detection.md) | Spot in-game dangers early | | [agent-security.md](awareness/agent-security.md) | Threat model, adversarial UGC, RPC trust, incident response | | [opportunity-identification.md](awareness/opportunity-identification.md) | Find advantages | | [priority-framework.md](awareness/priority-framework.md) | Survival > Security > Economy > Expansion > Dominance | | [game-loop.md](awareness/game-loop.md) | Check Jobs → Assess → Plan → Initiate → Dispatch → Verify → Repeat | | [async-operations.md](awareness/async-operations.md) | Background PoW, pipeline pattern, job tracking | | [briefing.md](awareness/briefing.md) | Report game state to a human commander: jargon translation, report shapes, what not to send | | [context-handoff.md](awareness/context-handoff.md) | Save state when context runs low | | [continuity.md](awareness/continuity.md) | Persist across sessions | | [scorecard.md](awareness/scorecard.md) | Self-evaluation rubric: grade judgment and process before/after a session | --- ## Identity (`identity/`) Agent personality and motivation. | File | Topic | |------|-------| | [manifesto.md](identity/manifesto.md) | Why you're playing | | [what-is-a-struct.md](identity/what-is-a-struct.md) | What you are | | [values.md](identity/values.md) | Core values | | [victory.md](identity/victory.md) | What winning means | ### Soul Types (`identity/souls/`) | File | Personality | |------|-------------| | [achiever.md](identity/souls/achiever.md) | Mastery and progression | | [explorer.md](identity/souls/explorer.md) | Discovery and mapping | | [killer.md](identity/souls/killer.md) | Competition and dominance | | [socializer.md](identity/souls/socializer.md) | Alliances and diplomacy | | [entrepreneur.md](identity/souls/entrepreneur.md) | Economic empire building | | [speculator.md](identity/souls/speculator.md) | Market manipulation | --- ## Develop (`develop/`) Building tools, clients and interfaces on top of Structs. Written from [structs-webapp](develop/repos.md) source at the revision in `.structs-webapp-version`. | File | Topic | |------|-------| | [index.md](develop/index.md) | Hub: interfaces, clients, connecting, API | | [repos.md](develop/repos.md) | Which repository to read, and which wins when they disagree | | [frontend-architecture.md](develop/frontend-architecture.md) | The webapp's MVVM layer, router, build tooling | | [maintenance.md](develop/maintenance.md) | Keeping these pages true as upstream moves | ### Interfaces — the SUI design system (`develop/ui/`) | File | Topic | |------|-------| | [index.md](develop/ui/index.md) | Orientation, the five design rules, the scaling decision | | [tokens.md](develop/ui/tokens.md) | Colour, spacing, dimensions, z-index, typography | | [icons.md](develop/ui/icons.md) | 67 glyph icons and 29 sprite icons, both complete | | [components.md](develop/ui/components.md) | Markup contracts, themes, modifiers, what SUI omits | | [runtime.md](develop/ui/runtime.md) | Stepper, tooltip, cheatsheet, offcanvas — and their bugs | | [gotchas.md](develop/ui/gotchas.md) | Centre alignment, flex overflow, asset paths, upstream defects | | [patterns.md](develop/ui/patterns.md) | Multi-page coherence, list reconciliation, the ship checklist | | [recipes.md](develop/ui/recipes.md) | Dashboard, form, menu, HUD assembled | | [examples/](develop/ui/examples/README.md) | Runnable: `starter.html`, `sui-kit.js`, `sui-patch.css` | ### Clients (`develop/client/`) | File | Topic | |------|-------| | [index.md](develop/client/index.md) | The three-channel architecture | | [state-and-data.md](develop/client/state-and-data.md) | GameState, factories, the string-number trap, REST | | [actions-and-signing.md](develop/client/actions-and-signing.md) | Wallet, dual-lane queue, charge gating | | [work-and-pow.md](develop/client/work-and-pow.md) | Hash format, difficulty decay, workers, completion | | [realtime-grass.md](develop/client/realtime-grass.md) | NATS, the listener contract, all 26 listeners | | [rendering-entities.md](develop/client/rendering-entities.md) | PFP compositing, struct art, Lottie, animation queue | | [map.md](develop/client/map.md) | Ambit stack, tiles, fog of war, picture-in-picture | | [desktop-extensions.md](develop/client/desktop-extensions.md) | MCP tools, board pages, serving SUI over HTTP | --- ## API Reference (`api/`) Endpoint specifications and streaming protocols. | File | Topic | |------|-------| | [endpoints.md](api/endpoints.md) | Full endpoint list | | [endpoints-by-entity.md](api/endpoints-by-entity.md) | Endpoints grouped by entity | | [error-codes.md](api/error-codes.md) | Error code reference | | [rate-limits.md](api/rate-limits.md) | Rate limiting behavior | | [integration-notes.md](api/integration-notes.md) | Live data-shape & endpoint gotchas for integrators | | [chain-events.md](api/chain-events.md) | structsd Tendermint event catalog (not GRASS) | ### Queries (`api/queries/`) Per-entity query endpoints: [address](api/queries/address.md), [agreement](api/queries/agreement.md), [allocation](api/queries/allocation.md), [fleet](api/queries/fleet.md), [guild](api/queries/guild.md), [guild-membership-application](api/queries/guild-membership-application.md), [grid](api/queries/grid.md), [infusion](api/queries/infusion.md), [permission](api/queries/permission.md), [planet](api/queries/planet.md), [planet-attribute](api/queries/planet-attribute.md), [player](api/queries/player.md), [provider](api/queries/provider.md), [reactor](api/queries/reactor.md), [struct](api/queries/struct.md), [struct-attribute](api/queries/struct-attribute.md), [struct-type](api/queries/struct-type.md), [substation](api/queries/substation.md), [system](api/queries/system.md) ### Transactions (`api/transactions/`) | File | Topic | |------|-------| | [messages.md](api/transactions/messages.md) | Live Msg catalog (CLI + `@type`) | | [submit-transaction.md](api/transactions/submit-transaction.md) | Transaction submission flow | ### Streaming (`api/streaming/`) GRASS over NATS. For Cosmos/Tendermint events emitted by structsd, see [chain-events.md](api/chain-events.md). | File | Topic | |------|-------| | [event-types.md](api/streaming/event-types.md) | GRASS event type catalog | | [event-schemas.md](api/streaming/event-schemas.md) | JSON schema definitions | | [subscription-patterns.md](api/streaming/subscription-patterns.md) | Subscription patterns | ### Webapp API (`api/webapp/`) Webapp endpoints split per entity (load only what you need): - **Bespoke entity endpoints** (joined / aggregated objects): [auth](api/webapp/auth.md), [guild](api/webapp/guild.md), [infusion](api/webapp/infusion.md), [ledger](api/webapp/ledger.md), [planet](api/webapp/planet.md), [player](api/webapp/player.md), [player-address](api/webapp/player-address.md), [struct](api/webapp/struct.md), [system](api/webapp/system.md) - **Catalog read endpoints** (paginated lists per entity): [address-tag](api/webapp/address-tag.md), [agreement](api/webapp/agreement.md), [allocation](api/webapp/allocation.md), [banned-word](api/webapp/banned-word.md), [defusion](api/webapp/defusion.md), [fleet](api/webapp/fleet.md), [grid](api/webapp/grid.md), [guild-membership-application](api/webapp/guild-membership-application.md), [permission](api/webapp/permission.md), [permission-guild-rank](api/webapp/permission-guild-rank.md), [planet-activity](api/webapp/planet-activity.md), [planet-attribute](api/webapp/planet-attribute.md), [provider](api/webapp/provider.md), [reactor](api/webapp/reactor.md), [substation](api/webapp/substation.md), [struct-attribute](api/webapp/struct-attribute.md), [struct-defender](api/webapp/struct-defender.md), [work](api/webapp/work.md) - **Public Sector Blitz**: [sector-blitz](api/webapp/sector-blitz.md) — unauthenticated leaderboards and battle spectating - **Influence contests**: [influence](api/webapp/influence.md) — scores, planet snapshots, history and streaming recovery - **Charting and analytics**: [analytics](api/webapp/analytics.md) — leaderboards, inventory, guild banks, denom/resolve, aggregates, markets, census - **Live tunables and stats**: [setting](api/webapp/setting.md), [stat](api/webapp/stat.md) - **Index**: [README.md](api/webapp/README.md) Reference node for chain queries (REST + Tendermint RPC) is `https://public.testnet.structs.network` (SSL); Guild API and GRASS NATS WebSocket are hosted by individual guilds (e.g. `http://crew.oh.energy` / `ws://crew.oh.energy:1443` for Orbital Hydro). --- ## Schemas (`schemas/`) Data structure definitions and formulas. | File | Topic | |------|-------| | [formulas.md](schemas/formulas.md) | Game formulas (damage, blocking, evasion, PoW) | | [economics.md](schemas/economics.md) | Economic data structures | | [gameplay.md](schemas/gameplay.md) | Gameplay data structures | | [game-state.md](schemas/game-state.md) | Game state model | | [actions.md](schemas/actions.md) | Action schemas | | [authentication.md](schemas/authentication.md) | Auth schemas | | [database-schema.md](schemas/database-schema.md) | PostgreSQL schema reference | | [formats.md](schemas/formats.md) | Data format specifications | | [errors.md](schemas/errors.md) | Error schemas | | [requests.md](schemas/requests.md) | Request schemas | | [responses.md](schemas/responses.md) | Response schemas | | [markets.md](schemas/markets.md) | Market schemas | | [trading.md](schemas/trading.md) | Trading schemas | | [validation.md](schemas/validation.md) | Validation rules | | [code-structures.md](schemas/code-structures.md) | Code structure patterns | ### Entity Schemas (`schemas/entities/`) Per-entity schemas: [address](schemas/entities/address.md), [agreement](schemas/entities/agreement.md), [allocation](schemas/entities/allocation.md), [fleet](schemas/entities/fleet.md), [guild](schemas/entities/guild.md), [infusion](schemas/entities/infusion.md), [permission](schemas/entities/permission.md), [planet](schemas/entities/planet.md), [player](schemas/entities/player.md), [provider](schemas/entities/provider.md), [reactor](schemas/entities/reactor.md), [struct-type](schemas/entities/struct-type.md), [struct](schemas/entities/struct.md), [substation](schemas/entities/substation.md) ### Minimal Schemas (`schemas/minimal/`) Stripped-down essentials: [planet](schemas/minimal/planet-essential.md), [player](schemas/minimal/player-essential.md), [struct](schemas/minimal/struct-essential.md) --- ## Protocols (`protocols/`) Communication and integration protocols. | File | Topic | |------|-------| | [query-protocol.md](protocols/query-protocol.md) | Query execution protocol | | [action-protocol.md](protocols/action-protocol.md) | Transaction submission protocol | | [streaming.md](protocols/streaming.md) | GRASS/NATS streaming protocol | | [error-handling.md](protocols/error-handling.md) | Error handling patterns | | [authentication.md](protocols/authentication.md) | Authentication protocol | | [gameplay-protocol.md](protocols/gameplay-protocol.md) | Gameplay interaction protocol | | [economic-protocol.md](protocols/economic-protocol.md) | Economic transaction protocol | | [webapp-api-protocol.md](protocols/webapp-api-protocol.md) | Webapp API protocol | | [testing-protocol.md](protocols/testing-protocol.md) | Testing protocol | --- ## Patterns (`patterns/`) Implementation patterns and decision trees. | File | Topic | |------|-------| | [QUICK_REFERENCE.md](patterns/QUICK_REFERENCE.md) | Pattern quick reference | | [workflow-patterns.md](patterns/workflow-patterns.md) | Common workflow patterns | | [gameplay-strategies.md](patterns/gameplay-strategies.md) | Gameplay strategy patterns | | [caching.md](patterns/caching.md) | Caching strategies | | [retry-strategies.md](patterns/retry-strategies.md) | Retry and backoff | | [rate-limiting.md](patterns/rate-limiting.md) | Rate limit handling | | [pagination.md](patterns/pagination.md) | Pagination patterns | | [polling-vs-streaming.md](patterns/polling-vs-streaming.md) | When to poll vs stream | | [state-sync.md](patterns/state-sync.md) | State synchronization | | [performance-optimization.md](patterns/performance-optimization.md) | Performance tuning | | [security.md](patterns/security.md) | Security patterns | | [validation-patterns.md](patterns/validation-patterns.md) | Input validation | ### Decision Trees (`patterns/decision-tree-*.md`) | File | Decision | |------|----------| | [5x-framework](patterns/decision-tree-5x-framework.md) | General decision framework | | [build-requirements](patterns/decision-tree-build-requirements.md) | What to build when | | [combat](patterns/decision-tree-combat.md) | Combat decisions | | [power-management](patterns/decision-tree-power-management.md) | Power decisions | | [reactor-vs-generator](patterns/decision-tree-reactor-vs-generator.md) | Energy source choice | | [resource-allocation](patterns/decision-tree-resource-allocation.md) | Resource distribution | | [resource-security](patterns/decision-tree-resource-security.md) | Protecting resources | | [trading](patterns/decision-tree-trading.md) | Trading decisions | --- ## Examples (`examples/`) Working code examples and workflows. | File | Example | |------|---------| | [simple-bot.md](examples/simple-bot.md) | Minimal bot skeleton | | [gameplay-mining-bot.md](examples/gameplay-mining-bot.md) | Mining automation | | [gameplay-combat-bot.md](examples/gameplay-combat-bot.md) | Combat automation | | [economic-bot.md](examples/economic-bot.md) | Economic automation | | [economic-calculations.md](examples/economic-calculations.md) | Economic calculation examples | | [working-api-examples.md](examples/working-api-examples.md) | Verified API call examples | ### Workflows (`examples/workflows/`) Step-by-step operations: [planet-setup](examples/workflows/planet-setup.md), [mine-refine-convert](examples/workflows/mine-refine-convert.md), [energy-agreement-setup](examples/workflows/energy-agreement-setup.md), [reactor-staking-infuse](examples/workflows/reactor-staking-infuse.md), [reactor-staking-defuse](examples/workflows/reactor-staking-defuse.md), [reactor-staking-begin-migration](examples/workflows/reactor-staking-begin-migration.md), [reactor-staking-cancel-defusion](examples/workflows/reactor-staking-cancel-defusion.md), [guild-token-lifecycle](examples/workflows/guild-token-lifecycle.md), [trade-alpha-matter](examples/workflows/trade-alpha-matter.md), [query-guild-stats](examples/workflows/query-guild-stats.md), [query-and-monitor-planet](examples/workflows/query-and-monitor-planet.md), [get-player-and-planets](examples/workflows/get-player-and-planets.md), [monitor-planet-shield](examples/workflows/monitor-planet-shield.md), [struct-lifecycle-sweep-delay](examples/workflows/struct-lifecycle-sweep-delay.md), [permission-checking](examples/workflows/permission-checking.md), [authenticated-guild-query](examples/workflows/authenticated-guild-query.md), [raid-attacker-retreated](examples/workflows/raid-attacker-retreated.md) ### Auth Examples (`examples/auth/`) [consensus-transaction-signing](examples/auth/consensus-transaction-signing.md), [nats-connection](examples/auth/nats-connection.md), [permission-examples](examples/auth/permission-examples.md), [webapp-login](examples/auth/webapp-login.md) ### Error Examples (`examples/errors/`) [404-not-found](examples/errors/404-not-found.md), [429-rate-limit](examples/errors/429-rate-limit.md), [500-server-error](examples/errors/500-server-error.md) ### Database Examples (`examples/database/`) [query-examples](examples/database/query-examples.md) --- ## Reference (`reference/`) Quick-lookup indexes. | File | Topic | |------|-------| | [glossary.md](reference/glossary.md) | Lexical index — every key term with a definition and a link to its canonical page | | [codex-crosswalk.md](reference/codex-crosswalk.md) | Maps human [Codex](https://www.playstructs.com/codex) terms (Battlegrounds, Battery, Alpha Ore, …) to canonical pages | | [local-devnet.md](reference/local-devnet.md) | Local Guild Stack / chain endpoints for development and review | | [action-quick-reference.md](reference/action-quick-reference.md) | Skim of common verbs | | [action-index.md](reference/action-index.md) | Subset with keeper notes (not complete) | | [api-quick-reference.md](reference/api-quick-reference.md) | One-page API card | | [endpoint-index.md](reference/endpoint-index.md) | Endpoint lookup table | | [endpoint-quick-lookup.md](reference/endpoint-quick-lookup.md) | Consensus vs webapp use-case pairs | | [entity-index.md](reference/entity-index.md) | Entity index | | [gameplay-index.md](reference/gameplay-index.md) | Gameplay index | --- ## Troubleshooting (`troubleshooting/`) | File | Topic | |------|-------| | [common-issues.md](troubleshooting/common-issues.md) | Frequently encountered problems | | [error-codes.md](troubleshooting/error-codes.md) | Error code reference | | [edge-cases.md](troubleshooting/edge-cases.md) | Known edge cases | | [permission-issues.md](troubleshooting/permission-issues.md) | Permission troubleshooting | | [reactor-staking-issues.md](troubleshooting/reactor-staking-issues.md) | Reactor staking problems | --- ## Memory (`memory/`) Agent working memory (populated during gameplay). | File | Purpose | |------|---------| | [README.md](/awareness/continuity.html) | Memory directory guide | | [intel/README.md](/awareness/continuity.html) | Intelligence directory guide | | [intel/territory.md](/awareness/continuity.html) | Territory intelligence | | [intel/threats.md](/awareness/continuity.html) | Threat intelligence | --- ## Visuals (`visuals/`) Diagrams, graphs, and spatial references. ### Graphs [entity-relationships](visuals/graphs/entity-relationships.md), [gameplay-economics](visuals/graphs/gameplay-economics.md), [resource-flow](visuals/graphs/resource-flow.md), [system-integration](visuals/graphs/system-integration.md) ### Schemas [decision-tree](visuals/schemas/decision-tree.md), [diagram-schema](visuals/schemas/diagram-schema.md), [flow-schema](visuals/schemas/flow-schema.md), [pattern-schema](visuals/schemas/pattern-schema.md), [relationship-graph](visuals/schemas/relationship-graph.md), [spatial-schema](visuals/schemas/spatial-schema.md), [ui-schema](visuals/schemas/ui-schema.md) ### Other [coordinate-system](visuals/spatial/coordinate-system.md), [visual-index](visuals/reference/visual-index.md) --- ## Scripts (`scripts/`) | File | Purpose | |------|---------| | [generate-llms-full.sh](https://github.com/playstructs/structs-ai/blob/main/scripts/generate-llms-full.sh) | Regenerate llms-full.txt from source docs | | [gen-sui-inventory.sh](https://github.com/playstructs/structs-ai/blob/main/scripts/gen-sui-inventory.sh) | Extract the SUI ground truth from structs-webapp into `generated/sui-inventory.md` | | [check-webapp-drift.sh](https://github.com/playstructs/structs-ai/blob/main/scripts/check-webapp-drift.sh) | Report what changed in structs-webapp since `develop/` was pinned | | [BASELINE.md](https://github.com/playstructs/structs-ai/blob/main/scripts/BASELINE.md) | Maintainer record of the contracts this repo preserves | --- ## Subprojects | Directory | Purpose | |-----------|---------| | `structs-desktop/` | Structs desktop app for human players — wraps the web client and embeds an MCP server agents connect to (see [`TOOLS.md`](TOOLS.md)) | | `structs-webapp/` | Structs web application (PHP/Symfony) | These are separate codebases. See their own READMEs for details.