So good. There have, in fact, been good Shirley episodes and moments, but she's the least geek-friendly character on the show, so she tends to get overshadowed. This kind of episode is exactly why shows should push at things that seem like they're not working.
Something that I missed that was pointed out in the AV Club's comments: when Troy leaves his sheet fort, humming his little song...and locks the sheet behind him.