Prompt Templates

8
Refine with AI
⚛️
React ComponentFrontend

Create a reusable React component with TypeScript, Tailwind styling, and clear props. Include a brief usage example.

🔌
API EndpointBackend

Build a REST API endpoint with input validation, proper error handling, and clear response formats. Include examples for success and error cases.

🐞
Bug FixDebugging

Debug and fix the following issue. Explain the root cause and the fix: [describe the bug and paste the code]

🔧
Refactor CodeDebugging

Refactor this code to improve readability, performance, and maintainability. Keep behavior identical and explain the changes: [paste code]

🧪
Unit TestsTesting

Write comprehensive unit tests for the following code, covering edge cases and error paths: [paste code]

🗄️
SQL QueryDatabase

Write an optimized SQL query to [describe what you need]. Suggest indexes if helpful and explain the query.

🔍
Code ReviewDebugging

Review this code for bugs, security issues, performance problems, and best practices. Give specific, actionable feedback: [paste code]

📚
DocumentationDocumentation

Add clear documentation and inline comments to this code. Generate a concise README section covering usage and parameters: [paste code]

Drag the handle to reorder your favorites