flurdy/agent-skills / skills/pr-status
pr-status
VerifiedShow enriched status of your open PRs — CI checks, approvals, unresolved review threads, and linked Jira discussion, with transition-driven suggested next actions.
scripts/gh-pr-list-closed.sh
View on GitHub#!/usr/bin/env bash
# List recently closed/merged PRs by the current user across a GitHub org.
# Org resolution: see resolve-org.sh
# Usage: gh-pr-list-closed.sh [org] [days]
set -euo pipefail
# shellcheck source=resolve-org.sh
source "$(dirname "${BASH_SOURCE[0]}")/resolve-org.sh"
ORG="$(resolve_org "${1:-}")"
if [ -n "${2:-}" ]; then
DAYS="$2"
else
# Weekday-aware default: keep the window tight, but extend across the
# weekend on Mon/Tue so Friday's closed PRs are still visible.
case "$(date +%u)" in
1) DAYS=3 ;; # Mon → covers Fri+weekend
2) DAYS=4 ;; # Tue → covers Fri+weekend+Mon
*) DAYS=3 ;;
esac
fi
SINCE=$(date -u -d "${DAYS} days ago" +%Y-%m-%d 2>/dev/null || date -u -v-"${DAYS}"d +%Y-%m-%d)
# Get closed PRs from search API
SEARCH=$(gh search prs --author @me --state closed --owner "$ORG" --limit 30 \
--json repository,number,title,closedAt \
| jq -c --arg since "$SINCE" '[.[] | select(.closedAt >= $since)]')
# If no results, exit
[ "$SEARCH" = "[]" ] && exit 0
# Check merged status per PR
echo "$SEARCH" | jq -r '.[] | "\(.repository.name)\t\(.number)"' | sort -t$'\t' -k1,1 | \
while IFS=$'\t' read -r REPO PR_NUM; do
MERGED=$(gh api "repos/$ORG/$REPO/pulls/$PR_NUM" --jq '.merged' 2>/dev/null || echo "false")
echo "$SEARCH" | jq -c --arg num "$PR_NUM" --arg merged "$MERGED" --arg org "$ORG" \
'.[] | select(.number == ($num | tonumber)) | {number, title, owner: $org, repo: .repository.name, closedAt: .closedAt, merged: ($merged == "true")}'
done
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |