Is the statement "if an operator commutes with every generator of the Lie group, it is a Casimir operator" true? (I'm interested in the case of quadratic Casimir invariants, but any answers about higher-order ones would also be appreciated.) I understand its converse holds (for example, this post is helpful) at least for a quadratic Casimir invariant $C_2$ of a semisimple Lie algebra where $C_2$ is a product of generators contracted with a Killing form: $C_2 = g_{ab}X^aX^b$.
Let's say we choose the basis elements of $su(2)$ to be $T_i \equiv \sigma_i/2\ (i=1,2,3)$. The following commutation relations vanish \begin{align} [T_1^2, T_1] = 0 \end{align} \begin{align} [T_1^2, T_2] = T_1[T_1, T_2] + [T_1, T_2]T_1 = i(T_1T_3 + T_3T_1) = 0 \end{align} \begin{align} [T_1^2, T_3] = T_1[T_1, T_3] + [T_1, T_3]T_1 = -i(T_1T_2 + T_2T_1) = 0 \end{align} because two different Pauli matrices anticommute. I suppose $T_1^2$ is not a Casimir operator, but this result proves it is if the statement above is true so I suspect I'm missing something.