/alexop-skills:review-coderabbitfrom alexop-skills
Review CodeRabbit comments on current PR and implement valid fixes
Ships in alexop-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
I have gathered information about the current PR. Here are the results:
<current_branch>
!git rev-parse --abbrev-ref HEAD
</current_branch>
<pr_info>
!gh pr view --json number,title,url 2>/dev/null || echo "No PR found for current branch"
</pr_info>
<coderabbit_review>
!gh pr view --json reviews --jq '.reviews[] | select(.author.login == "coderabbitai") | .body' 2>/dev/null | head -500
</coderabbit_review>
<coderabbit_comments>
!gh api repos/{owner}/{repo}/pulls/$(gh pr view --json number -q .number)/comments --jq '.[] | select(.user.login == "coderabbitai") | {id: .id, path: .path, line: .line, body: (.body | split("\n")[0:3] | join("\n"))}' 2>/dev/null
</coderabbit_comments>
For each substantive comment, spawn a subagent to analyze it in isolation:
Use Task tool with subagent_type="general-purpose" for each comment:
- Read the actual file and relevant context
- Check if the suggestion aligns with project conventions (CLAUDE.md)
- Determine verdict: VALID, INVALID, or PARTIALLY VALID
- If partially valid, note what's correct and what's not
Launch multiple agents in parallel for efficiency.
Create a summary table:
| Comment | File | Verdict | Recommendation |
|---|---|---|---|
| ... | ... | ... | ... |
Categorize into:
Before implementing, ask the user:
"I found X valid fixes to implement. Would you like me to proceed?"
pnpm type-check && pnpm lint
After implementing fixes, reply to each CodeRabbit comment to resolve the conversation:
For FIXED comments - Reply indicating the fix was applied:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Fixed: [brief description of what was done]"
For INVALID comments - Reply explaining why it was already correct or not applicable:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Already implemented: [explanation] / Not applicable: [reason]"
For SKIPPED comments - Reply explaining why it was intentionally skipped:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Skipped: [reason - e.g., inconsistent with codebase patterns, over-defensive, etc.]"
Use the comment IDs from the <coderabbit_comments> section above.
Key rules from CLAUDE.md to check against:
any, enum, or type assertions (as T)tryCatch() from @/lib/tryCatch (not native try/catch)RouteNames from @/router (not string literals)src/components/ui/ must NOT be modifiedWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (alexanderop/skills) — no native marketplace selected
npx claudepluginhub p/alexanderop-alexop-skills17 skills in this plugin
/screenshotting-appsGenerates annotated screenshot documentation for web apps and websites — local dev servers or live sites. Use when asked to "screenshot the app", "document the app", "visual docs", "screenshot documentation", "show me the app", "screenshot <url>", or "document this website".
/blog-generatorGenerates a self-contained, deeply-technical "deep dive" blog post as a single offline-capable HTML file — AstroPaper aesthetic, light/dark toggle, Mermaid diagrams (CDN), Shiki syntax highlighting (CDN ESM). Use when the user types "$blog" or "$blog-post", asks to "write a blog post", "deep dive blog", "generate a blog post about how X works", "explain X in a blog post so I can rebuild it", "in-depth post about", or wants a long-form publishable HTML article reverse-engineering a codebase, library, or architecture (not a quick summary, not an interactive walkthrough)./c4-architecture