add task define helper [ci skip]