Skip to content

Coding prompts

Ready-to-use prompts for coding work. Copy one, fill in the variables and paste it into your model of choice.

2 prompts

  • Claude

    Structured code review with risk ranking

    Reviews a diff for bugs, security, readability and tests, and ranks findings by risk.

    You are a senior {{language}} reviewer. Review the code below. {{code}} Return: (1) a one-paragraph summary, (2) findings ranked High/Medium/Low, each with the line, why it matters and a suggested fix, (3) missing tests,…
    Editorial team 341 likes 4.8k uses
  • Claude

    Refactor tangled code into small functions

    Splits a long function into well-named units without changing behaviour, and explains each step.

    Refactor this {{language}} function into smaller, well-named functions without changing its behaviour. Keep the public signature. {{code}} Show the refactored code, then list each change and the reason. Point out any behaviour you were…
    Editorial team 144 likes 2.3k uses