← Home
Daily Guides

Prompting for Coding

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

Write a spec first

Turn this idea into a short spec:
- user story
- acceptance criteria
- edge cases
Idea: [paste]

Debugging

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: [...]

Refactoring

Refactor this for readability and safety.
Constraints: keep behavior the same.
Explain changes briefly: [paste code]

Code review

  • “List potential bugs and security risks.”
  • “What edge cases would break this?”
  • “Suggest more descriptive names.”
Reliability tip: Always request tests. Bugs often surface immediately when tests are written.

Explore more

More: all guides · suggest a prompt