Combine tequila, lime juice, agave nectar, and water in a cocktail shaker filled with ice. Shake vigorously until chilled; strain into an ice-filled, salt-rimmed glass. Garnish, if desired.