Rim your glass with the salt, cinnamon sugar and habanero pepper powder (if using). Run a lime wedge around the rim of the glass and coat in the mixture.
Combine the cocktail ingredients in a cocktail shaker. Add ice and shake to combine. Strain into the glass. Garnish with apple slice and star anise or cinnamon stick.