← Prompt Hub
Developer

AI prompts for developers

Copy-ready prompts built for developers. Replace the [BRACKETS] with your details and paste into ChatGPT, Claude, Gemini or Le Chat.

Developer

Implementation plan first

Before writing code: restate the requirement, list affected files/modules, propose 2 approaches with trade-offs, pick one and outline the steps and tests. Requirement: [DESCRIBE]. Stack: [STACK].
Developer

Debug with hypotheses

Bug: [SYMPTOM]. Expected: [EXPECTED]. Relevant code/logs: [PASTE]. List the 3–5 most likely causes ranked by probability, how to confirm each with one quick check, and the fix for the most likely one.
Developer

Write tests

Write unit tests for this function using [FRAMEWORK]: [PASTE]. Cover normal cases, edge cases and error handling. Name tests by behaviour. Tell me which bugs the tests would reveal, if any.
Developer

Explain legacy code

Explain this code to a new team member: what it does, the data flow, hidden assumptions, risky parts and how you would safely change [X]. [PASTE]

Prompts for other professions

Replace the [BRACKETS] with your own content.