Our works do not generate righteousness, rather our righteousness in Christ generates works.
Let Christ's righteousness and grace, not yours, be your refuge.
One thing, and only one thing, is necessary for Christian life, righteousness, and freedom. That one thing is the most holy Word of God, the gospel of Christ.