[guided]The first point is that the displayed formula has to make sense in cohomology, not just on representatives. Let $\varphi\in A^{0,1}(X,T_X)$ be a smooth $T_X$-valued $(0,1)$-form with $\bar\partial\varphi=0$. Contracting the tangent-vector component into the holomorphic $n$-form $\Omega$ defines a map
\begin{align*}
C_\Omega:A^{0,1}(X,T_X)&\to A^{n-1,1}(X)
\end{align*}
by
\begin{align*}
C_\Omega(\psi):=\psi\lrcorner\Omega
\end{align*}
for every $\psi\in A^{0,1}(X,T_X)$. In particular, $C_\Omega(\varphi)=\varphi\lrcorner\Omega$ is an ordinary $(n-1,1)$-form.
We must check that this form is $\bar\partial$-closed. The compatibility of $\bar\partial$ with contraction gives the graded identity
\begin{align*}
\bar\partial(\varphi\lrcorner\Omega)=(\bar\partial\varphi)\lrcorner\Omega-\varphi\lrcorner(\bar\partial\Omega).
\end{align*}
The first term vanishes because $\varphi$ represents a Dolbeault cohomology class, hence $\bar\partial\varphi=0$. The second term vanishes because $\Omega$ is holomorphic, hence $\bar\partial\Omega=0$. Therefore
\begin{align*}
\bar\partial(\varphi\lrcorner\Omega)=0.
\end{align*}
Thus $\varphi\lrcorner\Omega$ determines a class in $H^1(X,\Omega_X^{n-1})$, which is the same Hodge summand as $H^{n-1,1}(X)$ for the compact Kähler manifold $X$.
Now suppose we change the representative of the Kodaira-Spencer class. If $\varphi'$ and $\varphi$ represent the same class in $H^1(X,T_X)$, then their difference is $\bar\partial$-exact, so there is a smooth section $\xi\in A^{0,0}(X,T_X)$ satisfying
\begin{align*}
\varphi'=\varphi+\bar\partial\xi.
\end{align*}
Contracting with $\Omega$ gives
\begin{align*}
\varphi'\lrcorner\Omega-\varphi\lrcorner\Omega=(\bar\partial\xi)\lrcorner\Omega.
\end{align*}
Because $\bar\partial\Omega=0$, the graded Leibniz rule applied to $\xi\lrcorner\Omega$ gives
\begin{align*}
(\bar\partial\xi)\lrcorner\Omega=\bar\partial(\xi\lrcorner\Omega).
\end{align*}
So the difference between the two contracted forms is $\bar\partial$-exact. Hence the cohomology class $[\varphi\lrcorner\Omega]\in H^{n-1,1}(X)$ is independent of the chosen representative $\varphi$.[/guided]