| type | skill |
| name | PR Review |
| description | Review pull requests against team standards and best practices |
| skillSlug | pr-review |
| phases | ["R","V"] |
| generated | "2026-03-18T00:00:00.000Z" |
| status | filled |
| scaffoldVersion | 2.0.0 |
PR Review
Review pull requests for the @dotcontext/cli project against established patterns and quality standards.
When to Use
- Reviewing a PR before merge
- Validating changes during the Review (R) or Validation (V) phases
- Checking that a PR meets the project's architectural and testing standards
PR Review Process
1. Understand the Change Scope
Check which areas are affected:
git diff main...HEAD --stat
Map changes to project layers:
src/services/mcp/ -- MCP server and gateway tools
src/services/<domain>/ -- Service layer business logic
src/generators/ -- Scaffold generation
src/workflow/ -- PREVC workflow system
src/utils/ -- Shared utilities
src/index.ts -- CLI command definitions
.context/ -- Documentation and scaffolding content
2. Verify the Commit History
This project uses Conventional Commits:
<type>(<scope>): <description>
Check that:
3. Architecture Review
Service Layer Compliance
MCP Tool Changes
Generator Changes
Workflow Changes
4. Code Quality Checks
5. Testing Verification
npm test
npm run build
6. i18n Completeness
7. Documentation Impact
Common PR Issues
Missing Barrel Exports
New types or handlers added in src/services/mcp/gateway/*.ts but not re-exported through gateway/index.ts and gatewayTools.ts.
Inconsistent Error Handling
MCP handlers that throw instead of returning createErrorResponse(). CLI commands that swallow errors silently.
Untested Edge Cases
- What happens when
.context/ directory does not exist?
- What happens when tree-sitter is not installed?
- What happens with empty or malformed frontmatter?
- What happens with relative vs. absolute paths?
Breaking MCP Compatibility
Renaming or removing an MCP tool action without a migration path. Always add new actions alongside old ones, then deprecate.
PR Description Template
When creating PRs for this project:
## Summary
- What this PR does (1-3 bullet points)
## Changes
- List of key changes by file/area
## Test plan
- [ ] Unit tests pass: `npm test`
- [ ] Build succeeds: `npm run build`
- [ ] Manual verification: `npx tsx src/index.ts <command>`
- [ ] MCP tool tested (if applicable)