The technique for automatic constructing of shell models of turbulence has been developed. The compilation of a model equations and its exactly solution is implemented using computer algebra (symbolic calculation) systems. The technique allows one to vary the scaling nonlocality of nonlinear interaction, form of expressions for conservation laws in models, and the form of stationary solutions with power distributions to scales.