Skip to content

chore: add triage-prs skill and script - #52540

Merged
MarshallOfSound merged 2 commits into
mainfrom
pr-readiness-check
Aug 16, 2026
Merged

MarshallOfSound merged 2 commits into
mainfrom
pr-readiness-check

Conversation

@jkleinsc

Copy link
Copy Markdown
Member

Description of Change

Adds a PR triage helper script that classifies open PRs by CI status (green/failing/pending/none), annotates them with their PR Triage board Status, excludes WIP, and flags PRs labeled as new-pr. Includes a Claude skill wrapping the script with faraday and failing shortcuts.

By default the script and skill will return all open PRs that are green. The skill will sort them by PR Triage status.
Running the skill with faraday will show all green PRS needing faraday approvals
Running the skill with failing will show all PRs with failing CI

Assisted-by: Claude Opus 4.8

Checklist

Release Notes

Notes: none

@jkleinsc
jkleinsc requested a review from a team as a code owner July 29, 2026 21:19
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 29, 2026
Adds a PR triage helper script that classifies open PRs by CI status
(green/failing/pending/none), annotates them with their PR Triage board
Status, excludes WIP, and flags new-pr PRs. Includes a Claude skill wrapping
the script with faraday and failing shortcuts.

Assisted-by: Claude Opus 4.8
@jkleinsc
jkleinsc force-pushed the pr-readiness-check branch from 750319c to 78e267b Compare July 29, 2026 21:32
Srichon6672

This comment was marked as spam.

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jul 30, 2026
Rewrites the frontmatter description for skill selection: adds "triage"
triggers so the description matches the skill name, narrows the
over-broad bare "failing" trigger to "failing prs", and drops the
trailing runtime instructions, which referenced body content that is not
loaded at match time.

Documents the draft/WIP exclusions and the multi-minute runtime, both of
which were previously silent, and trims the jq/OSC-8 internals that only
cost context at invocation time.

Also fixes --help truncating before --repo/--limit/--help (hard-coded
sed range) and moves the script alongside SKILL.md.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@MarshallOfSound

Copy link
Copy Markdown
Member

Pushed a review pass on this in 22d09f01b.

Mostly the frontmatter description, since that's the only bit loaded until the skill is actually invoked, so it's what decides whether the skill gets picked in the first place. It never mentioned "triage" despite the name, so "triage the PRs" barely matched. Bare failing as a trigger was too broad ("the test is failing" would have kicked off a 200-PR scan), so that's "failing prs" now. And the last sentence told the model to run the shortcut "described below", which doesn't work: the body isn't loaded at match time. Kept the trigger words, dropped the instruction.

Also documented a couple of things the script does silently. It skips drafts and anything marked WIP on the board, so the output isn't quite "all the green PRs" like it reads. And a full scan is two gh calls per PR, sequentially, so it takes a few minutes; without a note saying so it just looks hung and gets killed.

Trimmed the jq and OSC-8 internals out of the body, they're maintainer notes that cost context on every invocation and are already in the script's comments. Fixed --help, which was doing sed -n '2,38p' over a header that runs to line 41, so --repo, --limit and --help itself never printed. Moved the script to .claude/skills/triage-prs/triage-prs.sh so the skill is self-contained.

@MarshallOfSound

Copy link
Copy Markdown
Member

Heads up: Windows CI builds moved to new runners on Monday and the old ones have now been removed. This branch predates that, so its Windows build jobs still point at the old runners and will sit queued forever if CI runs again. Rebasing on main (or "Update branch") picks up the change, nothing else needed.

@MarshallOfSound
MarshallOfSound merged commit db65df8 into main Aug 16, 2026
40 checks passed
@release-clerk

release-clerk Bot commented Aug 16, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the pr-readiness-check branch August 16, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants