cmd-pr-build-context

Analyze pull request diffs against the default branch and assess risks.

8|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/Olshansk/agent-skills --skill cmd-pr-build-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cmd-pr-build-context
Source: https://github.com/Olshansk/agent-skills/tree/main/skills/cmd-pr-build-context
Command: npx skills add https://github.com/Olshansk/agent-skills --skill cmd-pr-build-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the code review process by automatically generating comprehensive context for pull requests, reducing review time and improving feedback quality.

Core Features & Use Cases

  • Automated Diff Analysis: Compares changes against the default branch, highlighting key modifications and their implications.
  • Risk Assessment: Identifies potential correctness, security, performance, API, data, or operational risks within the changes.
  • Contextual Questions: Generates specific questions for the developer to unblock and focus the review.
  • Repo Context Mode: Provides a holistic overview of the repository when not on a feature branch.
  • Use Case: Before submitting a complex feature for review, run this skill to get a concise summary of changes, potential pitfalls, and targeted questions, ensuring reviewers can quickly grasp the impact.

Quick Start

Use the cmd-pr-build-context skill to prepare context for the current pull request.

Frequently Asked Questions about cmd-pr-build-context

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

FAQPage Schema
How do I generate context for a pull request review?

You can build high-signal PR context by performing diff analysis against the default branch, which highlights key files, summarizes behavioral changes, and assesses potential risks like correctness, security, or performance issues.

What is risk assessment in git code review?

Risk assessment in git code review identifies potential correctness, security, performance, API, data, or operational risks within code changes. It analyzes the pull request diff to highlight specific vulnerabilities and behavioral changes before merging.

How do I write better questions for pull request authors?

To write better questions for pull request authors, analyze the diff against the default branch to generate contextual, targeted questions that unblock the review process and focus on specific behavioral changes and potential risks.

Can I assess repository risk when not on a feature branch?

Yes, you can assess repository risk when not on a feature branch by using Repo Context Mode. This mode explores the default branch to provide a holistic overview of the repository instead of analyzing a specific pull request diff.

What is the best way to summarize behavioral changes in a git diff?

The best way to summarize behavioral changes in a git diff is to perform automated analysis against the default branch. This identifies key modified files, evaluates potential risks, and highlights the exact implications of the changes.

Why do I need to build context before submitting a complex pull request?

You need to build context before submitting a complex pull request to reduce review time and improve feedback quality. It provides a concise summary of changes, potential pitfalls, and targeted questions so reviewers quickly grasp the impact.