We study cohomologies of a curve with an action of a finite
p
p
-group over a field of characteristic
p
p
. Assuming the existence of a certain “magical element” in the function field of the curve, we compute the equivariant structure of the module of holomorphic differentials and the de Rham cohomology, up to certain local terms. We show that a generic
p
p
-group cover has a “magical element”. As an application we compute the de Rham cohomology of a curve with an action of a finite cyclic group of prime order.