Not sure I follow. If you need to lift a heavy portcullis, it's just a strength check. Need to keep that heavy portcullis open long enough for the party to get through, it's a con check. Need to figure out the mechanism to keep the portcullis open might be an intelligence check because although the mechanism is clearly visible and there are instructions, the instructions were written by the same people that do the instructions for Ikea*.
Does that answer the question?
*Although admittedly that may be an investigation check, or a wisdom saving throw vs insanity.