Load pr context

From TheBushidoCollective/han · View interactive version

Load pr context is an AI agent skill from the GitHub repository TheBushidoCollective/han. Load PR context for the current branch using GitHub MCP tools

How to use this skill

Skill file

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):
  1. Present a concise summary:

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

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.