Wondrous item, rare (requires attunement)
Worn like a backpack, these brass and mithral legs deploy when you're knocked out or paralyzed. A series of switches allows you to program the legs with either the "Defend" or "Eliminate" setting, as well as a list of friendly creatures in order of priority.
Whenever you are paralyzed or knocked unconscious (except when unconscious due to nonmagical sleep), the skitterlegs deploy, lifting your body from the ground. While the legs are deployed, you don't count as being prone. Attacks made against you while the legs are deployed aren't critical hits, even though you are paralyzed or unconscious. The legs make Strength and Dexterity checks and saving throws with a +5 modifier. The legs have a walking speed of 30 feet.
On each of your turns while you are paralyzed or unconscious, the legs behave according to their settings:
Defend. The legs take the Dodge or Disengage action (your choice when you program the legs) and move toward the highest-priority friendly creature that is still conscious.
Eliminate. The legs move toward the nearest hostile creature and make two melee attacks with an attack bonus of +7. On a hit, the legs deal 1d8 + 2 piercing damage.
If you regain consciousness or recover from paralysis, the legs set you back on your feet before retracting. The legs can function for one cumulative hour each day. If this duration is exceeded, the legs collapse and drop you prone.
Source: Valda's Spire of Secrets