The developed cross-platform toolkit is presented and the methodology for its use for programming trusted CNC systems is described. The use of canned cycles in a trusted CNC system allows to quickly and flexibly change production processes, in particular when changing the range of products or if it is necessary to replace equipment with a changing the CNC system. Canned cycles built on cross-platform toolkit can be adapted and customized to meet new requirements and changes in the production process, which is critical to quickly respond to changing market conditions and ensure timely order fulfillment. The cross-platform toolkit presented in the article implement logical relationships between the variables that determine the geometry of the processed elements and the processing strategy embedded in canned cycles and logical control commands, which is aimed at ensuring the trust of the CNC system. The architectural model of the toolkit provides for the formation of universal templates for developing macroprograms in a high-level language and multi-level interaction of program modules with a gallery of macroprograms. The rules for structuring and arrangement of macroprograms in the CNC system are described.