How would I script this Skillset UI?

How would I script this UI skillset UI? https://streamable.com/fk0g1k I’ve tried multiple ways but still can’t seem to get it down. Would anyone give me any idea on how I would do this?