✦ serch for
Choose language: EnglishEN
Submit a tool

💡 Coding prompts

Tested, copy-ready prompts for the most popular AI tools. Replace the variables in [ ] with your own details.

7 prompts

Coding • Works with: Claude Code / Copilot

Write unit tests

Write unit tests with [Jest/pytest] for the function below. Cover normal cases, edge cases and expected errors, and name each test after what it checks.

[code]
Replace what’s in [ ] with your own
Coding • Works with: Any AI assistant

SQL query from a description

I have these tables:
[tables and columns]

Write an SQL query to [what you want]. Briefly explain each part and suggest an index if it would improve performance.
Replace what’s in [ ] with your own
Coding • Works with: Cursor / Claude Code

Refactor code

Refactor the code below to be clearer and easier to maintain without changing its behaviour: split long functions, improve names and remove duplication. Show the new code, then a list of changes.

[code]
Replace what’s in [ ] with your own
Coding • Works with: Any AI assistant

Regular expression (Regex)

Write a [JavaScript] regular expression that matches [what you need]. Give 3 examples that match and 3 that don’t, and explain each part of the pattern.
Replace what’s in [ ] with your own
Coding • Works with: Claude Code / Cursor

Code review

Review the following code as an expert software engineer. Identify: 1) logic bugs 2) security vulnerabilities 3) performance issues 4) readability improvements. Rank them by severity and suggest a fix for each.

```[language]
[code]
```
Replace what’s in [ ] with your own
Coding • Works with: v0 / Bolt

Build a landing page

Build a responsive landing page for [product name], a [short description]. Include: hero with CTA, features grid (6 items), pricing table (3 tiers), testimonials, FAQ, footer. Use Tailwind, modern clean style.
Replace what’s in [ ] with your own
Coding • Works with: أي مساعد ذكي

Explain a coding error

I am getting this error in [language/framework]:
[error message]

Here is the related code:
[code]

Explain the cause simply, then give me the fix step by step.
Replace what’s in [ ] with your own