In a recent interview, Danny Pudi was asked about the special relationship between Abed and Troy. He revealed that it wasn’t really the plan at first:
Initially [the producers] saw Troy and Pierce as being weird buddies, but things changed. Donald and I just got each other and it fit… “La Biblioteca,” spawned from an interview the two of us did. Dan Harmon saw it, spun it into a Spanish rap and put it at the end of the show. From then on we were doing a tag at the end of every episode — which was awesome because my secret desire to be on Saturday Night Live as a kid is fulfilled in 30-second spots each week. We get to have our own sketch show, almost.