Skip to main content

load-pr-context

Load PR context for the current branch using GitHub MCP tools

소스 정보

저장소
TheBushidoCollective/han
최근 소스 활동
2026년 2월 18일 17:36
감지된 SKILL.md 언어
영어
스타
198
포크
22

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
load-pr-context
description
Load PR context for the current branch using GitHub MCP tools
# Load PR Context ## Name github:load-pr-context - Load pull request context for the current branch ## Synopsis ``` /load-pr-context [owner/repo] [branch] ``` ## Description Loads the full context of an open pull request for the given branch, including description, changes, CI status, and review comments. Uses GitHub MCP tools for structured data access. ## Implementation Given `owner/repo` and `branch` arguments: 1. Use `mcp__github__list_pull_requests` with `owner`, `repo`, `head: "OWNER:BRANCH"`, `state: "open"` to find the PR 2. If no PR is found, report that no open PR exists for this branch and stop 3. If a PR exists, gather context **silently** (do not narrate each step): - Use `mcp__github__get_pull_request` with the PR number to read description, labels, reviewers, and metadata - Use `mcp__github__get_pull_request_diff` or `mcp__github__list_pull_request_files` to understand what has changed - Use `mcp__github__list_workflow_runs` with `branch` to check CI status - Check for review comments via `mcp__github__list_review_comments_on_pull_request` - Check for linked issues mentioned in the PR description 4. Present a concise summary: - PR title, number, and status - Key points from the description - Files changed (count and notable files) - CI status (passing/failing) - Review status (approved, changes requested, pending) - Any blocking issues or failing checks ## Example Interaction ``` User: /load-pr-context thebushidocollective/han feat/pr-context Claude: ## PR #142: Add PR/MR context detection hooks - **Status**: Open, 2 reviews pending - **Description**: Adds SessionStart hooks to GitHub and GitLab plugins that detect open PRs/MRs on the current branch - **Changes**: 8 files (+245, -12) - **CI**: All checks passing - **Reviews**: 1 approved, 1 pending from @reviewer Ready to assist with this PR. ``` ## Arguments - `owner/repo` (required): Repository in owner/repo format - `branch` (required): Branch name to find the PR for ## Tips - This skill is typically invoked automatically when starting a session on a feature branch - All data is fetched via MCP tools (no CLI commands needed) - The summary is kept concise to avoid cluttering the session start
GitHub에서 보기