pr-review — слэш-команда для Claude Code: ревью PR
Команда проверяет pull request с шести сторон: от продукта и качества кода до безопасности, DevOps и интерфейса. Она также требует сразу вносить найденные улучшения.
npx claude-code-templates@latest --command git-workflow/pr-reviewЧто делает pr-review
pr-review принимает ссылку или номер pull request и последовательно проводит проверку с позиций продакт-менеджера, разработчика, QA-инженера, специалиста по безопасности, DevOps-инженера и UI/UX-дизайнера. Команда рассматривает ценность для продукта, качество и производительность кода, тесты, уязвимости, CI/CD, инфраструктуру, мониторинг, доступность и пользовательский поток.
В каждом разделе команда предлагает оценить изменения и устранить проблемы сразу: добавить тесты, исправить код или скорректировать интерфейс. В инструкции также сказано обновить ревью на GitHub. Это значит, что команда рассчитана на внесение изменений, а не только на список замечаний; запускайте её с учётом этого требования.
Установите команду через npx claude-code-templates@latest --command git-workflow/pr-review; файл команды размещается по пути .claude/commands/pr-review.md.
Какие задачи решает
- проверить pull request с разных инженерных и продуктовых позиций
- найти пробелы в тестах и возможные регрессии
- оценить риски безопасности и обработки данных
- проверить CI/CD, конфигурацию и мониторинг
- выявить проблемы доступности и пользовательского потока
Примеры запросов агенту
- Проведи ревью pull request по ссылке из
$ARGUMENTSи внеси необходимые исправления. - Проверь pull request по номеру из
$ARGUMENTS, добавь недостающие тесты и обнови ревью на GitHub.
Как установить pr-review
1Через claude-code-templates
npx claude-code-templates@latest --command git-workflow/pr-review2Вручную: положить файлы
.claude/commands/pr-review.mdВызов — /pr-review. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/pr-review.mdВызов — /prompts:pr-review. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/pr-review.prompt.mdВручную: положить файлы
.gemini/commands/pr-review.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о pr-review
Как установить pr-review в Claude Code?
Выполните npx claude-code-templates@latest --command git-workflow/pr-review. Файл команды будет находиться в .claude/commands/pr-review.md.
Что делает pr-review?
Команда проверяет pull request с шести позиций, включая качество кода, тестирование, безопасность и интерфейс. Она требует сразу устранять найденные проблемы и обновить ревью на GitHub.
Какие данные передать pr-review?
Передайте ссылку или номер pull request через $ARGUMENTS.
Исходный текст
pr-review.md · MIT
--- description: "Review a pull request from product, developer, quality, security, DevOps and UI/UX perspectives" --- # PR Review **PR Link/Number**: $ARGUMENTS > **Instructions**: Execute each task in the order given to conduct a thorough code review. Update GitHub with this review. > **Important**: The future is now—any improvements or “future” recommendations must be addressed **immediately**. --- ## Task 1: Product Manager Review **Objective**: Assess from a product management perspective, focusing on: - **Business Value**: Does this PR clearly advance our core product goals and deliver immediate ROI? - **User Experience**: Is the change intuitive and delightful for users right now? If not, make fixes immediately. - **Strategic Alignment**: Does the PR align with current (and long-term, i.e., now) strategic objectives? **Action**: Provide clear directives on how to ensure maximum user and business impact. All “future” suggestions must be implemented now. --- ## Task 2: Developer Review **Objective**: Evaluate the code thoroughly from a senior lead engineer perspective: 1. **Code Quality & Maintainability**: Is the code structured for readability and easy maintenance? If not, refactor now. 2. **Performance & Scalability**: Will these changes operate efficiently at scale? If not, optimize immediately. 3. **Best Practices & Standards**: Note any deviation from coding standards and correct it now. **Action**: Leave a concise yet complete review comment, ensuring all improvements happen immediately—no deferrals. --- ## Task 3: Quality Engineer Review **Objective**: Verify the overall quality, testing strategy, and reliability of the solution: 1. **Test Coverage**: Are there sufficient tests (unit, integration, E2E)? If not, add them now. 2. **Potential Bugs & Edge Cases**: Have all edge cases been considered? If not, address them immediately. 3. **Regression Risk**: Confirm changes don’t undermine existing functionality. If risk is identified, mitigate now with additional checks or tests. **Action**: Provide a detailed QA assessment, insisting any “future” improvements be completed right away. --- ## Task 4: Security Engineer Review **Objective**: Ensure robust security practices and compliance: 1. **Vulnerabilities**: Could these changes introduce security vulnerabilities? If so, fix them right away. 2. **Data Handling**: Are we properly protecting sensitive data (e.g., encryption, sanitization)? Address all gaps now. 3. **Compliance**: Confirm alignment with any relevant security or privacy standards (e.g., OWASP, GDPR, HIPAA). Implement missing requirements immediately. **Action**: Provide a security assessment. Any recommended fixes typically scheduled for “later” must be addressed now. --- ## Task 5: DevOps Review **Objective**: Evaluate build, deployment, and monitoring considerations: 1. **CI/CD Pipeline**: Validate that the PR integrates smoothly with existing build/test/deploy processes. If not, fix it now. 2. **Infrastructure & Configuration**: Check whether the code changes require immediate updates to infrastructure or configs. 3. **Monitoring & Alerts**: Identify new monitoring needs or potential improvements and implement them immediately. **Action**: Provide a DevOps-centric review, insisting that any improvements or tweaks be executed now. --- ## Task 6: UI/UX Designer Review **Objective**: Ensure optimal user-centric design: 1. **Visual Consistency**: Confirm adherence to brand/design guidelines. If not, adjust now. 2. **Usability & Accessibility**: Validate that the UI is intuitive and compliant with accessibility standards. Make any corrections immediately. 3. **Interaction Flow**: Assess whether the user flow is seamless. If friction exists, refine now. **Action**: Provide a detailed UI/UX evaluation. Any enhancements typically set for “later” must be done immediately. --- **End of PR Review**
© davila7 · MIT · davila7/claude-code-templates