In areas with a dry and hot climate, factors such as strong solar radiation, high temperature, low humidity, dazzling light, and dust storms can tremendously reduce people’s thermal comfort. Therefore, researchers are paying more attention to outdoor thermal comfort in urban environments as part of urban design. This study proposed an automatic workflow to optimize urban spatial forms with the aim of improvement of outdoor thermal comfort conditions, characterized by the universal thermal climate index (UTCI). A city with a dry and hot climate—Kashgar, China—is further selected as an actual case study of an urban block and Rhino & Grasshopper is the platform used to conduct simulation and optimization process with the genetic algorithm. Results showed that in summer, the proposed method can reduce the averaged UTCI from 31.17 to 27.43 °C, a decrease of about 3.74 °C, and reduce mean radiation temperature (MRT) from 43.94 to 41.29 °C, a decrease of about 2.65 °C.