AI prompt library / Coding and debugging prompts
Coding and debugging prompts
Prompts that make AI a better pair programmer: understand code, find bugs, and write tests, without pasting your whole codebase. Fill in the brackets and paste into any AI tool.
Understand
Explain this code
Why it works: Faster than reading unfamiliar code line by line yourself.
Explain an error
Why it works: Turns a wall of stack trace into a short list of next steps.
Fix and improve
Targeted debug
Why it works: The "smallest cause" instruction stops the AI from rewriting your whole file.
Code review
Why it works: A ranked list tells you what to fix first, not just a pile of nitpicks.
Write
Unit tests
Why it works: Edge cases and a failure case are the tests people forget to write.
Regex with an explanation
Why it works: The examples let you verify the regex without trusting it blindly.
More prompt packs
Study and homework help prompts
Free copy-paste AI prompts that turn ChatGPT, Claude, or Gemini into a patient study partner: explain, quiz, summarize, and plan work you write yourself.
Better prompting basics
The simple prompting framework novices miss, as copy-paste templates. Get clearer, more reliable answers from ChatGPT, Claude, and Gemini. Free.
Writing and email prompts
Copy-paste AI prompts for clearer emails, better tone, and faster drafts. They rewrite and sharpen your writing without inventing facts. Free, for any AI tool.
Small business and marketing prompts
Free copy-paste AI prompts for social captions, product descriptions, ad copy, and customer replies. Keep your voice, save the time. Any AI tool.
Resume and job hunt prompts
Free copy-paste AI prompts to sharpen your resume, write a cover letter, and prep for interviews. They rework what is true and never invent experience.
New to prompting? Read the setup guide for ChatGPT, Claude, and Gemini.