Final say on what the subject of the check is comes down to the GM's decision, but it's good to talk it out a bit with the players. A GM could just have a check independent of any class skills or knowledge, but most checks will be based around class abilities and skills.