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.
In the eyes of God, it is always preeminently right that a man should spend himself in devising new means for spreading consolation to his subordinates, who are his charges.
Men who are leading a spiritual life see by the eyes of their heart how the devil lays his snares, how the angels guide us, and how the Lord, in His Sovereign power, allows the temptations, and how he comforts.
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.
Our holy fathers have renounced all other spiritual work and concentrated wholly on this one doing, that is, on guarding the heart, convinced that, through this practice, they would easily attain every other virtue, whereas without it not a single virtue can be firmly established.
You write that after Communion you felt well. Glory be to God, Who comforts our unworthiness. And as regards the fact that this soon passed, here also is seen His fatherly providence for us. For continual consolation enfeebles the soul and makes it slothful, or leads to even greater harm. That is why the Lord takes it away quickly and again makes us feel our weakness, our helplessness, and our sinfulness. We must humble ourselves more, reproach ourselves, offer repentance for our sins, and not desire consolations, but patiently endure what God allows. Dryness and cooling of fervor are also permitted on account of vainglory.