.agents/skills/shepherd-prs/SKILL.md
This skill allows you to automate shepherding actions on approved PRs using the shepherd.dart script. For details on how the tool works, see the README.md.
When the user asks for the status of their open or approved PRs:
shepherd.dart run --all or shepherd.dart run --pr <number>) on the initial inquiry.list command:
dart .agents/skills/shepherd-prs/scripts/shepherd.dart list
run --all or run --pr) after receiving explicit approval from the user.When running the run command, inspect the returned JSON logs and handle specific results as follows:
ci.yaml validation failure and is behind by at least 1 commit.workflow scope.
ERROR: ... lacks the "workflow" scope, do not try to rerun. Output a highly prominent note to the user asking them to refresh their CLI scope:
gh auth refresh -h github.com -s workflowflutter-dashboard) cannot be re-run via the API.gh pr view <number> --repo flutter/flutter or through the checks details, and write a summary of the failure for the user.WARNING: PR has merge conflicts. Manual intervention required.
User: "What is the status of my approved and open PRs?"
Agent:
dart .agents/skills/shepherd-prs/scripts/shepherd.dart list.User: "Yes, please update the branch for PR #186254."
Agent:
dart .agents/skills/shepherd-prs/scripts/shepherd.dart run --pr 186254.User: "Run shepherding on all my eligible PRs."
Agent:
dart .agents/skills/shepherd-prs/scripts/shepherd.dart run --all and reports the action logs.