The way to attain compunction is an attentive life. ‘The beginning of repentance comes from the fear of God and attention,’ as the holy martyr Boniface says.
Compunction comes when you consider how much you have grieved God Who is so good, so sweet, so merciful, so kind, and entirely full of love; Who was crucified and suffered everything for us. When you meditate on these things and other things the Lord has suffered, they bring compunction.
You have no peace from thoughts, which impel you to trouble others, and in turn to be troubled by others. But know, my brother, that if we offend by word or deed, we are thereby ourselves offended a hundredfold. Be longsuffering in all things and refrain from letting your own will enter into anything. Carefully examine your thoughts lest they infect your heart with deadly poison (ill temper) and make you take a gnat for a camel, a pebble for a cliff, and lest you become like a man who has a beam in his own eye but beholds the mote in the eye of another.
A brother asked the abbot Pastor, saying, 'If I should see my brother’s fault, is it good to hide it?' The old man said to him, 'In what hour we do cover up our brother’s sins, God shall cover ours: and in what hour we do betray our brother’s shames, in like manner God shall betray our own.'