Have you considered using this https://adobe-consulting-services.github.io/acs-aem-commons/features/packagers/query-packager/index.html ? Since you already have a query, this will handle your package creation. And since you have already limited your query to cq:Page, I would assume you should not ru...