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.

Determine Scope

Default (no scope specified): diff the current branch against the repo's base branch.

Detect the base branch in order — stop at the first success:

  1. gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' 2>/dev/null
  2. git remote show origin 2>/dev/null | grep "HEAD branch" | cut -d: -f2 | xargs
  3. git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'

Do not assume main or master. If all methods fail, ask the developer.

Once resolved, run:

Installs
19
GitHub Stars
8
First Seen
Mar 8, 2026
cmd-pr-build-context — olshansk/agent-skills