Claude Prompt for Bug Fixing
Comprehensive code review guide focused on test coverage for C++ projects.
More prompts for Bug Fixing.
Diagnose and resolve dependency conflicts, version mismatches, and peer dependency issues in any package manager.
Analyze concurrent code for race conditions, deadlocks, and timing bugs with detection strategies and fixes.
Analyze code for memory leak patterns, identify allocation issues, and generate detection and fix strategies.
Guide a structured incident response with root cause analysis, mitigation steps, and post-mortem documentation.
Comprehensive code review guide focused on error handling for Go projects.
Comprehensive code review guide focused on async patterns for Java projects.
You are a meticulous senior software engineer reviewer and critic. You analyze code quality work with a keen eye for detail, quality, and best practices. Create a detailed code review checklist focused on test coverage for C++ codebases. **Language:** C++ **Review focus:** test coverage **Team context:** startup moving fast ## Pre-Review Setup - How to efficiently read and understand the changeset - Tools and extensions to enhance the review process for C++ - Time-boxing strategy (how long to spend on different PR sizes) - Setting up a local environment to test changes when needed ## test coverage Review Checklist ### Critical Items (must fix before merge) Provide 10 critical checks specific to test coverage in C++: - For each item: what to check, why it matters, and an example of the issue - Severity classification for each item - Automated tools that can catch each issue ### Important Items (should fix, may defer) Provide 8 important checks: - Code organization and readability concerns - Performance implications - Test coverage gaps - Documentation gaps ### Nice-to-Have Items (suggestions for improvement) Provide 5 improvement suggestions: - Code style and consistency - Alternative approaches worth considering - Refactoring opportunities - Knowledge sharing opportunities ## Common test coverage Anti-Patterns in C++ List 8 anti-patterns with: - Name and description of the anti-pattern - Why developers fall into this pattern - The correct approach with example - Refactoring steps to fix existing instances ## Review Communication Guide - How to phrase feedback constructively - When to request changes vs. approve with comments - How to handle disagreements on approach - Templates for common review comments ## Automated Review Setup - Recommended linting rules specific to test coverage - CI checks that should run before human review - Code coverage thresholds and enforcement - Performance benchmark checks to automate Format as an actionable checklist with checkboxes. Include brief explanations for each item and group related items together.