My mod Dunamis has extensive skill checks like you describe if you wanna unpack it and work backwards.
It's pretty easy to do for abilities though.
Just toss a condition in like this in dialog:
CONDITION HasAbility(1,"Charisma",1)
CHECK c
And depending on the circumstance you'd need one for the player when he doesn't have Charisma 1, so you could put in a keyword section this one:
CONDITION HasAbility(1,"Charisma",1)
CHECK !c
So the logic goes if you "HaveAbility" Charisma 1 (or greater, which is implicit AFAIK) you'll get the first keyword node/line.
And if you don't, the node/line which has !c will show instead. You could also use this condition instead:
CONDITION HasAbility(1,"Charisma",0)
CHECK c
The !c version is probably a little safer though.
The first number in those conditions are the speaker entry, which in most two speaker dialogs using the default systems the player is going to be 1. If you are launching a 3+ speaker dialog make sure to adjust accordingly. Speaker 0,1,2,3 etc in order of how they are placed in the dialog call from Osiris. I usually try to follow the convention of the player being the last one on the list. So in a 3 speaker dialog the player would be #2.
And you can check any ability, so "Charisma", or "Barter, or "WarriorLore" and the like.
If you want to check attributes or talents that requires some script maneuvering. TheMasterRat created a fancy script back in the classic D:OS version which automatically creates globalevents for every single attribute/ability/talent the players have. It's extremely handy.
Check out this thread for more details:
http://larian.com/forums/ubbthreads.php?ubb=showflat&Number=582695Ignore the initial topic, we went off it

If you're interested in those files I can copy/paste them for you so you don't have to go digging through the template.
The existing functionality you were talking about isn't quite like Pillars/F:NV since it uses the rock paper scisors intimidate/charm/reason thing from the base game which I'm not too fond of. I do think I have a template for that kicking around somewhere though. I'll take a look for it.