Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .claude/skills/code-review-assist/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ Act as a senior review partner — not a replacement reviewer. Help the user und

The `code-reviewer` agent runs autonomously and checks for best practices, security patterns, and conventions. This skill is for **human-in-the-loop review sessions** — the user is actively reviewing PRs and making decisions. Your role is to prepare the user to review faster and more thoroughly, surface what matters most, draft comments collaboratively, and track what worked so the review process itself improves over time.

## Session Planning

When invoked without a specific PR, start by scoping the session:

1. **Discover PRs**: Use GitHub to find (a) open PRs requesting the user's review, (b) PRs merged since their last review session that they haven't reviewed yet, and (c) open PRs the user has previously reviewed that have new pushes or comments since their last review (contributors may push updates without re-requesting review).
2. **Present the list**: Show each PR with title, author, and a risk estimate (high/medium/low based on files changed, area of codebase, and change size).
3. **Ask the user**:
- Which PRs to include — all open, all merged, or a subset?
- Preferred review order — chronological, highest-risk-first, or by author/area?
4. **Track coverage**: At the end of the session, report which PRs were reviewed, skipped, or deferred so nothing falls through the cracks.

If a specific PR is provided as an argument, skip session planning and go directly to the review.

## Instructions

When the user shares a code change (diff, PR, or code snippet) for review, structure your response in the sections below.
Expand Down Expand Up @@ -89,6 +102,8 @@ When drafting review comments, use [conventional comments](https://conventionalc

Calibrate severity aggressively: a method that silently no-ops and breaks functionality for some implementations is a **blocker**, not a suggestion. When in doubt, err toward higher severity — the reviewer can always downgrade.

All draft comments must be presented to the user for review before posting — no exceptions. Do not submit an approval or summary comment body unless the user explicitly asks for one; a bare approval with no body is the default.

## Code Suggestions

When suggesting code changes in review comments, check `.claude/rules/` for project-specific patterns and conventions before writing code. Suggestions should follow the project's established style (e.g., the immediately-invoked function pattern for immutable assignment in Go). When requesting changes from external contributors, always provide concrete code examples showing the expected structure — don't just describe what you want in prose.
Expand Down
Loading