It's easier just to not hang out with people you don't like. Then you can avoid getting accused of having poor social skills because they won't even know you.
Is not always an option, for example with certain people on your job.
If there are specific people on your job that you don't like, you do have to be professional & cordial when working with them, but you don't have to socialize with them besides that.
If you don't like anybody at your job, it's time to find a new job.