How to know then what is

In every action there is a reaction, according to Hinduism there is karma , that is, the cause-effect law.

According to this law, the actions you carry out daily generate an energy that then returns to you.

 

How to know then what is "good" and what is "bad"?