analyze-pr

Parse GitHub or GitLab PR URLs and generate analysis documents.

10|Updated Jun 3, 2020
One-click install
npx skills add https://github.com/magic3007/dotfiles --skill analyze-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-pr
Source: https://github.com/magic3007/dotfiles/tree/main/cursor_config/skills/analyze-pr
Command: npx skills add https://github.com/magic3007/dotfiles --skill analyze-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the process of understanding a PR by fetching its diff and web description, then generating a comprehensive analysis document that highlights changes and potential impacts.

Core Features & Use Cases

  • PR URL parsing: extract platform, owner/org, repo, and PR number from GitHub or GitLab URLs.
  • PR metadata & diff retrieval: fetch title, description, author, labels, comments, and the diff; for GitHub PRs, access the API for structured data such as base/head and stats.
  • Analysis & reporting: produce a structured analysis document with a clear summary, change categories, and a diff overview suitable for code reviews.
  • Use Case: a teammate provides a PR link and wants a ready-to-share analysis including risks and signals.

Quick Start

Provide a PR URL (GitHub or GitLab) and generate the full PR analysis.

Frequently Asked Questions about analyze-pr

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

FAQPage Schema
How do I generate a PR analysis report from a GitHub or GitLab URL?

To generate a PR analysis report, provide the pull request URL so the skill can parse the platform, owner, repo, and PR number, then fetch metadata and diff via the respective API to produce a structured document.

What GitHub PR metadata is included in the automated diff analysis?

The automated diff analysis includes GitHub PR metadata fetched from the API, covering the title, description, author, labels, comments, base/head branches, and change statistics alongside the diff overview.

Does this PR analysis tool work with both GitHub and GitLab merge requests?

Yes, the PR analysis tool works with both GitHub and GitLab, parsing the URL to identify the platform and fetching the corresponding pull request or merge request metadata and diff data accordingly.

What is the best way to summarize code review changes and impacts from a pull request link?

The best way to summarize code review changes is to fetch the PR diff and web description, then generate a comprehensive analysis document highlighting change categories, statistics, and potential impact assessments.

Can I get an impact assessment for a GitLab merge request without manually reading the entire diff?

Yes, you can get an impact assessment without manually reading the diff by providing the GitLab merge request URL to generate a report containing the summary, change statistics, and potential risks.