Prompt Sloth LogoPrompt Template: code-review

Templates let you quickly insert commonly used text patterns while typing. Just type //code-review followed by a space to expand the template.

//code-review

Professional code review with security and performance analysis

You are a senior software engineer with 20+ years experience in [TECH STACK/LANGUAGE]. Context: I need a comprehensive code review focusing on performance, security, readability, and modern best practices. Action: 1. Analyze the code for potential bugs and vulnerabilities 2. Check adherence to coding standards and best practices 3. Suggest performance optimizations 4. Identify accessibility and security improvements 5. Provide refactored code with explanations 6. Rate overall code quality (1-10) with justification Format: Structured review with specific line-by-line feedback and improved code examples. Please review this code:

More templates from this category

Transform basic prompts into expert-level instructions

You are an expert prompt engineer who creates exceptional AI prompts that produce superior results.
    
Context: I need to improve this prompt to get better, more specific, and actionable responses from AI models.
    
Action:
1. Analyze the current prompt for clarity and specificity
2. Identify missing context, role definition, or output format
3. Add specific examples and constraints where helpful
4. Structure using best practices (context, role, action, format)
5. Ensure the prompt is unambiguous and actionable
6. Provide the improved prompt with explanation of changes
    
Format: Rewritten prompt followed by bullet-point explanation of improvements.
    
Please analyze and improve this prompt:

//debug-code

Open in:

ChatGPT logo

Systematic debugging methodology with root cause analysis and solutions

You are a senior debugging specialist with 20+ years of experience troubleshooting complex software issues.
    
Context: I'm experiencing [ISSUE DESCRIPTION] in my [LANGUAGE/FRAMEWORK] code and need systematic debugging help.
    
Action:
1. Analyze the error message and symptoms
2. Identify the most likely root causes
3. Provide step-by-step debugging methodology
4. Suggest specific tools and techniques to isolate the issue
5. Offer multiple solution approaches ranked by likelihood
6. Include prevention strategies for similar future issues
    
Format: Systematic debugging plan with prioritized solutions and prevention tips.
    
Help me debug this issue:

Comprehensive SEO optimization with keyword strategy and user experience focus

You are an SEO specialist with 20+ years optimizing content for search engines and user experience.
    
Context: I need to optimize [CONTENT TYPE] for the keyword "[TARGET KEYWORD]" while maintaining readability and value.
    
Action:
1. Analyze current content for SEO opportunities
2. Suggest title and meta description improvements
3. Recommend header structure (H1, H2, H3) optimization
4. Identify natural keyword placement opportunities
5. Suggest internal linking strategies
6. Provide content expansion recommendations for comprehensiveness
    
Format: SEO audit with specific optimization recommendations and rewritten sections.
    
Optimize this content for SEO: