So the normal chain rule is
$$ \frac{d}{dx} f(g(x)) = f'(g(x))g'(x)$$
In words: the rate of change of $f(g(x))$ in terms of $x$ is equal to the rate of $f$ in terms of $g(x)$ times the rate of change of $g$ in terms of $x$.
Now we extend this idea to multiple variables:
If
$$ \phi(g(x), y, z) $$
then
$$ \frac{\partial}{\partial x} \phi(g(x), y, z) = \frac{\partial}{\partial g(x)} \phi(g(x), y, z) \cdot g'(x)$$
In words: the rate of change of $\phi$ in terms of $x$ is equal to the rate of change of $\phi$ in terms of $g(x)$ (assuming $y$ and $z$ remain unchanged) times the rate of change of $g$ in terms of $x$.
Now in your example we want to differentiate $\phi(x(s), y(s), z(s))$ in terms of $s$. The same principle applies, only $x$, $y$ and $z$ all depend on $s$ so
$$ \frac{d}{ds} \phi(x(s), y(s), z(s))
= \frac{\partial\phi}{\partial x}\cdot x'(s) +
\frac{\partial\phi}{\partial y}\cdot y'(s) +
\frac{\partial\phi}{\partial z}\cdot z'(s)$$