jhlee0409/all-for-claudecode/pr-comment
Claude Code and agent skill by jhlee0409/all-for-claudecode
- community
Checking that the SKILL.md file is still in the repository.
Post structured review comments to GitHub PR
Install
npx vskill@latest install jhlee0409/all-for-claudecode/pr-commentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jhlee0409/all-for-claudecode/pr-comment.
/afc:pr-comment — Post PR Review to GitHub
Analyzes a PR and posts a structured review comment to GitHub.Reuses existing triage reports when available. Asks for user confirmation before posting.
Pre-fetch
!gh pr view $0 --json number,title,headRefName,author,body,additions,deletions,changedFiles,labels,reviewDecision,state,url 2>/dev/null || echo "PR_FETCH_FAILED"
Arguments
$ARGUMENTS— PR number (required), with optional severity filter42— Analyze and post review for PR #4242 --severity critical,warning— Only include Critical and Warning findings42 --severity critical— Only include Critical findings
Parse:
- Extract the PR number (first numeric argument)
- Extract
--severityfilter if present (comma-separated:critical,warning,info) - If no PR number found, ask the user: "Which PR number should I review?"
Execution Steps
1. Collect PR Information
Use the pre-fetched PR metadata. If the pre-fetch returned PR_FETCH_FAILED, output [afc:pr-comment] Error: PR not found or gh not available. and abort.
Fetch the diff:
Verify the PR is open. If closed/merged, inform the user and ask whether to proceed anyway.
2. Check for Existing Triage Report
If a report from today contains PR #{number} analysis, reuse it as the review basis instead of re-analyzing from scratch.
3. Analyze PR (if no triage data available)
Review the diff using perspectives A–E from review/perspectives.md:
- A. Code Quality — style compliance, naming, unnecessary complexity
- B. Architecture — layer violations, boundary crossings, structural concerns
- C. Security — XSS, injection, sensitive data exposure, auth issues
- D. Performance — latency concerns, unnecessary computation, resource leaks
- E. Maintainability — function/file size, naming clarity, readability
Classify each finding:
- Critical (C) — Must fix before merge: bugs affecting users, security vulnerabilities, data loss risks
- Warning (W) — Should fix: code quality issues, potential problems, maintainability concerns
- Info (I) — Nice to have: suggestions, minor improvements, style preferences
4. Apply Severity Filter
If --severity was specified, filter findings to only the listed levels. Default: include all.
5. Generate Review Comment
If zero findings after filtering:
6. Preview and Confirm
Display the full review comment to the user.
Determine the review event:
| Event | When to use | |
|---|---|---|
| REQUEST_CHANGES | Critical findings in production code that pose genuine risk to users: bugs affecting functionality, security vulnerabilities, or architectural violations costly to fix post-merge. A Critical finding limited to test/docs/config alone does NOT qualify. | |
| COMMENT | Findings are improvements the author should consider but don't block merging. Also when Critical findings are in non-production code, or the author has already acknowledged the concern in PR discussion. | |
| APPROVE | No findings, or all findings are informational and code is ready to merge. |
Tell the user:
Ask for confirmation (AskUserQuestion):
- Post as-is — Post the review comment to GitHub
- Edit first — Let me modify the comment before posting
- Cancel — Do not post anything
7. Post to GitHub
8. Final Output
Notes
- User confirmation required: Never post to GitHub without explicit user approval.
- Verify after posting: After
gh pr reviewcompletes, confirm success by checking the exit code. If it fails, report the error and suggest manual posting. - Idempotent: Multiple runs create additional review comments (GitHub does not deduplicate).
- Respects existing reviews: Does not dismiss or override other reviewers' reviews.
- Perspectives reference: Full criteria for A–H in review/perspectives.md. This skill uses A–E only (focused on PR-level review, not full pipeline review).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pr-comment/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jhlee0409/all-for-claudecode/pr-comment)