Question: what episode does yar die?
Answer: The character first appeared in the series' pilot episode, "Encounter at Farpoint". After Crosby decided to leave the series, Yar was killed in the episode "Skin of Evil" near the end of the series' first season.