The Commander, Air Group, abbreviated CAG, is the senior pilot and department head position aboard a Starfleet fighter carrier or starship, responsible for Air Wing operations and personnel. The billet is filled by the senior flight officer with a rank of captain or higher, sometimes the billet is filled by a Commander.
The name is a holdover from aquatic naval tradition where the CAG was a naval aviator-rated officer in charge of a carrier air wing.