feat(snippet): Allow user-provided rule for writing the snippet