Just copy an existing racial trait, such as Organic Tech.
Use unique ID numbers for the trait and tech area, then add a facility with cloaking ability and a tech requirement of your new racial tech.
Build one, and your planet gets the cloak/decloak order enabled
