From samocode
Fetches, analyzes, and triages GitHub pull request review comments. Determines validity and proposes fixes, documenting results in a session report.
How this skill is triggered — by the user, by Claude, or both
Slash command
/samocode:prcommentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Investigate pull request review comments and produce a session report. Do not fix anything until the user explicitly chooses which comments to address.
Investigate pull request review comments and produce a session report. Do not fix anything until the user explicitly chooses which comments to address.
SESSION_PATH.owner/repo from git remote get-url origin; if that is unclear, ask the user.If the user provides a PR URL, parse owner, repo, and PR number from it.
If the user provides only a PR number, fetch inline review comments with:
gh api 'repos/[OWNER]/[REPO]/pulls/[PR_NUMBER]/comments'
If the request concerns top-level PR conversation comments too, also fetch:
gh api 'repos/[OWNER]/[REPO]/issues/[PR_NUMBER]/comments'
If GitHub CLI is unavailable or unauthenticated, report the blocker and ask the user to paste the comments.
Capture timestamps:
date '+%m-%d-%H:%M' for the report filename.date '+%H:%M' for the session flow log.Parse each comment:
Investigate each issue:
Create [SESSION_PATH]/[MM-DD-HH:mm]-prcomments.md:
# PR Comments Analysis
Date: [timestamp]
## Comment 1: [brief title]
**Reviewer says:** [quote or summary]
**Location:** [file:line or top-level]
**Analysis:**
[Is this valid? Why or why not?]
**Verdict:** [Valid/Invalid/Partial]
**Suggested fix:**
[If valid or partial, how to address it]
---
## Summary
| Issue | Severity | Validity | Code Volume | Risk |
| ----- | -------- | -------- | ---------- | ---- |
| ... | ... | ... | ... | ... |
| Comment | Verdict | Action |
| ------- | ------- | ------ |
| ... | ... | ... |
## Recommended Actions
1. [What to fix and how]
Update [SESSION_PATH]/_overview.md:
- [HH:MM] PR comments analysis -> [filename].md- [filename].md - PR review analysisIf the sessions directory is a git repo, commit session docs:
cd [SESSION_DIR] && git add . && git commit -m "PR comments analysis"
Report:
Partial when the concern is directionally right but the proposed fix or cited location is wrong.Severity, Validity, Code Volume, Risk.Blocking, Important, or Suggestion.Valid, Partial, or Invalid.Small, Medium, or Large, optionally with a short reason.Low, Medium, or High, optionally with a short reason.Default to fixing review comments in the current PR when the PR introduced or amplified the issue.
Mark an issue Fix now when:
Mark an issue Defer only when at least one is true:
Avoid weak deferral rationales:
When documenting deferred issues, include:
npx claudepluginhub yuvasee/samocodeReads open GitHub PR review comments, triages by severity, applies code fixes, and drafts replies. Use when addressing PR feedback or code review.
Posts code review findings as line-bound PR comments via the GitHub CLI. Maps issues to specific lines and supports severity filtering.
Loads GitHub PR review comments into the AI session for analysis, triage, and fix planning. Default is analysis-only; use --mode fix to enable auto-fixes.