What are the fundamental rules to write a quality content?

Imo the most important things are: understand who you are producing it for, why you are producing it for them, where they will consume it and what you want them to do as a result of viewing it.

Clear answers on all of those points imo leads to good content