“Its amazing what you can accomplish if you don’t mind who gets the credit.” Harry Truman
Every time you try to take credit, check yourself.
Why do you need the credit?
If the job is done, then that should be enough. Unless the only reason you were doing the job is to get credit.
In which case you’re doing the wrong job.
The urge to claim credit comes from your ego.
Get your ego out the way.
Give credit to others.