thedivergentai/gd-agentic-skills/godot-genre-simulation

Claude Code and agent skill by thedivergentai/gd-agentic-skills

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Expert blueprint for simulation and tycoon games (SimCity, RollerCoaster Tycoon, Factorio, Two Point Hospital) covering economy management, time progression, interconnected systems, NPC simulation, and feedback loops. Use when building management sims, tycoon games, city builders, or resource optimization games. Keywords tycoon, economy system, resource management, time scale, feedback loop, progression unlock, simulation tick.

Install

npx vskill@latest install thedivergentai/gd-agentic-skills/godot-genre-simulation

SKILL.md

The same SKILL.md was published earlier as thedivergentai/gd-agentic-skills/godot-genre-simulation.

NEVER Do (Expert Anti-Patterns)

Simulation & Economy
  • NEVER use floating-point for primary currency; strictly use Integer Cents (or fixed-point math) to prevent accumulated precision errors in financial models.
  • NEVER process 1000+ entities individually in _process(); strictly use a Tick Manager to batch updates or process entities in rotating pools.
  • NEVER rely on linear cost scaling; strictly use Exponential Growth (Base * pow(1.15, Level)) to maintain challenge and strategic tension.
  • NEVER hide critical metrics from the player; strictly provide Detailed Breakdowns (Income vs. Expense) so players can make optimization-based decisions.
  • NEVER allow infinite resource stacking; strictly enforce Logistical Caps (warehouses/silos) to create meaningful space-management gameplay loops.
  • NEVER let the early game become a "Waiting Simulator"; strictly Front-Load Decisions and quick early wins to build player momentum.
  • NEVER modify a shared Resource directly; strictly use `duplicate()` to avoid unintentionally updating every building of that type.
  • NEVER tie simulation logic to the visual framerate; strictly use `_physics_process()` or delta accumulators for deterministic simulation results.
Performance & Threading
  • NEVER update UI labels every frame; strictly use Event-Driven Signals to refresh UI ONLY when the underlying data changes.
  • NEVER run heavy economic loops synchronously; strictly use WorkerThreadPool to offload complex calculations and prevent UI stutters.
  • NEVER store massive resource data as Nodes; strictly use `RefCounted` or Data Resources to avoid the memory/CPU overhead of the SceneTree.
  • NEVER ignore `OS.low_processor_usage_mode`; strictly enable it for stationary management screens to save massive CPU/Battery life.
  • NEVER manipulate the SceneTree from background threads; strictly use `call_deferred()` for thread-safe UI updates.
  • NEVER parse large JSON save files on the main thread; strictly use Threaded Serialization or optimized binary .res formats.
  • NEVER use standard equality (==) for needs; strictly use `is_equal_approx()` to prevent floating-point jitter failures in logic gates.

πŸ›  Expert Components (scripts/)

MANDATORY reads before implementing the matching system:
1. tycoon_economy.gd β€” integer cents / discrete stocks
2. sim_tick_manager.gd β€” _physics_process tick accumulator
3. simulation_tick_controller.gd β€” speed / pause control surface
Original Expert Patterns
Modular Components

Core Loop

  1. Place/build β†’ 2. Tick economy β†’ 3. Read income vs expense β†’ 4. Unlock / expand β†’ 5. Optimize logistics

Decision Trees

Currency & time (must match NEVER)
NeedAction
Money / walletsMANDATORY tycoon_economy.gd β€” integer cents, never float primary
Sim clockMANDATORY sim_tick_manager.gd β€” accumulator on _physics_process
Speed UIsimulation_tick_controller.gd
Tick rate vs UI vs threads
Entity / loadStrategy
< ~200 entitiesTick signal β†’ direct update; UI via resource_changed only
Hundreds of agentsRotate pools per tick; npc_schedule_agent.gd
Heavy graph / path logisticsOffload with WorkerThreadPool; call_deferred UI β€” see simulation_patterns.gd / economy_graph_manager.gd
Stationary management screensEnable OS.low_processor_usage_mode

Do not re-inline TycoonEconomy / SimulationTime / Worker tutorials β€” load the scripts.

Skill Chain

PhaseSkillsPurpose
1. Dataresources, godot-economy-systemStocks / sinks
2. Timetick managerDeterministic hours
3. Agentsschedules / navNPCs & logistics
4. PerfWorkerThreadPoolHeavy ticks
5. Balancegodot-monte-carlo-balancerBankruptcy / growth bands

Common Pitfalls

PitfallSolution
Float moneyInteger cents in tycoon_economy
_process sim stepPhysics accumulator tick manager
UI every frameSignal on resource_changed only

Deep recipes (on demand)

TopicReference / script
Economy & walletseconomy-design.md + tycoon_economy.gd
Sim clock / speedtime-system.md + sim_tick_manager.gd
Workers & facilitiesentity-management.md + npc_schedule_agent.gd
Demand & customerscustomer-demand.md
Feedback & dashboardsfeedback-systems.md
Unlock progressionprogression-unlocks.md
Production graphs / CSV bakeelite-technical-patterns.md + simulation_patterns.gd

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain β€” do not preload the whole lattice.
Official Documentation
  • Idle and physics processing β€” Simulation clocks and economy ticks must accumulate with delta (or a dedicated tick), never frame-count assumptions.
  • Using signals β€” Emit resource/tick changes so dashboards refresh only when wallets or hours actually change.
  • Resources β€” Recipes, facilities, and unlock tables belong as .tres Resources so designers retune chains without code edits.
  • GDScript exports β€” @export build costs, wages, and growth bases so balance sheets stay Inspector-driven.
  • Saving games β€” Persist stocks, day/hour, unlocks, and facility graphs so long management sessions survive restarts.
  • Data paths β€” Keep large binary/JSON sim saves under user:// across platforms.
  • Using multiple threads β€” Heavy production-graph and upkeep passes belong on WorkerThreadPool, not the main-thread UI loop.
  • Thread-safe APIs β€” Marshaling sim results to Labels/Tree requires call_deferred / main-thread SceneTree rules.
  • WorkerThreadPool β€” API for batching economy ticks without blocking manager screens.
  • OS β€” Enable OS.low_processor_usage_mode on stationary management UIs to cut CPU/battery burn.
  • AStarGrid2D β€” Grid logistics and worker paths on factory floors without manually wiring AStar points.
  • Using NavigationServers β€” Direct NavigationServer3D.map_get_path queries for schedule-driven NPCs without per-agent node overhead.
Related Skills
Prerequisites
  • godot-project-foundations β€” Autoloads, Resources, and scene structure before building tick managers and economy graphs.
  • godot-gdscript-mastery β€” Typed Dictionaries, signals, is_equal_approx, and fixed-point-safe math for currency and needs.
  • godot-resource-data-patterns β€” Production recipes and unlock tables should be Resource-first .tres assets, not hard-coded Node trees.
  • godot-signal-architecture β€” Tick and resource_changed buses must drive UI without Labels mutating the simulation wallet.
Complements
  • godot-economy-system β€” Soft-currency wallets, sinks, and transaction ledgers that compose with tycoon multi-resource stocks.
  • godot-save-load-systems β€” Versioned serialization for large world states, binary store_var, and threaded save/load.
  • godot-navigation-pathfinding β€” NavigationServer / grid pathing for worker jobs and schedule agents after the tick clock exists.
  • godot-performance-optimization β€” Entity batching, low-processor mode, and thread offload budgets for 1000+ sim entities.
  • godot-autoload-architecture β€” TimeManager / Economy autoloads that survive scene reloads need clear ownership rules.
  • godot-ui-containers β€” Income/expense dashboards and facility lists are Tree/VBoxContainer layouts bound to throttled signals.
Downstream / consumers
  • godot-monte-carlo-balancer β€” After cost curves, production yields, and CSVβ†’.tres balance sheets exist, Monte Carlo career sims prove minutes-to-milestone and bankruptcy bands before shipping growth factors.
  • godot-genre-idle-clicker β€” Offline catch-up and prestige loops reuse tick + integer-currency patterns from management sims.
  • godot-genre-rts β€” Build-order economies and worker logistics consume the same tick/graph and pathfinding primitives at combat scale.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNeutral, 77 of 100Ineffective. 1 run. Evaluated 8 months ago.

Source

Popularity

Repository stars
754
Repository forks
45
7-day trend score
33

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thedivergentai/gd-agentic-skills/godot-genre-simulation/badge)](https://verified-skill.com/skills/thedivergentai/gd-agentic-skills/godot-genre-simulation)

Something wrong with this skill or its page? Tell us.