Skip to content

Pi-GH

The pi-gh skill helps you stay on top of GitHub pull requests without leaving the terminal. It provides a script that lists all open PRs needing your attention — both PRs where you’re a reviewer and PRs you authored.

The skill lives under .pi/agent/skills/pi-gh/. It requires the GitHub CLI:

Terminal window
gh auth status

If not authenticated:

Terminal window
gh auth login

Lists all open PRs in two sections:

  1. Requested as Reviewer — PRs where you’ve been asked to review
  2. Created by You — PRs you authored that are still open
Terminal window
bash "$HOME/.pi/agent/skills/pi-gh/scripts/list-prs.sh"

Output includes the PR title, author, repository, and creation date — everything you need to triage your queue at a glance.

Terminal window
# See what needs your attention
bash ~/.pi/agent/skills/pi-gh/scripts/list-prs.sh
# Create a new PR
git add -A && gh pr create --base main --title "My change" --body "Summary of changes"
# Open a PR to review
gh pr view 123
# Review and merge
gh pr review 123 --approve
gh pr merge 123

GitHub’s API allows 5,000 requests per hour for authenticated users. The list-prs.sh script makes a single query, so rate limits are rarely hit in normal use.