flutter/shepherd-prs
> Automate shepherding, checking status, updating branches, and landing open PRs or approved third-party contributor PRs in the flutter/flutter repository using the gh CLI.
npx skills add https://github.com/flutter/flutter --skill shepherd-prs
flutter/flutter)This skill defines the canonical runbook for shepherding pull requests in the flutter/flutter repository using native GitHub CLI (gh) commands.
When the user asks for the status of open or approved PRs:
gh pr list --repo flutter/flutter --author <username> --state open --json number,title,url,mergeable,reviewDecision
gh pr list --repo flutter/flutter --search "reviewed-by:<username> -author:<username> is:open" --json number,title,url,mergeable,reviewDecision
gh pr checks <number> --repo flutter/flutter
gh pr view <number> --repo flutter/flutter --json labels,reviewDecision,reviews,comments
Before applying or re-applying the autosubmit label (gh pr edit <number> --repo flutter/flutter --add-label autosubmit), always perform the following pre-flight verification checks to ensure the autosubmit bot will not reject or strip the label:
autosubmit Removal History in Comments:autosubmit label was previously removed by the auto-submit bot by checking PR comments: gh pr view <number> --repo flutter/flutter --json comments
auto-submit such as "autosubmit label was removed...".autosubmit.autosubmit: gh pr update-branch <number> --repo flutter/flutter
autosubmit until the branch update is complete and CI checks on the updated branch succeed.CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, NONE) have at least 2 team member approvals (MEMBER or OWNER) before adding autosubmit so the bot doesn't remove it again.reviews in gh pr view <number> --repo flutter/flutter --json reviews to confirm the number of approvals from Flutter team members.autosubmit bot automatically strips the autosubmit label whenever any CI check fails.SUCCESS/pass).autosubmit label immediately.autosubmit label after all retried checks complete successfully: gh pr edit <number> --repo flutter/flutter --add-label autosubmit
CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, NONE) require two explicit approvals from Flutter team members (MEMBER or OWNER) before the autosubmit bot will merge them.autosubmit label is applied, the autosubmit bot will remove the label.gh pr view <number> --repo flutter/flutter --json reviews that at least 2 team member approvals are present before adding autosubmit so the bot doesn't remove it again. If only 1 approval exists, remind the user to request a second reviewer before applying the label.flutter-dashboard) cannot be re-run via the GitHub API.https://cr-buildbucket.appspot.com/build/<build_id>) for the failing check.gh pr view <number> --repo flutter/flutter or flutter-pr-checks-finder) and summarize the failure for the user.master (including when the base commit is >7 days old):gh pr update-branch <number> --repo flutter/flutter before attempting to add autosubmit.CICD Label:gh pr update-branch (or when shepherding a PR that has not run CI), the CICD label is often stripped or required to start the CI checks on the updated commit.CICD label is present after a branch update, and re-apply it if missing: gh pr edit <number> --repo flutter/flutter --add-label CICD
ERROR: ... lacks the "workflow" scope), instruct the user to refresh their CLI scope: gh auth refresh -h github.com -s workflow
MERGEABLE is CONFLICTING), notify the user so the author can resolve them.Take flutter/shepherd-prs from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.