Vatthu-vijja is the pali equivalent of Vastu-vidya (or shastra) and, as mentioned above, refers to “architecture” as both science and a means of livelihood. It is well-known that in ancient India numerous ‘guilds’ of various crafts and arts exists. They travelled around the country, and possibly the world, in order to distribute and provide their skills and services. One type of such guilds was the builders guild, specialised in temple architecture and city planning.
In the context of Buddhism, Vatthu-vijja occurs in a couple of Suttas. Note: these sources all apply to Theravada Buddhism.
First, in the Brahma-Jāla Sutta (chapter 1) vatthuvijja is mentioned in a lengthy list of ‘wrong means of livelihood’ applicable to Brahmans that are ‘living on food provided by the faithful’:
(16) Looking at the knuckles, &c., and, after muttering a charm,
divining whether a man is well born or lucky or not.
(17) Determining whether the site, for a proposed house or pleasance, is lucky or not.
(18) Advising on customary law.
In his notes, the translator T. W. Rhys Davids says:
Vatthu-vijjā [...] The craft is further explained by Buddhaghosa in his comment on the Mahā-parinibbāna Sutta I, 26. Its success depended on the belief that the sites were haunted by spirits.
Upon looking at Buddhaghosa’s commentary on the above-mentioned chapter of the Mahaparinibbana Sutta, we find the following:
At that time Sunidha and Vassakāra, the chief ministers of Māgadha, were building a fortress at Pāṭaligāma to repel the Vajjians, and there were many deities who inhabited the area.
Now, wherever a place is occupied by powerful deities, they bend the minds of the most powerful kings and ministers to build dwelling-places there, and deities of middling and inferior power bend in a similar way the minds of middling or inferior kings and ministers.
The Blessed One, with his divine eye, surpassing the vision of ordinary men, saw those deities occupying Pāṭaligāma. He rose early in the morning, saying to Ānanda: “Who is it then, Ānanda, who is building a fortress at Pāṭaligāma?”
“Sunidha and Vassakāra, Venerable sir, the chief ministers of Māgadha, are building a fortress there to keep back the Vajjians.”
“They act, Ānanda, as if they had consulted with the gods of Tāvatiṃsa.
[Telling him what he had seen, and of the influence the deities, he added]:
“Among the famous residences of the Noble Ones, and as far as trade extends, this will become the chief city of Pāṭaliputta, a centre for trade. However, three dangers will affect Pāṭaliputta: fire, flood, and internal dissension.”
(source: page 25)
So there you go, Vastu-shastra was a common concept in Buddhism. At the very least, the profession and purpose of architecture (vastu) was known to the Buddhist authors.