一键导入
review-pr
Review a pull request for a CPP repository. Use when asked to review a PR, check code changes, or provide feedback on a pull request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review a pull request for a CPP repository. Use when asked to review a PR, check code changes, or provide feedback on a pull request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate API contracts (RAML/JSON Schema/OpenAPI) against their implementations. Use when checking for API drift, reviewing schema changes, or verifying contract consistency.
Scaffold new modules, commands, queries, events, or viewstore entities within an existing cpp-context-* service. Use when adding new capabilities to a context service.
Navigate and understand any cpp-context-* service. Use when onboarding to a context service, exploring its modules, or understanding its CQRS structure and integrations.
Audit dependency versions across CPP repositories. Use when checking for version mismatches, outdated libraries, or parent POM alignment across context services.
Bootstrap a new Modern by Default (MbD) Spring Boot service for the Common Platform. Use when creating a new microservice, event processor, or API service.
Debug and understand Azure DevOps pipeline configurations. Use when a pipeline fails, when setting up CI/CD for a new repo, or when tracing variable resolution across templates.
| name | review-pr |
| description | Review a pull request for a CPP repository. Use when asked to review a PR, check code changes, or provide feedback on a pull request. |
Reviews pull requests against CPP coding standards, architectural patterns, and platform conventions.
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
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 applicationcpp-terraform-* with *.tf → Terraform modulecpp-helm-chart → Helm chart changescp-c4-architecture with .c4 files → Architecture model changes{context}.{type}.{name}.json@Autowired fields)@Operation and @ApiResponse on controller methodssensitive = true[auth] and [audit] relationshipsnpm run build && npm run test passesAlways check regardless of repo type:
## 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)