Sketch offers the possibility to create you own scripts. This scripts appear in the "Scripts menu". See the scripts section for more details.