Are you ‘doing good works’ to glorify your Catholic self, for eventual salvation on worthiness? Or are you already saved and your good works glorify GOD because you are lead by HIS SPIRIT? The distinction is a life or death edge, and only YOU can see to the difference by taking it to God for discernment.
No. I strive to do good works out of love for God to glorify Him, as Matt 5:16 says. When I fail it is the circumstance you describe above so I must actually confess such "good works" since they aren't "good" they are as you describe above which isn't good. What you describe above is a sin of pride, and the Church teaches what you describe above is prideful and therefore wrong.
Or are you already saved and your good works glorify GOD because you are lead by HIS SPIRIT?
Yes. I strive to do this. But fail often. When I fail, I confess such sin and ask for forgiveness.