> 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.Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
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.