Pudding mixes add flavor and texture to cookies. The cornstarch in pudding mix keeps the dough from spreading while baking and produces a soft, chewy texture.