In 2366, Lieutenant Commander Shelby was placed in charge of Starfleet's defensive planning for a potential Borg invasion. Under the supervision of Admiral J.P. Hanson, Shelby proved the first who was able to put the project on a productive track. Thereafter, Hanson worked extremely closely with Shelby, spearheading all efforts to develop defenses against the Borg.
When the Federation colony on Jouret IV was destroyed, Shelby and Hanson were dispatched to consult with Jean-Luc Picard and determine whether or not the Borg were responsible. Following confirmation of a Borg presence in Federation space, she stayed aboard the USS Enterprise-D to develop strategies for facing the imminent attack.
Upon hearing that Enterprise first officer William T. Riker had been offered command of the USS Melbourne, Shelby assumed Riker would accept and set her sights on gaining the appointment as Captain Picard's new first officer. However, when she arrived on the Enterprise, she got off on the wrong foot with Riker when she said she intended to become his replacement. She remained at odds with Riker, largely because her fast and loose style clashed strongly with his safe and by-the-book tendencies. Hoping to get an early start on locating evidence of the Borg attack, she led an unauthorized away team to Jouret's surface without receiving approval from Riker beforehand, going over Riker's head to propose combat strategies to Captain Picard himself. Shelby also demonstrated her keen senses when she beat Riker in a poker game by calling his bluff.
Once the Borg attack came, Shelby proved herself to be an extremely capable officer. When Captain Picard was kidnapped by the Borg, she led several away teams in an attempt to rescue him. When Riker was granted a promotion to captain, he appointed Shelby to be his first officer and promoted her to commander despite their differences, later noting that they made a good team.
Following the destruction of the Borg cube and Picard's return as captain of the Enterprise, Shelby returned to Starfleet Command to lead the task force assigned to rebuild the fleet following the disastrous Battle of Wolf 359
Recipe: Re-sculpt hair and a bit of paint!