Generate a core hook for a Sails application.