Posts or updates the PR summary comment. Detects context (GitHub sticky comment, GitHub new comment, or local file) and routes output accordingly. Use after all findings are classified and inline comments are posted.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
Invoke this skill ONCE per review, AFTER all inline comments are posted. The summary MUST be scannable and brief because engineers read summaries first.
| Context | How to Detect | Action |
|---|---|---|
| GitHub Actions | mcp__github_comment__update_claude_comment available | Update sticky comment |
| Local review | Tool not available OR explicit local mode | Write to review-summary.md |
FORBIDDEN: Do not use gh pr comment to create summary comments.
If PR title, description, or test plan is genuinely deficient, add as ❓ finding in the Code Review Details collapsible section.
Genuinely deficient means:
Adequate (DO NOT flag):
- ❓ **QUESTION**: PR title could be more specific
- Suggested: "Fix null check in UserService.getProfile"
**Overall Assessment:** APPROVE / REQUEST CHANGES
[1-2 neutral sentence describing what was reviewed]
<details>
<summary>Code Review Details</summary>
[Findings grouped by severity - see ordering below]
[Optional PR Metadata Assessment - only for truly deficient metadata]
</details>
Ordering: Group findings by severity in this exact order:
Omit empty categories entirely.
Format per finding:
- [emoji] **[SEVERITY]**: [One-line description]
- `filename.ts:42`
Example:
<details>
<summary>Code Review Details</summary>
- ❌ **CRITICAL**: SQL injection in user query builder
- `src/auth/queries.ts:87`
- ⚠️ **IMPORTANT**: Missing null check on optional config
- `src/config/loader.ts:23`
</details>
GitHub Actions:
Use mcp__github_comment__update_claude_comment to update the sticky comment with the summary.
Local:
Write summary to review-summary.md in working directory.