Raid starships are excellent for this. I like to place a fleet on my side of a wormhole then send the raid ships in to destroy guard posts and free up the defenders which immediately head for my wormhole and get toasted. Unlike light starships, the raid ships are fast enough to flee defending units and have to be fairly unlucky to get killed.