You may gain skill even failing an action - that depends on skill. For instance, [[lockpicking]] won't raise on failures, but [[carpentry]] will.
Stamina effects skill gain. If you have low or no less than 30 stamina, you will gain almost no half as much skill. It's recommended to have full stamina when you start an action. Action time also affects skill gain. The longer the action, the more skill you gain for that action.
===Family skills===