Using QM Templates and Prompt Libraries