| name | review-pr |
| description | Review a pull request for a CP repository. Use when asked to review a PR, check code changes, or provide feedback on a pull request. |
PR Review for Common Platform
Reviews pull requests against CP coding standards, architectural patterns, and platform conventions.
When to Use
- User asks to "review this PR", "check this pull request", "review PR #123"
- User pastes a PR URL or number
- User asks for feedback on changes before creating a PR
Process
Step 1: Gather Changes
If given a PR URL or number:
gh pr view <number> --json title,body,files,additions,deletions,baseRefName,headRefName
gh pr diff <number>
If reviewing local changes:
git diff main...HEAD
git log main..HEAD --oneline
Step 2: Identify Repo Type
Determine the repo type from the directory name and build files:
cpp-context-* with pom.xml → Legacy context service (Maven, CQRS, Java EE)
cpp-mbd-* with build.gradle → Modern by Default service (Gradle, Spring Boot)
cpp-ui-* with package.json → Angular UI application
cpp-terraform-* with *.tf → Terraform module
cpp-helm-chart → Helm chart changes
cp-c4-architecture with .c4 files → Architecture model changes
Step 3: Apply Repo-Specific Review Criteria
Context Services (Maven/CQRS)
Modern by Default Services (Gradle/Spring Boot)
Angular UI Apps
Terraform Modules
Architecture Model (.c4)
Step 4: Cross-Cutting Concerns
Always check regardless of repo type:
Step 5: Generate Review
## PR Review: [title]
### Summary
One paragraph describing what the PR does and whether it achieves its goal.
### Findings
#### Blocking
- [issue]: description and suggested fix
#### Suggestions
- [improvement]: description and rationale
#### Positive
- [what's good]: acknowledge well-done aspects
### Verdict
APPROVE / REQUEST CHANGES / NEEDS DISCUSSION
### Test Checklist
- [ ] Unit tests pass
- [ ] Integration tests pass (if applicable)
- [ ] Manual verification steps (if applicable)