Skip to main content
Prompt Library

Coding Prompts

Generate SQL, debug code, write tests, and review pull requests.

10 prompts

beginnerAny model
Debug This Code

Diagnose bugs in any code snippet with clear explanations of the root cause and a corrected version.

debuggingcode
beginnerAny model
Explain Code Step by Step

Get a clear, plain-English explanation of any code snippet, function, or algorithm.

code explanationlearning
intermediateAny model
Refactor for Readability

Improve code readability through better naming, structure, and clarity without changing behavior.

refactoringclean code
intermediateAny model
Write Unit Tests

Generate comprehensive unit tests for any function or module, including edge cases.

testingunit tests
beginnerAny model
Generate SQL Query

Write SQL queries from plain English descriptions of what data you need.

SQLdatabase
intermediateAny model
Code Review

Get a thorough code review covering bugs, security, performance, and best practices.

code reviewsecurity
intermediateAny model
Generate Regular Expression

Write a regex pattern for any text matching task, with explanation and test cases.

regextext processing
intermediateAny model
Convert Code Between Languages

Translate code from one programming language to another, using idiomatic patterns for the target.

code conversionlanguage migration
intermediateAny model
Generate REST API Endpoint

Scaffold a complete REST API endpoint with validation, error handling, and documentation.

APIREST
beginnerAny model
TypeScript Types from JSON

Generate TypeScript interfaces or types from any JSON object or API response.

TypeScripttypes