Guide · 20 prompts

Best Claude prompts for coding

Every prompt below is tagged as working in Claude. Open any prompt for the full text, fill-in blanks and step-by-step instructions.

This guide is presented by your brandSponsored · open
  1. 1 · Websites & Apps Build a browser extension from a description
    Scaffolds a working Chrome extension (Manifest V3) for a small job.
  2. 2 · Coding Explain an unfamiliar codebase to me
    Get a guided tour of a repo before you change anything.
  3. 3 · Coding · attach screenshot or file Find and fix a bug from an error message
    Paste the error and get the root cause, not a guess.
  4. 4 · Coding · attach file Write tests for a file
    Adds meaningful unit tests that cover edge cases, not just the happy path.
  5. 5 · Coding · attach file Refactor messy code without changing behavior
    Cleaner code with the same behavior, done in safe steps.
  6. 6 · Coding Write a SQL query from plain English
    Describe what you need and get a correct, explained SQL query.
  7. 7 · Coding · attach file Convert code from one language to another
    Idiomatic translation, not a line-by-line copy.
  8. 8 · Coding Write a Python script to automate a boring task
    A small, safe script for a repetitive job.
  9. 9 · Coding · attach screenshot or file Explain this code line by line
    Understand code you didn't write.
  10. 10 · Coding · attach file Debug why my app is slow
    Find the real bottleneck before optimizing.
  11. 11 · Coding Write an API endpoint with validation
    Production-ready endpoint with input checks and errors.
  12. 12 · Coding Plan a big refactor in safe steps
    Break a scary change into small, shippable pull requests.
  13. 13 · Coding Write a git commit message and PR description
    Clear history that teammates can scan.
  14. 14 · Coding · attach file Fix my code's security holes
    A focused security review with fixes.
  15. 15 · Coding · attach screenshot Turn a spreadsheet formula into code
    Move logic out of Excel or Sheets into a script.
  16. 16 · Data Design an A/B test
    Set up an experiment you can trust.
  17. 17 · Data Write a Python data analysis script
    Reproducible analysis with pandas.
  18. 18 · Data Write SQL to answer a business question
    From a question to a query that runs.
  19. 19 · Coding Debug a failing test suite
    Get the suite green without hiding real bugs.
  20. 20 · Coding · attach file Write documentation for my API
    Reference docs with examples for every endpoint.

Related guides

Best Claude prompts for resumesBest Claude prompts for essays and writingBest Claude prompts for code review and debuggingBest Claude prompts for customer supportBest Claude prompts for salesBest Claude prompts for health and wellness
Footer partner · openThis strip runs at the foot of every page. One partner at a time.Ask about it →