Find a repository's stale branches and stale draft pull requests, and list them in one issue for a person to decide on. Never deletes or closes anything. Use on a monthly schedule, on any repository.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Clear a path through the drifts: a monthly list of branches and drafts nobody has touched in a while, so a person can decide what to keep.
Set the line. Stale means no commit in the last 90 days. The default branch, and any protected branch, are never stale.
List the branches with their last commit date (gh api --paginate repos/<owner>/<repo>/branches,
every page of it, and each branch's head commit). For each
stale one, note:
ahead_by
is 0).List the draft pull requests with no commit, comment or review in the last 90 days, with their author and their last activity date.
Look for an open issue titled Snow plough: stale branches and drafts.
If one is open, comment on it with this month's list, and only when the list
changed. Otherwise open that issue.
Write the list as checkboxes for a person to tick, in two sections:
End with: "Snow plough never deletes or closes anything. Tick what you've dealt with." If nothing is stale, open nothing, and say so in the run output.
One issue listing the stale branches and drafts, kept current, and nothing deleted or closed.
AINativeDev/Northpole-Carnival-Factory
99202b2
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.