First derivative of $x^x$
The first derivative of $x^x$ is a rather elegant one:
$$\left(x^x\right)' = \left(e^{\ln x^x}\right)' = \left(e^{x\ln x}\right)'$$
Using the chain rule this becomes,
$$ e^{x\ln x} (x \ln x)' = e^{x \ln x} \left(\ln x + \frac{x}{x}\right) $$
We got $e^{x \ln x}$ by transforming $x^x$ so we use that substitution,
$$ \left(x^x\right)' = x^x(\ln x + 1) $$
First derivative of ${}^nx$
Your second question is about the first derivative of tetration. There are many notations used but one of the most popular is Rudy Rucker notation. Here $^0x = 1$ and ${}^nx = x^{^{n - 1}x}$,
for example $x^{x^x} = {}^3x$.
My attempt at finding $\left({}^nx\right)'$:
If $n = 0$
$$ \left({}^0x\right)' = (1)' = 0 $$
If $n > 0$, we get using the definition,
$$ \left({}^nx\right)' = \left( x^{^{n - 1}x} \right)' $$
Using a similar approach as used above we get,
$$ \left( e^{^{n - 1}x \ln x} \right)' =
e^{^{n - 1}x \ln x} \left(\left(^{n - 1}x\right)' \ln x + \frac{^{n - 1}x}{x} \right) $$
Which after substitution gives us,
$$ \left({}^nx\right)' = {}^nx \left( \left({}^{n - 1}x \right)' \ln x + \frac{^{n - 1}x}{x} \right)$$
I'm a CS student in the first bachelor so my solution is probably naive. It also seem too simple compared to the other results, so there could be/probably is something wrong. If anyone has any comments they would be highly appreciated!