In Psalm 45 the poet pulls back the curtain on how godly poetry is composed and provides a model for us to imitate.
Consider the words of the first verse:
My heart overflows with a good theme
I will recite my verses to the king
My tongue is the pen of a ready writer.
Here, listed unpoetically, are some principles exemplified in this verse: