I would be very greateful if any one correct this sentence/improvement.

Before holding any task, we should develop good character and only after following the path of god, then only we acquire good character.

I don't understand what "holding any task" means. Please explain.

In the rest, the repetition of "... good character" can be eliminated.

Try this:

Only while following the path of God will we develop good character, which should be reflected in all our actions.

(But I'm just guessing about what you mean by "holding any task.")

Good character is a requirement for every task we perform.

To improve the sentence, we can make it more concise and clear.

"Before taking on any task, we should develop a good character. By following the path of god, we can acquire this positive attribute."

To correct the sentence, we need to address the tense agreement issue and rephrase it for better clarity:

"Before undertaking any task, we should focus on developing a good character. Only by following the path of god can we acquire this desirable trait."

Remember, everyone has their own writing style and preferences, so the changes I made may not align with your personal style.