The template and conformation files are written by hand.
You can find some basic documentation here and by looking at the other ASN.1 dissectors.