Make the spiced syrup: Combine water, sugar, cinnamon sticks, cloves, star anise, and orange peel in a small pot.
Bring to a gentle simmer, stir until sugar dissolves, then turn off heat. Let steep 20–30 minutes. Strain and cool completely.
Prepare your rim: Mix sugar, cinnamon, and a pinch of salt on a small plate.
Run a lime wedge around the rim of a rocks or coupe glass. Dip the rim into the mixture to coat.
Fill the shaker: Add tequila, lime juice, spiced syrup, orange liqueur, and cranberry (or pomegranate) juice to a cocktail shaker with ice.
Shake: Shake hard for about 12–15 seconds until the shaker is very cold.
Serve: Add fresh ice to your prepared glass. Strain the cocktail over the ice.
Garnish with a lime wheel and a few cranberries or a small cinnamon stick.
Taste and adjust: If it’s too tart, add a splash more spiced syrup. If it’s too sweet, squeeze in a bit more lime.