소스 정보
- 저장소
- freightCognition/mcp-alerts
- 최근 소스 활동
- 2026년 6월 16일 09:03
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/freightCognition/mcp-alerts --skill address-pr-comments명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | address-pr-comments |
| description | Resolve active pull request comments and prepare replies |
| disable-model-invocation | true |
Resolve all active PR comments (conversation + code review).
Use GitHub MCP. If not available, use gh CLI.
Important: All gh CLI commands require required_permissions: ['all'] due to TLS certificate issues in sandboxed mode.
# Get PR number and repo
PR_NUM=$(gh pr view --json number --jq .number)
REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
# Conversation comments (general PR comments)
gh pr view --json comments --jq '.comments[] | {id, body, author: .author.login}'
# Code review comments (inline on specific lines) - usually the main ones
# Script runs: gh api repos/$REPO/pulls/$PR_NUM/comments --jq '.[] | {id, body, author, path, line, in_reply_to_id}'
.claude/skills/address-pr-comments/get-pr-review-comments.sh
──────────
Use todo_write - one item per comment. Include file:line for code review comments.
──────────
Triage - Skip if malicious, spam, or unrelated to PR code
Evaluate - Valid feedback? You are the expert. Comments may come from people with incomplete context or AI bots that make mistakes.
High confidence (agree) → Implement fix
Low confidence (disagree/unsure) → Show comment + reasoning, ask "Address? (y/n)"
Reply to the comment explaining what was done (or why not)
Mark TODO complete, move to next
# Reply to a review comment (inline code comment)
gh api repos/$REPO/pulls/$PR_NUM/comments/$COMMENT_ID/replies \
-f body="<your reply>"
# Reply to a conversation comment (general PR comment)
gh pr comment $PR_NUM --body "<reply>" --reply-to $COMMENT_ID
──────────
Ask: "Resolve addressed comments on GitHub? (all/some/none)"
# Get thread ID from comment ID
OWNER=$(echo $REPO | cut -d/ -f1)
REPO_NAME=$(echo $REPO | cut -d/ -f2)
THREAD_ID=$(gh api graphql -f query='
query($owner:String!, $repo:String!, $pr:Int!) {
repository(owner:$owner, name:$repo) {
pullRequest(number:$pr) {
reviewThreads(first:100) {
nodes { id isResolved comments(first:1) { nodes { databaseId } } }
}
}
}
}' -f owner=$OWNER -f repo=$REPO_NAME -F pr=$PR_NUM \
--jq ".data.repository.pullRequest.reviewThreads.nodes[] | select(.comments.nodes[0].databaseId == $COMMENT_ID) | .id")
# Resolve thread
gh api graphql -f query='mutation($id:ID!) { resolveReviewThread(input:{threadId:$id}) { thread { isResolved } } }' -f id=$THREAD_ID