I think the proverb means that. You need to take classes in architect ( or some education ) to learn how to build houses and by understanding if it's firm on a base. By knowledge the rooms are filled with all precious and pleasent riches. Like a designer, you need to know about design. The proverb is basically about how you need knowledge to do both of these things.
life liberty and the pursuit of happiness
For example, a writer may choose a subject of war for his story, and the theme may be his personal opinion that war is a curse for humanity. Usually, it is up to the readers to explore the theme of a literary work by analyzing characters, plot, and other literary devices.
hope this helps :)