To get past him The Kid has to jump over the diamond spike and do a double jump on the other side of the spike, to stay on one location and make link hit the diamond spike instead, when The Kid is already on the other side.