Snippet
Copy and paste this prompt after an implementation, refactor, or code generation request when you want one more rigorous quality pass:
Review and update all dependent methods, functions, and related features to ensure production-grade code quality.
The final output must be robust, accurate, and function exactly as expected.
To achieve this, please:
- Implement strict input validation and comprehensive error handling.
- Identify and handle all potential edge cases, adding inline comments to explain your mitigations.
- Ensure the code is clean, optimized, and adheres to standard best practices for this language.
- Confirm there are no logical or syntax bugs.How It Works
This snippet improves AI-assisted coding output by:
- Reviewing adjacent code paths - Pushes the model to inspect helpers, integrations, and dependent behavior instead of only the main function
- Prioritizing correctness - Focuses on bugs, assumptions, and failure modes before polish
- Forcing explicit validation - Requires the model to say what it checked and what still needs confirmation
- Working as an appendage - Fits cleanly at the end of an implementation or refactor conversation
Use this snippet when you already have a draft solution and want a final engineering-quality pass before accepting it.