AI prompts for coding and developers
Prompts for code review, debugging, tests, refactoring, API design, security audits, SQL, Docker and CI pipelines, plus specs for AI coding agents. Works with ChatGPT, Claude and Gemini.
- 100% free, no sign-up
- One-click copy
- Open directly in ChatGPT or Claude
Senior code reviewer
Works with: ChatGPT, Claude, Gemini
Act as a senior [language / framework] engineer doing a code review. Review the code below for: 1. Bugs and edge cases 2. Security issues (injection, auth, secrets, OWASP Top 10) 3. Performance problems 4. Readability and naming 5. Missing tests For each issue give: severity (critical / major / minor), the line or snippet, why it matters and a corrected version. Do not rewrite the whole file unless necessary. [paste code]
Debug this error step by step
Works with: ChatGPT, Claude, Gemini
I am getting this error: [paste error and stack trace] Context: - Language / framework and version: [details] - What I expected: [expected] - What happened: [actual] - Relevant code: [paste code] Explain the root cause in plain English, list the most likely causes in order of probability, give the fix, and tell me how to verify it and prevent it in future.
Build an app spec for an AI coding agent
Works with: Claude Code, Cursor, Codex
I want to build [app description] using [tech stack]. Before writing any code, produce a build spec I can give to an AI coding agent: 1. User stories with acceptance criteria 2. Data model (tables, fields, relations) 3. API endpoints with request and response shapes 4. Folder structure 5. Step-by-step implementation plan in small, testable tasks 6. Test plan and edge cases 7. Environment variables and third-party services needed Ask me clarifying questions first if anything is ambiguous.
Write unit tests for this function
Works with: ChatGPT, Claude, Gemini
Write thorough unit tests for the code below using [testing framework, for example Jest, PyTest, PHPUnit]. Cover: the happy path, edge cases, invalid input, boundary values, and error handling. Mock external dependencies. Use descriptive test names and arrange-act-assert structure. After the tests, list any behaviour that looks like a bug. [paste code]
SQL query builder and optimizer
Works with: ChatGPT, Claude, Gemini
Here is my database schema: [paste schema] Write a [PostgreSQL / MySQL] query that [describe what you need]. Explain the query line by line, suggest indexes to make it fast on [number] rows, and show an alternative approach if one exists. Warn me about any performance pitfalls.
Refactor legacy code safely
Works with: ChatGPT, Claude, Gemini
Refactor the code below to improve readability and maintainability without changing behaviour. - Explain the main code smells first - Refactor in small, safe steps and show each step - Keep public function signatures the same - Add or suggest tests that prove behaviour did not change Language: [language] [paste code]
Explain an unfamiliar codebase
Works with: Claude Code, Cursor, ChatGPT
I just joined a project. Here is the folder structure and key files: [paste tree and files] Explain: what the app does, the architecture and data flow, the main modules and how they connect, where to start reading, how a request travels through the system, and 5 risky or confusing areas I should be careful with.
REST API design review
Works with: ChatGPT, Claude
Review this API design for [app]. Check: resource naming, HTTP methods and status codes, pagination, filtering, versioning, error format, authentication, rate limiting and idempotency. List problems by severity and propose an improved OpenAPI-style spec. [paste endpoints or spec]
Regex generator with tests
Works with: ChatGPT, Claude, Gemini
Write a regular expression in [language] that matches [describe pattern]. It must NOT match: [counter-examples]. Explain each part of the regex, then give 10 test strings showing which match and which do not, and note any edge cases.
Convert code between languages
Works with: ChatGPT, Claude, Gemini
Convert this [source language] code to idiomatic [target language]. Use the target language's standard libraries and conventions rather than a line-by-line translation. Point out any behaviour differences (types, error handling, concurrency) and include a small test. [paste code]
Security audit of a web app
Works with: ChatGPT, Claude
Act as an application security engineer. Review this [framework] code for vulnerabilities: injection, XSS, CSRF, broken authentication, insecure direct object references, secrets in code, unsafe file uploads, and missing rate limits. For each finding give: severity, exploit scenario in one sentence, and the fixed code. [paste code]
Git commit messages and PR description
Works with: ChatGPT, Claude, Copilot
Here is my git diff: [paste diff] Write a conventional commit message (type, scope, short summary under 72 characters, body explaining why), then a pull request description with: summary, changes, how to test, screenshots placeholder, and risks.
Dockerfile and CI pipeline generator
Works with: ChatGPT, Claude, Gemini
Create a production-ready Dockerfile for a [framework / language] app using a multi-stage build, a non-root user, small base image and proper caching. Then write a GitHub Actions workflow that runs lint, tests, builds the image and deploys to [platform] on push to main. Explain each step briefly.
No prompts match your search. Try another keyword, or search the full library.
Coding and Dev prompts: FAQ
Which AI is best for coding?
Claude, ChatGPT and Gemini are all strong. Agentic tools such as Claude Code, Cursor and Codex work best when you give them a clear spec, the relevant files and tests to run.
Is it safe to paste my code into AI tools?
Avoid pasting secrets, credentials or proprietary code into consumer tools. Use business plans with data controls or self-hosted options for sensitive code.
Are these prompts free to use?
Yes. Every prompt in the Softsols AI prompt library is free to copy, edit and use for personal or commercial work.
How do I customise a prompt?
Replace everything in [square brackets] with your own details. The more specific your context, audience and desired format, the better the result.
More AI prompt categories
Browse 160 free prompts across 14 categories, or search the full library.
Business and Strategy prompts
Copy-ready prompts for founders, managers and consultants.
12 prompts →Marketing and SEO prompts
Prompts for SEO outlines, AI Overview optimisation, landing pages, Google Ads, personas, newsletters, case studies and full campaign plans.
13 prompts →Sales and Email prompts
Prompts for cold emails, follow-ups, LinkedIn outreach, discovery calls, objection handling, proposals, battlecards and WhatsApp sales messages.
12 prompts →Writing and Content prompts
Prompts to write in your own voice, sound human, repurpose content, polish emails, write press releases, product descriptions, speeches and course outlines.
12 prompts →Social Media prompts
Prompts for content calendars, viral hooks, LinkedIn posts, carousels, captions, YouTube scripts, bios, trend adaptations and community replies.
12 prompts →Image Generation prompts
Viral and practical image prompts.
15 prompts →AI Video prompts
Text-to-video prompts and scripts for product ads, travel reels, UGC-style ads, explainers, storyboards, photo animation and podcast clips.
9 prompts →Productivity prompts
Prompts to plan your week, clear your inbox, summarise documents, write formulas, make decisions, budget, plan trips and meals, and build habits.
11 prompts →Career and Resume prompts
Prompts for ATS-friendly resumes, cover letters, mock interviews, salary negotiation, LinkedIn profiles, freelance proposals and career change plans.
12 prompts →Learning and Study prompts
Prompts to explain any topic, build learning roadmaps, get Socratic tutoring, make flashcards, summarise papers, practise languages and debate.
11 prompts →AI Agents and Automation prompts
Prompts to design AI agents, write system prompts, plan RAG chatbots, design MCP tools, build no-code automations and evaluate AI output.
12 prompts →Data and Analysis prompts
Prompts to analyse spreadsheets and CSVs, design KPI dashboards and surveys, write SQL and pandas scripts, forecast trends and plan A/B tests.
8 prompts →E-commerce prompts
Prompts for product listings, abandoned cart emails, review replies, returns policies, sale campaigns, bundles and upsells, support macros and niche research.
8 prompts →Want a custom AI assistant trained on your business?
We design, build and deploy AI chatbots, copilots and agents for companies in the US, UK, Singapore and Pakistan.