I think you should take another look at the economic transition from Carter to Reagan.
You can make the argument that Reagan used left wing policies to address economic issues in some instances, in opposition to his campaign promises, or that secular trends or geopolitics hurt Carter, but you can't make the argument that Carter left a good economy for Reagan to fuck up.
You absolutely can, if you really look at what happened and when. What happened, basically, was that Nixon and Ford left Carter with an incredibly-damaged economy, and Carter fixed it, but the fixes took a while to take effect. If Carter had had a second term, those changes would have taken effect while he was in the White House, but he lost. Reagan is to be applauded mostly for not undoing what Carter did.
What did Carter do? The biggest thing he did was to appoint Paul Volcker as Fed chair. Carter knew exactly what Volcker would do, and knew that it would be painful, but believed the economists who told him that it was necessary. They were right, Carter was right to believe them, and Volcker's medicine of high interest rates got inflation under control and the economy moving in the right direction, even though it caused two recessions. Reagan was smart enough to believe the economists, too, so he reappointed Volcker and made some famous speeches, especially the 1982 one in which he told Americans we needed to "Stay the Course". He didn't, of course, mention that it was Jimmy Carter's course that we were staying, but it was.
The other big thing Carter did was massive deregulation. Reagan is also often credited for deregulation, but he did very little of it while Carter did a lot -- energy, telecoms, trucking, airlines... and more. Carter really was "The Great Deregulator", not Reagan.
None of this is because Carter was some sort of economic genius (though he was an extremely smart man). It's because he got good advisors and took good advice. This is a pretty consistent story, actually. I think there are two main reasons why the economy tends to improve during democratic administrations and decline during republican ones: (1) Democratic administrations make better use of experts and (2) Democrats are less likely to go to war (though they do tend to engage in more small-scale, humanitarian interventions). Those are just my opinions, of course, and this is an incredibly complex space.