| name | pr-review |
| description | Strict pull request code review for aem-code (and related AEM repos). Trigger when reviewing a PR from GitHub workflows, when the user asks for a PR review, or when performing regression-safe code review. |
PR / Code Review (Strict, regression-safe)
Use this skill when reviewing pull requests—especially when invoked from GitHub (e.g. GitHub Actions or Claude PR review). Apply strict criteria to avoid regressions and enforce repo conventions.
Context
- Primary context: AGENTS.md at repo root — repository layout, build, components, checklists, key paths.
- This repo:
aem-code (DigitalXn AEM Base). In multi-repo setups, apply this skill only when the PR targets this repo or when explicitly asked to use aem-code standards.
- Claude: Instructions are for Claude; no tool-specific (e.g. Cursor) assumptions.
Strict Review Principles
- Block on regressions — Any change that can break existing behavior, build, or deployment must be called out and must block approval until fixed.
- Checklist compliance — For new components or policy changes, every step in AGENTS.md “Adding a New Component” (and policy/filter/template steps) must be present and correct.
- Conventions over preference — Enforce project conventions (
.cursor/rules/, AGENTS.md, and referenced skills); do not suggest stylistic changes that contradict them.
- Concrete feedback — Cite file paths, line ranges, rule/skill IDs, and AGENTS.md sections. Prefer exact fix suggestions (snippets) over vague comments.
What to Verify (by change type)
New or modified AEM components
Java / backend
Frontend (clientlibs, HTL, dialogs)
Policies, filters, templates
Regression checks
Output format for review comments
- BLOCKING: [Rule/section reference] — Short reason. Suggestion: <concrete fix or snippet>.
- REQUIRED: Same format for must-fix items that are not necessarily regressions.
- SUGGESTION: Optional improvements with rule/section reference.
End the review with a clear Approve / Request changes and a one-line summary of blocking/required items.