There is a popular saying that it takes only doing something three times for it to become a habit.
I believe that's true. If one continually does something, they puts in the effort daily in any endeavour, they stand higher chances of being successful.
I totally agree with you on the the aspect of purpose, one cannot just wake up without a plan for the day, same also is going on a trip you can't hit the road without having a destination, even preparations itself won't be enough if there's no purpose.
Same goes for writing whether to make gains or not, I think it's proper to do it to your best. And always be willing to contribute meaningfully in any place you find yourself.
That is what makes us better over time.