 The firm purpose of amendment is necessary for the grace of the sacrament. So if you're going to compose your own act of contrition, I would certainly look at the traditional acts of contrition and make sure you have the elements of repentance and amendment of life in them.