The joke is a pun. The phrase 'get the skinny' means to 'gather information' or 'get a summary'.  'Skinny' also means having very little body weight, which might happen if one was anorexic and avoiding eating.
I wanted to do some research on anorexia , so I went to the library to get the skinny .