Not sure what you mean by scientific way, as there's no real way to test this objectively, maybe you've just had crap luck
On the subject of social skills, there have been many books on the subject, traditionally titled under Asperger's: https://www.goodreads.com/list/show/12108.Top_social_skills_...
Friendships, like all relationships, must be nurtured to survive. A lot of neurotypical people are kinda crap at nurturing friendships naturally but they try to do so often in subconscious ways.
If your social skills are below average you may not pick up on the subtle clues, so you'll have to make more explicit efforts to maintain the friendship, and explain to your friends what kind of gestures go toward nurturing it when it comes to yourself, ie you mostly consider time spent together, or chats, or phone calls, gifts, what have you.
I'm not a psychologist but I'm a neurotypical person with a few high functioning autistic friends if you want my opinion on anything.