If you're a gnoll, you don't get any bonus piety from your trained skills, otherwise you get 1 piety for every 500 skill points invested. You can check the
costs of skill levels here (remember to scale the amount based on aptitude.)
In general the amount of piety gained from sacrificing skill is low enough that it won't have a meaningful impact on your piety compared to taking actual sacrifices, unless you decide to cripple yourself by sacrificing a level 14+ skill. To compare, the following sacrifices are worth roughly 5 piety (they're worth a bit more than 2500 skill exp), which itself is lower than the lowest piety sacrifice (according to my code dive this is sacrificing your lowest stat for 8 piety):
7 skill at -4 apt
8 skill at -2 apt
10 skill at 0 apt
12 skill at +2 apt
13 skill at +4 apt
Note that sacrificing a level 27 skill at -5 apt is barely enough to max out your piety in a single sacrifice (you get 141 piety from the skill and some extra from the actual sacrifice), and sacrificing a level 27 skill at 0 apt is worth 59 piety, which is a bonus of 1 or 2 *s depending on your exact piety level.