Have you ever been grumpy with someone only to realize later that hunger or lack sleep played a role in your negative mood?
Vipassana meditation (also known as mindfulness) can help you become more discerning in such scenarios, helping you see how to prevent these moments from ruining your day.
This post illustrates what a vipassana practice looks like.