Commutativity and Skew-commutativity Conditions with Generalized Derivations