dotfiles/.claude/skills/pr-triage/SKILL.md
Audit open PRs across multiple repos for duplicates, stale drafts, Renovate noise, and conflicts. Produces a unified priority report.
npx skillsauth add kdeldycke/dotfiles pr-triageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit open PRs across one or more GitHub repositories and produce a single prioritized report.
$ARGUMENTS is a space-separated list of owner/repo identifiers. If empty, use the current repo (from gh repo view --json nameWithOwner --jq .nameWithOwner).
For each repo, spawn a parallel Agent that runs:
gh pr list -R {repo} --state open --json number,title,author,createdAt,isDraft,labels,headRefName,baseRefName,mergeable,reviewDecision,updatedAt
For each open PR, the agent evaluates:
Flag drafts where updatedAt is more than 7 days ago. Include age in days.
Compare PR titles and branch names within the same repo. Flag pairs where:
verb-noun prefix (e.g., two fix-typos-* branches).For PRs authored by renovate[bot] or app/renovate:
gh pr diff -R {repo} {number}.Compare headRefName across open PRs. Flag PRs that modify the same files (fetch file lists with gh pr view -R {repo} {number} --json files --jq '.files[].path'). Two PRs touching the same file are potential conflicts.
Merge results from all agents into one table, sorted by priority:
| Repo | PR | Title | Author | Age | Status | Action |
Status values:
merge — Tests pass, approved, no conflicts. Merge-ready.review — Needs review (non-draft, no review decision yet).stale — Draft or non-draft with no activity for 7+ days.cosmetic — Renovate SHA-only update, low priority.conflict — Touches files that overlap with another open PR.duplicate — Likely duplicate of another open PR.major — Major dependency bump, needs manual assessment.After the table, list:
gh CLI for all GitHub API interactions.tools
Create or update an upstream contributions page (docs/upstream.md) tracking the project's relationship with its dependencies. Discovers merged PRs, reported issues, workarounds, and declined features.
documentation
Detect stale translations in readme.*.md and contributing.*.md files by comparing structure and content against the English source, then draft updated translations for changed sections.
testing
Two-way comparison and synchronization of Sphinx documentation across sibling projects. Discovers discrepancies in conf.py, install.md, index.md toctree, pyproject.toml docs dependencies, extra-deps sections, readme badges, and static assets. Use when you want to align documentation structure, catch stale dependencies, or push improvements across your Sphinx-enabled repositories.
tools
Optimize GitHub topics for discoverability by analyzing competition on topic pages.