Chosen Solution

My MacBook Pro randomly stops charging, or doesn’t charge when I first connect the charger. Charging usually works again after I briefly disconnect by tilting the magsafe connector. The contacts are clean, the same problem occurs with other chargers, and I already tried an SMC reset. Should I look into replacing the battery or magsafe board?

Well the battery looks good! So lets focus on replacing the MagSafe DC In-Board. Here’s the IFIXIT guide: MacBook Pro 13" Retina Display Early 2015 MagSafe DC-In Board Replacement and here’s the needed part: MacBook Pro 13" Retina (Late 2013-Early 2015) MagSafe 2 DC-In Board