Jamie,
For recessed slotted nuts, I always first look around at tool suppliers (both mechanical and electronic) to see whether anyone makes either a square drive or nut driver style tool of the correct size. If I find nothing Or if I need it NOW) , then I usually sacrifice a deep pattern 12-point square drive socket (more often than not a 1/4" drive) and mill the blades on the end of it. I've done several sizes now so seldom encounter a size that I don't already have. The reason that I always use a deep pattern socket is that some of the cases where I encounter the slotted nuts, there is a shaft of some sort sticking out from them. Sockets, although hardened, aren't that hard. And I've not encountered one that didn't machine OK. The problem with grinding in this instance is first accuracy and second getting a square corner. Ideally you want the blade length about .005" shorter than the slot depth. So to fit properly with no wobble, you can't have much of a radius between the blades and the end of the cut back socket. Also, cut the blades long and then cut off to desired length. The ends of sockets are rounded off, which is something that you do not want on a screwdriver tip.
Robert D.