Here is the sentence including the word.
I guess it would mean 'to do' but I would like to know why it is written in this form.
Japanese Language Stack Exchange is a question and answer site for students, teachers, and linguists wanting to discuss the finer points of the Japanese language. It only takes a minute to sign up.Sign up to join this community
「やりい」 is a light or friendly imperative form of the Standard 「やれ（よ）/やりなさい（よ）/やりな（よ）」 used in parts of Western Japan.