jhlee0409/all-for-claudecode/pr-comment

Claude Code and agent skill by jhlee0409/all-for-claudecode

Trust tier 3
  • community
Source check pending

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-comment

Semi-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 filter
  • 42 — Analyze and post review for PR #42
  • 42 --severity critical,warning — Only include Critical and Warning findings
  • 42 --severity critical — Only include Critical findings

Parse:

  1. Extract the PR number (first numeric argument)
  2. Extract --severity filter if present (comma-separated: critical, warning, info)
  3. 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:

bash
gh pr diff {number}

Verify the PR is open. If closed/merged, inform the user and ask whether to proceed anyway.

2. Check for Existing Triage Report
bash
ls -t .claude/afc/memory/triage/*.md 2>/dev/null | head -5

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
markdown
## AFC Code Review — PR #{number}
### Summary
| Severity | Count |
|----------|-------|
| Critical | {N} |
| Warning | {N} |
| Info | {N} |
### Findings
#### C-{N}: {title}
-**File**: `{path}:{line}`
-**Issue**: {description}
-**Suggested fix**: {suggestion}
#### W-{N}: {title}
{same format}
#### I-{N}: {title}
{same format}
### Positives
-{1-2 things done well}
---
*Reviewed by [all-for-claudecode](https://github.com/anthropics/claude-code)*

If zero findings after filtering:

markdown
## AFC Code Review — PR #{number}
No issues found. Code looks good!
---
*Reviewed by [all-for-claudecode](https://github.com/anthropics/claude-code)*
6. Preview and Confirm

Display the full review comment to the user.

Determine the review event:

EventWhen to use
REQUEST_CHANGESCritical 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.
COMMENTFindings 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.
APPROVENo findings, or all findings are informational and code is ready to merge.

Tell the user:

Review event: {APPROVE|COMMENT|REQUEST_CHANGES}
Findings: Critical {N} / Warning {N} / Info {N}

Ask for confirmation (AskUserQuestion):

  1. Post as-is — Post the review comment to GitHub
  2. Edit first — Let me modify the comment before posting
  3. Cancel — Do not post anything
7. Post to GitHub
bash
tmp_file=$(mktemp)
cat > "$tmp_file" << 'REVIEW_EOF'
{review comment content}
REVIEW_EOF
gh pr review {number} --body-file "$tmp_file" --event {COMMENT|REQUEST_CHANGES|APPROVE}
rm -f "$tmp_file"
8. Final Output
PR review posted
├─ PR: #{number} ({title})
├─ Event: {APPROVE|COMMENT|REQUEST_CHANGES}
├─ Findings: Critical {N} / Warning {N} / Info {N}
└─ URL: {PR URL}

Notes

  • User confirmation required: Never post to GitHub without explicit user approval.
  • Verify after posting: After gh pr review completes, 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jhlee0409/all-for-claudecode/pr-comment/badge)](https://verified-skill.com/skills/jhlee0409/all-for-claudecode/pr-comment)

Something wrong with this skill or its page? Tell us.