← Back to all prompts
💻

Coding & Development

Debug, review, learn, and build code

8 prompts available

Code Debugger & Explainer

Debug code and explain the solution in simple terms

ChatGPT
I have this code that's not working:

[CODE]

Error message: [ERROR]

Please:
1. Identify the bug(s)
2. Provide the corrected code
3. Explain what was wrong and why
4. Suggest best…
debuggingcodingIntermediate

Code Explainer (ELI5)

Explain complex code in simple, understandable terms

ChatGPT
Explain this code like I'm a beginner:

[CODE]

Break it down:
1. What does this code do overall?
2. Explain each major section
3. What are the key functions/methods doing?
4. Are…
learningexplanationBeginner

Code Review Assistant

Get comprehensive code review with best practices

ChatGPT
Please review this code:

[CODE]

Provide feedback on:
1. Code quality and readability
2. Potential bugs or edge cases
3. Performance considerations
4. Security issues (if any)
5.…
code reviewbest practicesAdvanced

Code Generator from Description

Generate working code from natural language description

ChatGPT
Generate [LANGUAGE] code for:

[DESCRIBE WHAT YOU WANT THE CODE TO DO]

Requirements:
- Clean, readable code
- Include comments explaining key parts
- Handle edge cases
- Follow be…
code generationautomationIntermediate

Regex Builder & Explainer

Build and explain regular expressions for any pattern

Claude
Create a regular expression for the following pattern:

[DESCRIBE WHAT YOU NEED TO MATCH]

Examples of what should match:
[EXAMPLES]

Examples of what should NOT match:
[COUNTER-EX…
regextext processingAdvanced

REST API Designer

Design clean RESTful APIs with proper endpoints and schemas

Claude
Design a REST API for: [APPLICATION/FEATURE DESCRIPTION]

Define:
1. Resource names and URL structure
2. HTTP methods and what each does
3. Request/response schemas (JSON)
4. Authe…
apirestAdvanced

Unit Test Generator

Automatically generate comprehensive unit tests for any function

Claude
Write comprehensive unit tests for this function:

[PASTE YOUR FUNCTION]

Language/Framework: [e.g., Jest, pytest, JUnit]

Include tests for:
1. Happy path (expected inputs)
2. Edg…
testingunit testsIntermediate

Code Refactor & Modernize

Refactor legacy code to modern standards and patterns

ChatGPT
Refactor this [LANGUAGE] code to modern standards:

[OLD CODE]

Goals:
1. Update to modern syntax/patterns for [LANGUAGE VERSION]
2. Improve readability and maintainability
3. Remo…
refactoringmodernizeAdvanced