Locksight

Divination
Level: Alchemist* 1, Antipaladin* 1, Artificer * 1, Bard * 1, Inquisitor * 1, Sorcerer */Wizard * 1
Components: V, S, M/DF (a small key)
Casting Time: 1 Standard Action
Range: touch
Target: one creature
Duration: 1 hour/level
Saving Throw: Will negates (harmless)
Spell Resistance: yes (harmless)
  The target can observe for 1 full round a lock that he is aware of (or Object that includes a lock, such as a chest or door) that is within 60 feet to automatically determine whether it is open, closed, or jammed. If the target creature is trained in Disable Device, by concentrating on a lock for 3 rounds, he can also determine the quality of the lock (simple, average, good, or superior). This spell does not enable the target to see hidden locks, such as those on secret doors.