Arcane trickster

Arcane trickster was a prestige class that combined arcane spellcasting ability with stealth.

Culture
Arcane tricksters tended to prepare for any eventuality and then winged it, relying on their stealthiness to sneak in and use their spells to maximum advantage, then get away quickly.

Abilities
An arcane trickster could sneak attack just like a rogue but was able to deliver more damage. As an advanced technique, the trickster could, once a day, just decide to make a particular melee or ranged attack a sneak attack, catching their opponent off-guard and flat-footed. A highly advanced trickster could do this twice per day.

Combining magic with the practical abilities of the trade, an arcane trickster could perform sleight of hand moves, disable devices, and open locks on targets up to 30 ft (9.1 m) away.