For code, your prompt should include environment, constraints, and desired output format. Ask for tests and edge cases.
Related: prompt recipe · prompt lists · daily prompts · random prompt
Turn this idea into a short spec:
- user story
- acceptance criteria
- edge cases
Idea: [paste]
Here is the error and code.
1) explain likely causes
2) propose fixes
3) show the corrected code
4) add a minimal test
Error: [...]
Code: [...]
Refactor this for readability and safety.
Constraints: keep behavior the same.
Explain changes briefly: [paste code]
Curated prompts by category.
Visit today’s prompt or go back in time.
Read next →
Read next →
Read next →
Read next →
More: all guides · suggest a prompt