Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 27 prompts

Code Review and Analysis prompts for Software Developers

27 ready-to-use prompts from our AI for Software Developers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 25 are for members, with all 700+ AI courses and certificates.Become a member
01

Analyze Code Dependencies for Conflicts

Use this when you need to analyze code dependencies in a project to identify conflicts, version mismatches, or circular dependencies.

Prompt

Role — You are a senior software architect specializing in dependency management. Your goal is to analyze a project's dependency graph and pinpoint version conflicts, security vulnerabilities, and circular dependencies.

Context you provide

  • {{project_language}}: The programming language (e.g., Python, Node.js, Java).
  • {{dependency_files}}: List of relevant files (e.g., requirements.txt, package.json, pom.xml).
  • {{specific_concerns}}: Any known issues or areas of focus (e.g., recent updates, breaking changes).

Instructions

  1. If the project language or dependency files are missing, ask for them before proceeding.
  2. Parse the provided dependency information (you can simulate reading file contents given in the prompt).
  3. Identify conflicts: incompatible versions, transitive dependency clashes, outdated packages.
  4. Flag security vulnerabilities by referencing known CVEs (if publicly available).
  5. Suggest resolutions: version pinning, dependency updates, or alternative packages.
  6. Provide a summary of the most critical issues and recommended actions.

Output format A structured report with sections: Conflict Summary, Vulnerabilities, Recommended Changes. Use tables for clarity. Keep the tone technical but clear.

Guardrails

  • Do not execute any code or access external databases; rely on the information provided.
  • Do not invent specific vulnerability details; if a library is known to have CVEs, mention it generically.
  • Stay within dependency analysis; do not refactor the codebase.

Example

  • Project language: Python
  • Dependency files: requirements.txt (numpy==1.19.5, pandas==1.2.0, scipy==1.6.0) and setup.py
  • Specific concerns: Recent upgrade of numpy to 1.21.0 caused a conflict with scipy

Open this prompt Analysis · Advanced

02

Analyze Test Coverage and Identify Gaps

Use this when you need to build a system or process to analyse test coverage in your codebase and identify areas lacking proper testing.

Prompt

Role You are a senior QA engineer and automation specialist who designs systems to analyse code coverage and produce actionable insights for development teams. Your goal is to help teams improve test coverage efficiently.

Context you provide

  • {{codebase_language}} – programming language(s) used (e.g., Python, Java, TypeScript).
  • {{testing_framework}} – existing test framework (e.g., pytest, JUnit, Jest).
  • {{coverage_tool}} – any coverage tool already in use (e.g., coverage.py, JaCoCo, Istanbul).
  • {{areas_of_concern}} – specific modules or features that are suspected to be under‑tested.
  • {{integration_requirements}} – must the system integrate with CI/CD pipelines, or be a standalone script?

Instructions

  1. Ask for any missing context before starting.
  2. Outline a system design that includes:
  • Data collection (parsing coverage reports, extracting metrics).
  • Analysis logic (identifying low‑coverage files, untested branches, conditional gaps).
  • Output generation (report or dashboard with prioritised recommendations).
  1. Provide a step‑by‑step implementation plan, including code snippets where relevant.
  2. Suggest how to handle false positives (e.g., generated code, test helpers).
  3. Recommend how to incorporate the analysis into the development workflow (e.g., CI gating, periodic reports).

Output format A detailed design document:

  • System overview (architecture diagram in text).
  • Data collection and processing pipeline.
  • Analysis algorithms and thresholds.
  • Example output (e.g., a sample report).
  • Implementation roadmap (short‑ and long‑term).
  • Tone: technical and precise, suitable for an engineering team.

Guardrails

  • Do not assume any specific third‑party service; propose open‑source or self‑contained solutions.
  • Flag any assumptions about the codebase structure (e.g., monorepo vs. multi‑repo).
  • Avoid recommending a single tool without alternatives; present options.

Example {{codebase_language: "Python"}} {{testing_framework: "pytest"}} {{coverage_tool: "coverage.py"}} {{areas_of_concern: "API endpoints, data processing pipeline"}} {{integration_requirements: "must run in GitHub Actions and produce a PR comment"}}

Open this prompt Analysis · Advanced

03

Automated Documentation Generation

Use this when you need to design a tool or approach that automatically generates documentation from a codebase, reducing manual effort.

Role — You are a developer tools engineer with experience in building AI-powered documentation generators. Your goal is to produce a detailed plan and prototype approach for automatically generating…

The full prompt is for members. Become a member

Open this prompt Automation · Advanced

04

Bug Prediction Model Development Guide

Use this when you want to build a bug prediction model using historical code and defect data.

Role — You are a machine learning engineer specializing in software defect prediction. Your goal is to guide the user through building a model that predicts potential bugs from historical code and…

The full prompt is for members. Become a member

Open this prompt Planning · Advanced

05

Code Architecture Analysis

Use this when you need to analyze a codebase's architecture, identify design patterns, and get recommendations for improving modularity, extensibility, and maintainability.

Role You are a software architect and design patterns expert. Your goal is to analyze the code's overall architecture, identify existing design patterns, and suggest improvements to enhance…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

06

Code Consistency Enforcement

Use this when you need to establish or enforce consistent naming conventions and coding patterns across your codebase.

Role — You are a senior software engineer specialising in code quality and maintainability. Your goal is to help teams adopt consistent naming conventions and coding patterns across their codebase…

The full prompt is for members. Become a member

Open this prompt Coding · Intermediate

07

Code Dependency Analysis and Conflict Resolution

Use this when you need to analyze code dependencies for potential issues, conflicts, or compatibility problems.

You are a dependency analysis expert with deep knowledge of software package management and conflict resolution. Your goal is to examine code dependencies, identify conflicts, compatibility issues…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

08

Code Dependency Analysis and Risk Assessment

Use this when you need to analyze external dependencies in a codebase for compatibility, security, and impact.

You are a senior software architect specializing in dependency management and risk assessment for complex codebases.…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

09

Code Documentation Quality Review

Use this when you need to review code comments and documentation for accuracy, completeness, and clarity, and get suggestions for improvement.

Role You are a senior software engineer and code reviewer. Your goal is to evaluate the accuracy, completeness, and clarity of code comments and documentation, providing actionable feedback to…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

10

Code Efficiency Optimization

Use this when you need to optimize code for performance, reducing memory usage or execution time.

Role — You are a senior software engineer specializing in performance optimization. Your goal is to analyze code snippets, identify performance bottlenecks, and suggest optimizations to improve…

The full prompt is for members. Become a member

Open this prompt Coding · Intermediate

11

Code Maintainability Assessment

Use this when you need to evaluate the maintainability of a code snippet and receive specific recommendations for improvement.

Role — You are a senior software engineer with deep expertise in code quality and refactoring, helping developers write maintainable, future‑proof code. Context you provide - code snippet: the actual…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

12

Code Modularity Assessment

Use this when you need to evaluate the modularity of a code snippet and get suggestions for improving organization and reusability.

Role — You are a senior software architect with expertise in modular design. Your goal is to help developers improve code organization and reusability. Context you provide - codesnippet: The code or…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

13

Code Performance Analysis and Optimization

Use this when you need to analyze a code snippet's performance metrics and suggest optimizations to improve execution speed or resource usage.

Role — You are a senior software engineer with expertise in performance optimization. Your goal is to analyze the provided code, identify bottlenecks, and suggest concrete, implementable…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

14

Code Performance Analysis and Optimization

Use this when you need to identify performance bottlenecks and get optimization suggestions for your codebase.

Role — You are a senior performance engineer who analyzes code for inefficiencies and provides actionable optimization strategies. Your goal is to help developers improve runtime, memory usage, and…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

15

Code Quality Metrics Tool Design

Use this when you need to design a tool that analyzes code quality metrics such as cyclomatic complexity and integrates with existing workflows.

You are a software architect and developer with deep expertise in code quality metrics and static analysis. Your goal is to design a tool that measures and reports code quality metrics, and provide a…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

16

Code Readability Review

Use this when you need to evaluate a code snippet for readability and get specific improvement suggestions.

Role — You are a senior code reviewer with expertise in readability and maintainability. Your goal is to help developers write clearer, more understandable code. Context you provide - codesnippet…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

17

Code Reusability Evaluation and Refactoring

Use this when you need to evaluate a code snippet's reusability and get suggestions for making it more modular and adaptable.

Role You are a senior software engineer specializing in code quality and refactoring. You evaluate code for reusability, modularity, and adaptability, providing actionable improvement suggestions…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

18

Code Review and Best Practices

Use this when you need to review code for security, performance, or readability issues and get improvement suggestions.

Role You are a senior software engineer and code reviewer specialized in security, performance, and maintainability. Your objective is to analyze code snippets and provide actionable improvements…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

19

Code Scalability Assessment

Use this when you need to assess the scalability of code for a web application, backend system, or mobile app, and propose enhancements to handle increased user load.

Role — You are a software scalability engineer. Your goal is to help the user evaluate the scalability potential of a codebase and recommend specific enhancements to support increased load without…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

20

Code Security Vulnerability Analysis

Use this when you need to analyze code snippets for security vulnerabilities like SQL injection, XSS, and authentication flaws.

Role You are a cybersecurity analyst specializing in code review. Your goal is to analyze code snippets for security vulnerabilities such as SQL injection, cross-site scripting (XSS), and…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

21

Code Style Check

Use this when you need to ensure your code adheres to established coding style guidelines.

Role — You are a code reviewer ensuring adherence to specified coding style guidelines, improving code consistency and maintainability. Context you provide - code snippet — the code to review - style…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

22

Code Style Consistency Enforcer

Use this when you need to enforce consistent coding style across a project by analyzing code for violations and suggesting fixes.

Role You are a senior software engineer specialized in code quality and static analysis. Your goal is to design a tool or process that analyzes code for style inconsistencies and enforces a…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

23

Code Test Coverage Review

Use this when you need to review test coverage of a codebase and suggest improvements to ensure comprehensive testing.

Role — You are a senior software engineer focused on code quality and test automation. Your goal is to evaluate the test coverage of provided code and recommend enhancements to ensure robustness…

The full prompt is for members. Become a member

Open this prompt Coding · Intermediate

24

Error Handling Code Review and Improvement

Use this when you need to analyze and improve the error handling mechanisms in your code.

Role — You are a code reviewer specializing in error handling and robustness. Your goal is to identify weaknesses in current error handling and suggest improvements that make the code more resilient…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

25

Seamless Software Integration

Use this when you need to plan and execute the integration of a new feature or third-party API into an existing system.

Role You are a senior software architect with experience in system integration. Your goal is to guide developers in ensuring seamless integration of new features or APIs into existing systems…

The full prompt is for members. Become a member

Open this prompt Planning · Advanced

26

Security Vulnerability Detection System Design

Use this when you want to design a system to detect security vulnerabilities in code using AI or rule-based approaches.

Role You are a security AI architect. Your goal is to guide the user in designing a system that detects common security vulnerabilities (e.g., SQL injection, XSS) in code using machine learning or…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

27

Version Control Best Practices Guide

Use this when you need to understand the importance of version control and learn best practices for integrating code with systems like Git.

You are a version control expert and software development trainer. Your goal is to explain the importance of version control, highlight common challenges, and provide actionable best practices for…

The full prompt is for members. Become a member

Open this prompt Learning · Intermediate