Hi Googler- Kudos to you for having an earnest desire to lead a virtuous life! I highly recommend to you Vinny Flynn’s book “7 secrets to Confession.” It’s a fairly short and clear read on Confession. The most important insight I’ve learned from the book is that Confession is not just a place to go to confess sins. Yes, we do receive forgiveness, but the most important word associated with Confession is not forgiveness but rather healing. We are healed. We go to the confessional to be washed away from sin and to resolve to sin no more, to live more like Christ.
As far as how to cooperate with the grace we are given? Certainly we receive many graces from just going to Confession, and hopefully that develops into a weekly or bi-weekly pattern. Also, one of the best ways to overcome repeated sin is to say the Rosary (with much love and devotion, so say it slowly) each day. Either you will give up the practice of saying the Rosary or you will give up the sin

And of course, receiving Jesus each day would help if it is possible for you to go to daily Mass.
Both quotes from St. Francis de Sales:
“Let us not forget the maxims of the saints, who teach us to advance a little further each day on the road to perfection. This thought should encourage us not to be surprised or to feel miserable whenever we have something to correct. Each day we must begin again with renewed courage.”
“Even though we commit many faults through human weakness, we would not become upset. While detesting the fact that we have offended God, we can still experience a certain joy in humility and a kind of delight in our miseries. In the midst of all the occupations of each day, see to it that you do not become too absorbed in material things. Keep a tight grasp of Christ’s hand. Whenever you find yourself with more than you can handle, do no panic, but look to Christ.”