This prompt has been very effective for me when preparing for a production build with pnpm.
Run this: tsc --noEmit > tsc.log 2>&1
Then paste the output after this prompt:
We need to fix all type errors. Below is our type check log. You must consolidate your efforts to identify the entire list of affected files, then count the total number of files and fixes to make, prioritize them by files with the most fixes required, then only work on 5 files at a time, counting down until we have reviewed them all. I will tell you to continue after each set of 5 files so that we can move quickly:
Can we have the ability to store known good prompts in a prompt database with a dropdown that lets us select pre-planned activities such as this? Bonus points if we can chain them together in a prompt pipeline.