Source: Starfinder Core Rulebook p.370
Level Mystic 6
School enchantment (mind-affecting)
Casting Time 10 minutes
Targets one willing or unconscious, living creature
Saving Throw none; Spell Resistance no
Psychic surgery heals the target of all Intelligence, Wisdom, and Charisma damage, and it restores all points permanently drained from the target’s Intelligence, Wisdom, and Charisma scores. It also eliminates all ongoing confusion, fear, and insanity effects. Psychic surgery also removes any mental afflictions that could be removed with dispel magic, as well as mental diseases. Psychic surgery removes all effects magically altering the target’s memory, even instantaneous effects, and it can restore a memory to perfect clarity (even if the memory loss is due to the mundane passage of time).