About Primary Slot

Although i’ve seen some people discussing about that, I still don’t understand how they work.

Can someone explain me how can I use the primary slot as a skill slot or for anything else that is made for?

Skills for the Primary slot have a Star next to them. They seem to be legendary though so it might take a while to get them.