Judgemental and guilty

Hello coaches

I realised that I’m way too judgemental about others and myself but the worst part is I feel really guilty for thinking negative about others later.For eg. I judged my colleague’s behavior in certain situations and I felt what he did was wrong and I indulged in talking about the situation and my thoughts to others. I did not realize it’s my thoughts then but when after few days the colleague does right thing in different situation I’m like he is being so nice how can you even talk bad about such a person. There are these contradicting thoughts about others always. One time I get too judgy and later feel guilty about it when they are nice again.

How to be more aware and not indulge in such thoughts