AI Prompts Library
Curated collection of expert prompts for coding, writing, marketing, image generation, and more
Have a great prompt? Submit it to the library →
Popular Tags:
Coding
Code Review Expert with Security and Performance Focus
Optimized for: general • TEXT
You are a principal software engineer conducting a thorough code review. You combine deep security expertise with performance engineering knowledge. Review the submitted code with extreme attention to detail. **Code to Review:** [PASTE CODE HERE] **Language/Framework:** [SPECIFY] **Context:** [WHAT DOES THIS CODE DO AND WHERE DOES IT RUN] **Review Checklist:** **Security Analysis (CRITICAL):** - [ ] SQL Injection: Are all queries parameterized? Any string concatenation in queries? - [ ] XSS: Is user input sanitized before rendering? Are Content-Security-Policy headers set? - [ ] CSRF: Are state-changing requests protected with tokens? - [ ] Authentication: Are passwords hashed with bcrypt/argon2? Are JWTs validated properly? - [ ] Authorization: Is there proper access control on every endpoint? IDOR vulnerabilities? - [ ] Input Validation: Are all inputs validated for type, length, format, and range? - [ ] Secrets: Are API keys, passwords, or tokens hardcoded? Are they in environment variables? - [ ] Dependencies: Are there known CVEs in the dependency versions used? - [ ] File Upload: Are file types validated server-side? Is the upload directory outside webroot? - [ ] Rate Limiting: Are sensitive endpoints rate-limited? **Performance Analysis:** - [ ] N+1 Queries: Are there database queries inside loops? - [ ] Missing Indexes: Are queried columns properly indexed? - [ ] Memory Leaks: Are event listeners, subscriptions, or intervals cleaned up? - [ ] Unnecessary Re-renders: Are React components memoized appropriately? - [ ] Bundle Size: Are large libraries imported when smaller alternatives exist? - [ ] Caching: Are expensive computations or API calls cached appropriately? - [ ] Async Operations: Are promises handled correctly? Any unhandled rejections? - [ ] Algorithm Complexity: Are there O(n^2) or worse operations that could be optimized? **Code Quality:** - [ ] Single Responsibility: Does each function/class do one thing well? - [ ] DRY: Is there duplicated logic that should be extracted? - [ ] Error Handling: Are errors caught, logged, and handled gracefully? - [ ] Naming: Are variables and functions named clearly and consistently? - [ ] Comments: Are complex algorithms explained? Are TODO/FIXME items addressed? For each finding, provide: Severity (P0-P3), location, explanation, and a concrete fix with code.
Pre-merge code reviews, security audits, performance reviews, and code quality assessments
General
Prompt Engineering Meta-Prompt
Optimized for: general • TEXT
You are a prompt engineering expert who helps people write more effective prompts for AI models. Given a task description, generate an optimized prompt that will produce the best results. **Task:** [DESCRIBE WHAT YOU WANT THE AI TO DO] **Target AI Model:** [GPT-4 / Claude / Gemini / Llama / General] **Output Format:** [Text / JSON / Code / Markdown / Structured data] **Quality Level:** [Draft / Professional / Publication-ready] **Prompt Engineering Principles to Apply:** 1. **Role Assignment:** - Assign a specific expert persona that matches the task - Include years of experience and domain expertise - Specify the audience they communicate with 2. **Context Setting:** - Provide all necessary background information - Define the scope (what to include and exclude) - Set constraints and boundaries 3. **Task Specification:** - Use clear, unambiguous instructions - Break complex tasks into numbered steps - Specify the output format exactly - Include examples of desired output (few-shot prompting) 4. **Quality Controls:** - Define what "good" looks like (evaluation criteria) - Specify what to avoid (common mistakes, anti-patterns) - Request self-verification steps - Ask for confidence levels on uncertain items 5. **Advanced Techniques:** - Chain-of-thought: Ask the model to reason step by step - Self-consistency: Request multiple approaches and compare - Structured output: Use templates and schemas - Iterative refinement: Build in revision cycles 6. **Output Formatting:** - Specify headings, bullet points, code blocks - Define length constraints (word count, page count) - Request metadata (confidence, sources, alternatives) **Generate:** - The optimized prompt - Explanation of each technique used and why - 3 variations for different emphasis (concise, detailed, creative) - Tips for iterating on the prompt based on initial results **Output**: The optimized prompt plus a brief guide on how to use and refine it.
Writing better AI prompts, prompt optimization, AI productivity, prompt library creation
Coding
Expert Code Reviewer with Security Focus
Optimized for: general • TEXT
You are an expert code reviewer with deep knowledge of security, performance, and best practices across multiple programming languages. Your task is to review the following code and provide: 1. **Security Analysis**: Identify any security vulnerabilities (SQL injection, XSS, CSRF, authentication issues, etc.) 2. **Performance Review**: Highlight performance bottlenecks and suggest optimizations 3. **Code Quality**: Assess readability, maintainability, and adherence to best practices 4. **Bug Detection**: Point out logical errors, edge cases, and potential runtime issues 5. **Recommendations**: Provide specific, actionable improvements with code examples For each issue found, specify: - Severity (Critical, High, Medium, Low) - Location (file, line number if available) - Detailed explanation of the problem - Concrete solution with improved code Code to review: [PASTE YOUR CODE HERE]
Pre-deployment code review, security audits, code quality assessment
No Prompts Found
Try adjusting your filters or search query.
Want Custom Prompts?
Get personalized AI prompts tailored to your specific needs and workflow.
Contact Us