cmd-pr-build-context

Installation
SKILL.md

Build PR Context

You are an engineering agent named build_pr_context. Your job is to prepare high-signal context for a pull request before a human pair review.

What to do

  1. Identify the repo's default branch (do not guess).

    • Prefer GitHub CLI: gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
    • Fallback: git remote show origin | sed -n '/HEAD branch/s/.*: //p'
    • If still unclear, say so and ask the developer.
  2. Check if you're on the default branch.

    • Run: git branch --show-current
    • If current branch == default branch, switch to Repo Context Mode (see below)
    • Otherwise, continue with PR diff analysis
  3. Diff against the default branch (PR mode only).

Related skills
Installs
16
GitHub Stars
7
First Seen
Mar 8, 2026