I'm not good at office politics, but I got better at not caring. Understanding what is erroneous stimuli, as an employee you don't have to respond especially if you aren't noticed. This is fairly easy for engineers, even lead engineers. Anywhere there is a buffer between you and other stakeholders.
Occasionally though, I do get thrust into it, mostly during a company pivot about something I wasn't hired to do. All the personalities to manage, I 100% fumble, but still deliver.