一键导入
create-pr-comments
Create GitHub PR review comments from review findings. Use after running a code review to post findings as line-bound comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create GitHub PR review comments from review findings. Use after running a code review to post findings as line-bound comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Investigate GitHub pull request review comments, determine whether each comment is valid, propose fixes, and document the analysis in an active samocode session. Use when the user asks to analyze PR comments, run /prcomments, investigate review feedback, or triage pull request comments.
Run OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective.
Run Anthropic Claude CLI as a subagent for second opinions, code reviews, and questions. Use from a Codex (or other) session when you want Claude's perspective.
Execute implementation tasks with different approaches (single, dual-agent, plan-based).
Create implementation plans with phase management.
Final PR readiness gate after fix loops, merges, and manual debugging.
| name | create-pr-comments |
| description | Create GitHub PR review comments from review findings. Use after running a code review to post findings as line-bound comments. |
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