Record a macro as you tame the sheep. Then paste it below to generate a Razor macro which shears the same sheep with a skinning knife.