[step:Compute the local valuation $\operatorname{ord}_p(\phi^* \omega)$ at a point with ramification index $e_p$]Fix $p \in C$ and let $q = \phi(p) \in C'$. Choose local uniformisers $t = t_q$ at $q$ and $s = t_p$ at $p$, so $\operatorname{ord}_q(t) = 1 = \operatorname{ord}_p(s)$. The pullback satisfies
\begin{align*}
\phi^* t = u \cdot s^{e_p}
\end{align*}
for some unit $u \in \mathcal{O}_{C, p}^\times$, by the definition of $e_p$ as $\operatorname{ord}_p(\phi^* t)$.
Write $\omega = f\, dt$ in a neighbourhood of $q$, where $f \in k(C')^\times$. Then $\operatorname{ord}_q(\omega) = \operatorname{ord}_q(f)$, since $dt$ has $\operatorname{ord}_q = 0$ (this is the convention: $dt$ is a generator of $\Omega_{C',q}$ at the smooth point $q$, where $t$ is a uniformiser).
Pulling back:
\begin{align*}
\phi^* \omega = (\phi^* f) \cdot d(\phi^* t) = (\phi^* f) \cdot d(u s^{e_p}).
\end{align*}
We expand the differential using the Leibniz and chain rules in $\Omega_{\mathcal{O}_{C,p} / k}$:
\begin{align*}
d(u s^{e_p}) = (du) s^{e_p} + u \cdot d(s^{e_p}) = s^{e_p}\, du + u \cdot e_p s^{e_p - 1}\, ds.
\end{align*}
Since $u \in \mathcal{O}_{C,p}^\times$ is a unit, $du \in \Omega_{\mathcal{O}_{C,p}/k}$ is a regular differential at $p$, so $\operatorname{ord}_p(du) \geq 0$. Hence $\operatorname{ord}_p(s^{e_p}\, du) \geq e_p$.
The second term has $\operatorname{ord}_p(u \cdot e_p s^{e_p - 1}\, ds) = \operatorname{ord}_p(u) + \operatorname{ord}_p(e_p) + (e_p - 1) + \operatorname{ord}_p(ds) = 0 + 0 + (e_p - 1) + 0 = e_p - 1$, using $\operatorname{ord}_p(u) = 0$ (unit), $\operatorname{ord}_p(e_p) = 0$ (the integer $e_p \in k$ is nonzero by the tame ramification hypothesis $\gcd(e_p, \mathrm{char}\, k) = 1$), and $\operatorname{ord}_p(ds) = 0$ (since $s$ is a local uniformiser at $p$, $ds$ generates $\Omega_{\mathcal{O}_{C,p}/k}$ as a free module of rank $1$).
Comparing valuations: the second term has valuation exactly $e_p - 1$, the first term has valuation at least $e_p > e_p - 1$. The valuation of a sum is at least the minimum, with equality when only one term achieves the minimum. Hence
\begin{align*}
\operatorname{ord}_p(d(\phi^* t)) = e_p - 1.
\end{align*}
Combining,
\begin{align*}
\operatorname{ord}_p(\phi^* \omega) = \operatorname{ord}_p(\phi^* f) + \operatorname{ord}_p(d(\phi^* t)) = \operatorname{ord}_p(\phi^* f) + (e_p - 1).
\end{align*}
The first term computes by the formula for valuations under pullback: for $f \in k(C')^\times$,
\begin{align*}
\operatorname{ord}_p(\phi^* f) = e_p \cdot \operatorname{ord}_q(f) = e_p \cdot \operatorname{ord}_q(\omega).
\end{align*}
This identity follows directly from $\phi^* t = u s^{e_p}$ and writing $f = c\, t^{m}$ at the leading order with $m = \operatorname{ord}_q(f)$ and $c \in \mathcal{O}_{C',q}^\times$: then $\phi^* f = (c \circ \phi) (\phi^* t)^m = (c \circ \phi) u^m s^{e_p m}$, so $\operatorname{ord}_p(\phi^* f) = e_p m$.
Conclusion: at every $p \in C$,
\begin{align*}
\operatorname{ord}_p(\phi^* \omega) = e_p \cdot \operatorname{ord}_q(\omega) + (e_p - 1), \qquad q = \phi(p).
\end{align*}[/step]