What problem does it solve? Real-time strategy games cannot afford all-units vs all-units checks, which scale quadratically and destroy frame rates as unit counts grow. This Skill provides architectural guidance for building scalable spatial partitioning systems that keep neighbor queries, collision avoidance, and targeting fast. ## Core Features & Use Cases - Spatial Grid Architecture: Structures the world as a grid of lightweight, cache-friendly cell buckets supporting incremental updates. - Query Optimization Rules: Enforces buffer reuse, zero allocations during queries, and minimal query counts for deterministic performance. - Use Case: When implementing combat targeting for hundreds of units, use this Skill to design a uniform grid where each unit queries only its neighboring cells instead of scanning the entire unit list. ## Quick Start Use the spatial-partitioning skill to design a uniform grid system for neighbor queries and movement avoidance in my RTS unit simulation.