Let the $1$-form $\theta_X$ be defined as $\theta_X(Y)=g(X,Y)$. Then my textbook says
$$(d\theta_X)(\partial_k,\partial_l)=\partial_k g(X,\partial_l)-\partial_l g(X,\partial_k)-g(X,[\partial_k,\partial_l])$$
I tried looking up exterior derivatives of $1$-forms to make sense of this formula, but I only got exterior derivatives of alternating forms. How does one get the formula given above? Is one supposed to use Cartan's formula?