Is there a way to increase attributes via Skills?

I'm using a skill tree and was wondering if a skill could be used to give a passive attribute gain (grow agility, for instance). Normally any bonuses from a skill can only be gained by using it. Is there anyway to gain an attribute passively just by adding a skill (such a selecting it from a skill tree)?

Thanks in advance for any tips.

edit: apologies in advance if this should be in the scripting forum or has been answered elsewhere (I did search, but maybe used the wrong seach criterea)
Yeah, this script by Syvkal can do this. I'm using it in my current project and it works like a charm. You need another script linked on that same page though as a requisite to be able to use this one. Hope this helps.
Thanks, Matseb2611, that was a great help!

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-increase-attributes-via-skills.44150/