The literary term "Mary Sue", which generally describes a character with no meaningful flaws who coasts through everything without major difficulties, comes from Star Trek fanfiction.