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.
The vain desires of this world separate us from our homeland; love of them and habit clothe our soul as if in a hideous garment. We, traveling on the journey of this life and calling on God to help us, ought to be divesting ourselves of this hideous garment and clothing ourselves in new desires, in a new love of the age to come, and thereby to receive knowledge of how near or how far we are from our heavenly homeland.
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.