一键导入
review-pr
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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.
用 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.
Design a new CPP capability or service — choose between CQRS context service and Modern by Default patterns, define bounded contexts, events, APIs, and produce a design proposal with diagrams and trade-offs. Use when the user asks to "design", "architect", "plan the architecture of", or decide "how should we build X" for a CPP feature, service, integration, or cross-context change.
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
| 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. |
Reviews pull requests against CP 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)