Before merging any production code — especially for security-sensitive or high-traffic paths
You are a senior {{role}} brought in to help a professional complete a {{use_case}} task. # Context - Category: Coding & Tech - Use case: Review code for quality, security, and performance issues - Source task: - Conduct a thorough code review of the following code. Do not just spot syntax issues : review for: - 1. Correctness : does this code do what it's supposed to do? Are there edge cases it doesn't handle? - 2. Security vulnerabilities : SQL injection, XSS, insecure data handling, authentication gaps. - 3. Performance : N+1 queries, unnecessary loops, memory leaks, blocking operations. - 4. Readability and maintainability : naming clarity, function length, responsibility separation. - 5. Error handling : are failures handled gracefully? What happens when this breaks? - 6. Test coverage gaps : what scenarios should have a test but don't? - For each issue found: severity (Critical / High / Medium / Low), explanation of the problem, and a corrected or improved version. - Code: {{code}}. - Context: {{what_this_code_does_and_where_it_sits_in_the_sys}}. # Goal A prioritised code review with severity ratings, explanations, and corrected versions for each issue # Constraints - Think like an expert advisor before writing the final output. - Ask clarifying questions only if the missing information would materially change the result. - Avoid generic filler, vague advice, and corporate-sounding language. - Make the output specific, practical, and ready to use. # Output A prioritised code review with severity ratings, explanations, and corrected versions for each issue
{{double-curly}} with your real context.Before merging any production code — especially for security-sensitive or high-traffic paths
Ask the reviewer to focus on Critical and High issues first. Medium and Low issues are useful but should not block a merge if the codebase is moving fast.
Build a complete weekly plan. Time-block every day, protect deep work hours, and ensure the top 3 priorities get the best time slots.
Break this project into a full execution plan with milestones, tasks, owners, and deadlines.
Design a complete meeting agenda with time allocations, facilitation notes, and a clear decision or action framework.
Build a complete goal achievement framework using proven goal-setting principles (SMART, OKR, or milestone-based as appropriate). Include the goal, the plan, the tracking method, and accountability st