Cat 518 skidder door was accidently shut by mechanic asisting in getting the skidder started and unstuck smashing operators finger. Employee received a laceration to right ring finger that required stitches to close the wound, and the removel of the nail. Employee returned to work his next scheduled shift. No lost time.