Plant squash around the perimeter of your garden. Skunks enjoy squash but most won’t walk on the squash leaves to get to the vegetable because the plant leaves contain tiny hairs that irritate the skin and feet of skunks.
Consider planting Fritillaria imperialis, or Crown Imperial, to get rid of skunks. The Crown Imperial is a flower-producing plant. The flowers have an unpleasant odor to skunks, rodents and many people.
Be aware that mothballs are carcinogenic and banned in the European Union. They are dangerous to pets.
Be sure your traps are tubular in shape and narrow. This serves 2 purposes: it keeps the skunks calm in the dark and prevents them from raising their tails to spray. Bait the traps with bacon, cat food, berries, peanut butter or other items that skunks like to eat. Place the traps in the garden or in the travel paths to the garden.