Socketwright is a Unity editor tool for modular kits. Point it at a folder of kit prefabs and it writes the connection sockets directly from geometry. Every hole in a boundary face becomes an opening socket, while every thin full face becomes an edge socket. On the 11 piece demo kit it derived 33 sockets and found the 4 m module by itself.

Dragging a piece near another snaps it on release with rotation resolved in one Undo step. The same sockets drive procedural levels at runtime.
The code was written with AI tools and tested in Unity 6000.5.7f1. It costs $14.99.