
The Kaogongji, or Artificers' Record, is an ancient Chinese technical text, dated to roughly the 5th century BCE and later incorporated into the Rites of Zhou, that records craft and construction standards. Its section on the ideal capital specifies a square walled city laid out on a nine-by-nine grid of streets, with the ruler's palace at the centre, the ancestral temple and altar of soil flanking it, the court to the front and the market to the rear. The plan expressed a cosmological order linking the ruler, the cardinal directions and the structure of the state. It functioned as a normative ideal rather than a literal building manual.
It codified the Chinese cosmological capital that guided imperial city-building for two millennia. Its prescriptions are legible in great planned capitals such as Tang Chang'an, Yuan Dadu and Ming Beijing, with its axial, walled, palace-centred grid.