I'm getting back into Minecraft, and after successfully making a Bukkit server with my favorite plugin (Runecraft), I started playing with commands. There's a couple of things I'm wondering how I can do, such as:

-Spawning an allied skeleton. That is, a skeleton that attacks everything that isn't me. Potentially with the AI of a wolf, if that is possible?

-A simple way of attaching a potion effect to a weapon/item/armor (either on-hit or passively), plugins compatible with 1.19.1/bukkit included