From samocode
Posts code review findings as line-bound PR comments via the GitHub CLI. Maps issues to specific lines and supports severity filtering.
How this skill is triggered — by the user, by Claude, or both
Slash command
/samocode:create-pr-commentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create GitHub PR review comments bound to specific code lines based on review findings.
Create GitHub PR review comments bound to specific code lines based on review findings.
gh CLI authenticated with repo access/multi-review, /cleanup, or manual review)$ARGUMENTS can contain:
https://github.com/org/repo/pull/123)123) - will detect repo from git remote--all, --blocking, --important, --nice-to-havePR_URL or PR_NUMBER = extract from $ARGUMENTS
SEVERITY_FILTER = extract from $ARGUMENTS (default: blocking + important)
If PR not specified, ask user for PR URL or number.
# If URL provided, extract owner/repo/number
# If only number, detect from git remote:
gh api repos/{owner}/{repo}/pulls/{number} --jq '{headRefOid: .head.sha, headRefName: .head.ref}'
Store:
COMMIT_SHA = head commit SHABRANCH_NAME = head ref nameCheck conversation context for review findings from:
/multi-review output/cleanup outputIf no findings in context, ask user to provide them or run a review first.
Based on SEVERITY_FILTER:
--all: Include all findings--blocking: Only blocking issues--important: Only important issues--nice-to-have: Only nice-to-have issuesFor each finding:
gh api repos/{owner}/{repo}/pulls/{number}/files --jq '.[] | select(.filename == "PATH") | .patch'
For each finding, create a line-bound PR comment:
gh api repos/{owner}/{repo}/pulls/{number}/comments \
-f body='COMMENT_BODY' \
-f commit_id="COMMIT_SHA" \
-f path="FILE_PATH" \
-F line=LINE_NUMBER \
-f side="RIGHT"
Comment format by severity:
🚫 **BLOCKING: [Title]**⚠️ **IMPORTANT: [Title]**💡 **Nice-to-have: [Title]**Include:
Exclude from comments:
Output summary:
Created X PR comments on PR #N:
| File | Line | Severity | Issue |
|------|------|----------|-------|
| ... | ... | ... | ... |
PR: [URL]
gh not authenticated: "Please run gh auth login first"# After running /multi-review
/create-pr-comments https://github.com/org/repo/pull/123
# Only blocking issues
/create-pr-comments 123 --blocking
# All issues including nice-to-have
/create-pr-comments 123 --all
# From current repo
/create-pr-comments 123
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.
Fetches and filters PR review comments, extracts outside-diff-range feedback from review bodies, and resolves threads with proper attribution. Useful when addressing CodeRabbit, Cursor, or human reviewer feedback.
Fetches, analyzes, and triages GitHub pull request review comments. Determines validity and proposes fixes, documenting results in a session report.