Core rule
Ability checks
Ability checks resolve attempts during conversation, exploration, and other activities.
Picking a lock or noticing a hidden object uses the relevant ability and skill. Skill proficiency adds its bonus when applicable.
A bonus limited to attack rolls or saving throws does not also improve ability checks. Read which kind of check an effect modifies.