OpenParable
Skip to content
← Back to skills

Github Stale PR Triage

Testing & Quality
github-stale-pr-triage

Github Stale PR Triage is an Agent Skill for testing & quality published in the fedimint/fedimint repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Triage stale GitHub PRs. Use when asked to review old, inactive, least-recently-updated, obsolete, or closeable pull requests, comment with a recommendation, and close PRs that are clearly no longer useful.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fedimint/fedimint/blob/HEAD/.agents/skills/github-stale-pr-triage/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/github-stale-pr-triage, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

GitHub stale PR triage

Use this when asked to look through old open PRs and decide what should happen with them.

First find the exact PRs under consideration. Usually this means the least recently updated open PRs, filtered by the user's age cutoff:

gh pr list -R OWNER/REPO --state open --limit 20 \
  --search 'updated:<YYYY-MM-DD sort:updated-asc' \
  --json number,title,author,createdAt,updatedAt,isDraft,url,labels

For each PR, one by one:

  • Read the PR description, comments, changed files, and diff.
  • Check current code and related issues/PRs to see if the work is still needed or was done another way.
  • Decide what maintainers should do:
    • close it if it is obsolete, irrelevant, already done, or would need a fresh rewrite;
    • leave it open if it is still useful and looks easy to finish;
    • leave it open with a clear question if the answer is genuinely unclear.
  • If possible, delegate each PR to a self-contained sub-agent.

Always write the analysis as a PR comment. Keep it polite and short. Say what you checked, what you concluded, and what the next step should be. If closing, say it can always be reopened if we missed something.

Close when it seems like the PR should be closed:

gh pr close NUMBER -R OWNER/REPO --comment-file /tmp/comment.md

Report back with a short table: PR, decision, action taken, rationale.