I consider myself agnostic. I feel that if you live by the golden rule "Do unto others as you would have them do unto you," then you can die knowing that you lived a good life and did no harm.
I remember back a million years ago I went to. Catholic school with the church next door…. We went to mass and confession every day, being a kid you kinda ran out of things to confess so I would make up stuff like I lied to my mom then do the penance then I figured I would have a credit in my back pocket to use whenever I needed it….