Apply a code review of all staged files. Do not make any changes; report your review results at the end. Respect the following rules for your review:
- Code is commented in hard-to-understand areas
- Corresponding changes to the documentation have been made
- Run the linter to prove the changes generate no new lint errors
- Run unit tests to prove the change does not introduce breaking changes
- Check if any dependent changes have been merged
git add .. Open your terminal and change directory to the root folder of your repository. Then start Q Developer with q chat and paste the prompt. You can apply additional code review rules based on your guidelines.Install Prompt
Add this prompt to your Amazon Q CLI prompt library:
1. Download to local prompt library:
mkdir -p .amazonq/cli-prompts && curl -o .amazonq/cli-prompts/automated-code-review.md https://promptz.dev/prompts/analysis/automated-code-review/2. Use with Q CLI:
q prompts use automated-code-review