Writing Hookify Rules