💡 How to use these prompts:
Replace everything in [BRACKETS] with your specific details before sending.
Click Copy to copy any prompt to your clipboard instantly.
You are an expert software engineer. Debug the following code: [PASTE CODE] Error: [PASTE ERROR MESSAGE] Please: 1. Identify the root cause 2. Provide the corrected code 3. Explain why the error occurred 4. Suggest how to prevent it Note: Thinking mode is ON by default in V4 Flash — use extended reasoning to work through complex bugs systematically.
Write [LANGUAGE/FRAMEWORK] code for the following requirement: Requirement: [DESCRIBE WHAT THE CODE SHOULD DO] Input: [WHAT DATA OR PARAMETERS] Output: [WHAT SHOULD BE RETURNED OR PRODUCED] Constraints: [PERFORMANCE, LIBRARY, OR STYLE REQUIREMENTS] Include error handling and inline comments. Make it production-ready.
Review the following code as a senior engineer. Focus on: - Correctness and bugs - Performance bottlenecks - Security issues - Readability and patterns [PASTE CODE] Be specific. Line numbers where relevant.
Refactor the following code to improve efficiency without changing functionality. For each change: 1. Explain what you changed 2. Why it is more efficient 3. Any trade-offs [PASTE CODE] Target: [PERFORMANCE GOAL — e.g. reduce API calls, lower memory usage]
Write SQL for the following requirements. Use [PostgreSQL / MySQL — specify]. Requirement: [DESCRIBE WHAT YOU NEED] Schema: [PASTE TABLE DEFINITIONS] Return the query with inline comments. Include any relevant indexes I should create.
Write [LANGUAGE] code to integrate with the [API NAME] API. I need to: [LIST SPECIFIC API OPERATIONS] Auth method: [API KEY / OAuth / Bearer token] Base URL: [API BASE URL] Include error handling, rate limiting awareness, and retry logic. Show a working example call.