To keep your roof cold, follow these three steps:
Close up attic bypasses. ...
Bonus: By stopping air leakage to mitigate ice dams, you'll save energy and reduce both your heating and your air conditioning bills.
Measure your attic insulation level. ...
Add roof and soffit vents. ...
In addition:
Reminder. To start, frost accumulates when moisture-laden air from the house gets into the attic. That's about it, pretty simple. When moisture gets into the attic, it condenses on the roof sheathing in the form of frost. Frost itself doesn't do any damage, but once it melts, things get wet, and then damage occurs.