I agree with Rick, that the anaerobic compost can be rescued, reworked, and rejuvenated to something you can incorporate into the garden.
The smelly, stinky state is due to compression and lack of oxygen. Break it down, layer some branches on the ground, and at several points in between to create oxygen pockets. Add greens (coffee grinds) on top of the branch layers and water it in. Sandwich your leaves/browns inbetween these layers, adequately moisten, and that pile will be cooking (again) in no time.
Then, you can use it...