I have an idea where a player can choose which skill to unlock, but i don't know how.

I'm thinking something like, when the player reaches level 5. you get to choose either one skill or another skill.
is there a way to do this?
or should i just download a skilltree plugin?
The easiest way would be via the built-in dialogue choice selection.
You could try this Yanfly's plug in, the tutorial explains how it works perfectly
Depends on how you want it done.

My own skills "level up" at certain points. The player then has to choose which version they want of that skill. I simply set up a Choice, then the text box under the choices explain exactly what each choice does, and when the player selects it, I add the new skill and remove the old skill.

What you're asking for is pretty simple. It really only gets complicated if you're doing things like, "spend AP to unlock a skill", and then plugins become much more appealing to use (though, I never use a plugin for anything I can event).
This can be done with events, or you could also use a plugin. The choice is yours. For now I'm moving this thread to RPG Maker MV. Tell me if you want to go the plugin route instead I'll move your thread to the appropriate sub-forum.

I've moved this thread to RPG Maker MV. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/i-have-an-idea-where-a-player-can-choose-which-skill-to-unlock-but-i-dont-know-how.119703/