gh-pr-auto-detector

Detect GitHub PR mentions and fetch condensed context via a subagent.

2|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/schovi/claude-schovi --skill gh-pr-auto-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-pr-auto-detector
Source: https://github.com/schovi/claude-schovi/tree/main/schovi/skills/gh-pr-auto-detector
Command: npx skills add https://github.com/schovi/claude-schovi --skill gh-pr-auto-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh-cli, and includes scripts (resource) components.

What problem does it solve?

Manually sifting through GitHub Pull Requests for details, context switching between tools, and dealing with token limits wastes valuable time and breaks your focus. This skill eliminates that friction by bringing the PR context directly to your conversation.

Core Features & Use Cases

  • Intelligent Detection: Automatically recognizes GitHub PR mentions (full URLs, owner/repo#number, or just #number in context).
  • Condensed Summaries: Fetches concise summaries of PRs, including code changes, CI status, and review comments, without overwhelming your AI's context window.
  • Intent-Based Fetching: Understands if you need full context, just reviews, or only CI status, fetching only the most relevant information.
  • Use Case: Ask your AI to "Review #123" or "What's the CI status of anthropics/claude-code#456?", and this skill will automatically fetch and summarize the relevant GitHub PR details for you.

Quick Start

Review the pull request https://github.com/owner/repo/pull/123 and tell me its CI status.

Frequently Asked Questions about gh-pr-auto-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fetch GitHub PR context without leaving my conversation?

This skill detects GitHub PR mentions—full URLs, owner/repo#number, or #number formats—and fetches condensed summaries automatically. It retrieves code changes, CI status, and review comments directly into your conversation, eliminating manual tool switching and preserving your focus.

Can I use GitHub PR summaries with gh-cli automation?

Yes. The skill integrates with gh-cli to detect PR references and fetch context through a dedicated analyzer subagent. It works across full, short, and hash PR formats, coordinating minimal data retrieval while keeping payloads isolated from your main conversation.

How does the skill know what PR information I actually need?

The skill classifies your intent—review, CI status, or full context—and fetches only the most relevant information. This intent-based approach avoids overwhelming your conversation with unnecessary details while ensuring you get exactly what you're asking for.

What GitHub PR formats does this skill recognize?

The skill recognizes full GitHub URLs, owner/repo#number shorthand, and contextual #number references. Pattern recognition automatically detects these formats across your messages and triggers context retrieval without requiring special syntax.

Does this skill work with private repositories and CI workflows?

The skill fetches PR summaries including CI status through gh-cli, which requires proper GitHub authentication. It handles both public and private repos where your gh-cli credentials grant access, making it suitable for team workflows and protected branches.

What happens to large PR contexts—do they overflow my token limit?

No. The skill generates condensed summaries and isolates large payloads from your main conversation through a separate subagent. This pattern-recognition and selective-fetching approach keeps your context window efficient while preserving critical PR details.