Debug This Code
You are a senior [language] developer. Find the bug in the code below. Explain the root cause in simple terms, show the corrected code, and suggest one test that would have caught…
ChatGPT, Claude, GitHub Copilot, Cursor
Prompts for developers: debugging, reviews and docs.
5 prompts
You are a senior [language] developer. Find the bug in the code below. Explain the root cause in simple terms, show the corrected code, and suggest one test that would have caught…
ChatGPT, Claude, GitHub Copilot, Cursor
Review this [language] code like a senior engineer. Check for bugs, security issues, performance problems, readability and missing tests. Rank issues by severity and suggest concrete fixes. Code: [paste]
ChatGPT, Claude, Cursor
Write unit tests for the following [language] function using [test framework]. Cover normal cases, edge cases and error cases. Explain briefly what each test checks. Function: [paste]
ChatGPT, Claude, GitHub Copilot
Explain what the following code does, step by step, for a developer new to this project. Then list any assumptions, side effects and potential risks. Code: [paste]
ChatGPT, Claude, Cursor
Write a clear README.md for a project called [name] that [what it does]. Include: overview, features, installation, usage examples, configuration, contributing guidelines and license section. Use Markdown.
ChatGPT, Claude