Skip to content
Back to skills

Github Pr Digest

ASecurity

Summarize your open GitHub pull requests into a single morning digest — grouped by repo, flagged by staleness and review state. Use when asked for "/github-pr-digest", "my PR digest", "what PRs are waiting on me", or "open PR summary".

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentspythongobashgit

Works with

  • cli

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add tanishq286/tq-forge --skill github-pr-digest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Pr Digest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Pr Digest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tanishq286-github-pr-digest/badge)](https://www.skillsdirectory.com/skills/tanishq286-github-pr-digest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-pr-digest
description: |
  Summarize your open GitHub pull requests into a single morning digest —
  grouped by repo, flagged by staleness and review state. Use when asked for
  "/github-pr-digest", "my PR digest", "what PRs are waiting on me", or "open
  PR summary".
allowed-tools:
  - Bash
  - Read
---

# /github-pr-digest — morning open-PR digest

## When to use

You start the day wanting one screen that tells you which of your open pull
requests are waiting on you, which are waiting on others, and which have gone
stale. This skill pulls open PRs via the `gh` CLI and renders a grouped digest.

## Procedure

1. **Check the gh CLI is authed.**
   ```bash
   gh auth status >/dev/null 2>&1 || { echo "Run: gh auth login"; exit 1; }
   ```

2. **Fetch open PRs authored by you across repos.**
   ```bash
   gh search prs --author "@me" --state open --json repository,title,url,updatedAt,reviewDecision,isDraft --limit 100 > /tmp/pr-digest.json
   ```

3. **Group + flag with a staleness threshold (7 days).**
   ```bash
   python3 - <<'PY'
   import json, datetime
   rows = json.load(open("/tmp/pr-digest.json"))
   now = datetime.datetime.now(datetime.timezone.utc)
   by_repo = {}
   for r in rows:
       repo = r["repository"]["nameWithOwner"]
       upd = datetime.datetime.fromisoformat(r["updatedAt"].replace("Z","+00:00"))
       stale = (now - upd).days >= 7
       flag = "DRAFT" if r["isDraft"] else (r.get("reviewDecision") or "PENDING")
       by_repo.setdefault(repo, []).append((flag, "🕒" if stale else "  ", r["title"], r["url"]))
   for repo in sorted(by_repo):
       print(f"\n## {repo}")
       for flag, stale, title, url in by_repo[repo]:
           print(f"  {stale} [{flag:<16}] {title}\n        {url}")
   print(f"\n{sum(len(v) for v in by_repo.values())} open PRs across {len(by_repo)} repos")
   PY
   ```

4. **Surface the action list.** Call out `APPROVED` PRs (ready to merge) and
   `CHANGES_REQUESTED` PRs (waiting on you) at the top of your summary.

## Pitfalls

- `gh search prs` paginates at 100; if you have more open PRs, raise `--limit`
  or filter by `--owner`.
- `reviewDecision` is `null` until at least one review exists — show it as
  `PENDING`, not an error.
- Times are UTC; the 7-day staleness flag is timezone-agnostic by design.

## Verification

- `/tmp/pr-digest.json` parses as a JSON array.
- The printed PR count matches `gh search prs --author @me --state open | wc -l`.
- Draft PRs show `DRAFT`; approved ones show `APPROVED`.

## Tags

`github` `pull-requests` `digest` `daily`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.