Craftsman garage door opener works intermittently
Verifying that the door operates correctly and without excessive force with the opener disconnected is a required first step. If the door jams, the opener cannot be expected to work well.

Given a mechanically sound door system that operates properly by hand, odd behavior in "modern" (25 years or less, perhaps) garage door openers is almost always a sign of "time to replace the logic board."

It's actually a slightly fraught choice, since a logic board is typically 1/2 the price of a replacement opener, and the replacement opener comes with a warranty, while the logic board often does not, and there's always the possibility that it won't fix the actual problem.

That said, I've replaced one and it did cure the problems that opener was having (which were life-threatening and probably resulted from a nearby lightning strike - I also added a surge suppressor to the outlet.)